wasmer-python
ππΈ WebAssembly runtime for Python
νμΌ νμκΈ°
μ΅μ’ λ²μ λ€μ΄λ‘λ (.zip)- ---bug-report.md
- ---feature-request.md
- --question.md
- release.yml
- test.yml
- dependabot.yml
- nbody.wasm
- test_compilation_time.py
- test_execution_time.py
- test_headless_time.py
- test_memory.py
- wasmer.html
- wasmer_compiler_cranelift.html
- wasmer_compiler_llvm.html
- wasmer_compiler_singlepass.html
- index.html
- search.js
- wasmer.html
- wasmer_compiler_cranelift.html
- wasmer_compiler_llvm.html
- wasmer_compiler_singlepass.html
- from_c.c
- from_c.py
- from_c.wasm
- greet.py
- greet.rs
- greet.wasm
- simple.py
- simple.rs
- simple.wasm
- wasi.rs
- wasi.wasm
- compiler_cranelift.py
- compiler_llvm.py
- compiler_singlepass.py
- engine_cross_compilation.py
- engine_dylib.py
- engine_headless.py
- engine_universal.py
- exports_function.py
- exports_global.py
- exports_memory.py
- imports_exports.py
- imports_function.py
- imports_function_early_exit.py
- instance.py
- README.md
- wasi.py
- __init__.py
- README.md
- setup.py
- __init__.py
- README.md
- setup.py
- __init__.py
- README.md
- setup.py
- __init__.py
- README.md
- setup.py
- function.rs
- global.rs
- memory.rs
- mod.rs
- table.rs
- buffer.rs
- mod.rs
- views.rs
- engines.rs
- errors.rs
- exports.rs
- import_object.rs
- instance.rs
- lib.rs
- module.rs
- store.rs
- target.rs
- types.rs
- values.rs
- wasi.rs
- wat.rs
- build.rs
- Cargo.toml
- pyproject.toml
- README.md
- lib.rs
- Cargo.toml
- pyproject.toml
- README.md
- lib.rs
- Cargo.toml
- pyproject.toml
- README.md
- lib.rs
- Cargo.toml
- pyproject.toml
- README.md
- engines.rs
- lib.rs
- target_lexicon.rs
- Cargo.toml
- README.md
- README.md
- update-version.sh
- custom_sections.rs
- custom_sections.wasm
- invalid.wasm
- test_docs.py
- test_function.py
- test_global.py
- test_import_object_dict.py
- test_import_object_old.py
- test_instance.py
- test_memory.py
- test_module.py
- test_store.py
- test_table.py
- test_target.py
- test_type.py
- test_value.py
- test_wasi.py
- test_wat.py
- tests.rs
- tests.wasm
- wasi.rs
- wasi.wasm
- .gitattributes
- .gitignore
- bors.toml
- Cargo.lock
- Cargo.toml
- CHANGELOG.md
- conftest.py
- justfile
- LICENSE
- README.md
π μ€μΉ κ°μ΄λ
1. μ½λ λ΄λ €λ°κΈ°
git clone https://github.com/wasmerio/wasmer-python
κΉνλΈμμ νλ‘μ νΈ μ½λ μ 체λ₯Ό λ΄ μ»΄ν¨ν°λ‘ λ΄λ €λ°μ΅λλ€.
cd wasmer-python
λ°©κΈ λ΄λ €λ°μ νλ‘μ νΈ ν΄λ μμΌλ‘ μ΄λν©λλ€.
2. Python
μ¬μ μΆμ²μ¬μ μ€λΉλ¬Ό
pip install .
PyPIμ λ°°ν¬λ ν¨ν€μ§λ₯Ό λ°λ‘ μ€μΉν©λλ€. μμ€ ν΄λ‘ μ΄ νμ μμ΅λλ€.
python <μ€νν νμΌλͺ
>.py # READMEμμ μ νν μ€ν νμΌλͺ
μ νμΈνμΈμ
νμ΄μ¬ μ€ν¬λ¦½νΈ(λλ λͺ¨λ)λ₯Ό μ€νν©λλ€.
μλ¬ λ©μμ§ μμ΄ μ€νλκ³ ν°λ―Έλμ μλ΄ λ¬Έκ΅¬κ° μΆλ ₯λλ©΄ μ μμ
λλ€.
3. Rust
보ν΅μ¬μ μ€λΉλ¬Ό
- Git GitHubμμ νλ‘μ νΈ μ½λλ₯Ό λ΄λ €λ°μΌλ €λ©΄ νμν©λλ€.
- Rust (rustup) rustupμΌλ‘ μ€μΉνλ©΄ cargoλ ν¨κ» μ€μΉλ©λλ€.
cargo build --release
Rust νλ‘μ νΈλ₯Ό μ»΄νμΌν©λλ€.
cargo run
λΉλ ν λ°λ‘ μ€νκΉμ§ μ§νν©λλ€.
cargo buildκ° μλ¬ μμ΄ λλλ©΄ μ±κ³΅μ
λλ€. target/ ν΄λμ μ€ν νμΌμ΄ μμ±λ©λλ€.
// repository documentation
Was this content helpful?
(0 ratings)
