Skip to main content

No project description provided

Project description

Steps to build python bindings

  1. Create a virtual env for pyo3
pyenv virtualenv 3.10.15 pyo3-dev
pyenv activate pyo3-dev
  1. [Optional]Install maturin if not installed

  2. [Optional, only for new projects] Init maturin

maturin init
>> choose pyo3
  1. Generate Wheel , install the wheel for python developement
maturin develop  #- wheel is generated.
python
>>> import leap_sdk_pyo3
>>> leap_sdk_pyo3.sum_as_string(5, 20)
'25'

Steps to build and invoke RUST code directly.

  1. This code invokes the main.rs
RUST_LOG=info cargo run --bin server

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

leap_sdk_pyo3-0.1.0.tar.gz (34.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

leap_sdk_pyo3-0.1.0-cp310-cp310-macosx_11_0_arm64.whl (193.3 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file leap_sdk_pyo3-0.1.0.tar.gz.

File metadata

  • Download URL: leap_sdk_pyo3-0.1.0.tar.gz
  • Upload date:
  • Size: 34.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.7.6

File hashes

Hashes for leap_sdk_pyo3-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b5633437bdf09c3e92ee5934944fac1129b2c01c2c45715c6d1094456853920a
MD5 43d12496d643cf28d06c0cd1ae15a508
BLAKE2b-256 449130cd212be1755f09637079b1a976cdc86e4d006aed4727ed67fe46264344

See more details on using hashes here.

File details

Details for the file leap_sdk_pyo3-0.1.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for leap_sdk_pyo3-0.1.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8fee207ac0586c519f00966312800a8e19464623690f71651cf7e360b7d51dea
MD5 1e439b1108dfad70d98a6eb1e5da785e
BLAKE2b-256 5c303cd359f706e554af8c501021816bb7aee73a434e22e1a9be81ad20f3aae0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page