Skip to main content

`pyru_env` is a Python module for setting up a combined development environment for Python and Rust

Project description

Pyru Env

pyru_env is a Python module for setting up a combined development environment for Python and Rust.

The generated environment includes code demonstrating how Python can call Rust using the C ABI (Application Binary Interface).

Installation:

pip install pyru_env

If your Python installation is externally managed (installed with your OS), you can either use pipx or create a temporary venv that you delete after installing and running pyru_env.

Usage:

Inside an empty directory, run either:

python3 -m pyru_env

python -m pyru_env

The Python entry point of the generated environment is at:

/python/src/main.py

If running main.py produces no errors, the setup was successful.

Notes:

Your main.py includes code to build and load your rust library, depending on your OS.

The rust environment is created with "cargo new arbitrary_name --lib" except Cargo.toml includes 'crate-type = ["cdylib"]' and lib.rs is overwritten with two C ABI examples.

pyru_env internally calls venv with the same python you used to call pyru_env.

Requirements:

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

pyru_env-0.1.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

pyru_env-0.1.1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file pyru_env-0.1.1.tar.gz.

File metadata

  • Download URL: pyru_env-0.1.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for pyru_env-0.1.1.tar.gz
Algorithm Hash digest
SHA256 871d0b2f424909dfc083cc037faac1bddc0fff336552c63f642eded80846873c
MD5 b22df88e9dac082ea5c75477345375c8
BLAKE2b-256 30b132f9d75ff6b21c26bf502e19df8c7063d61d0c8d07035f76c38780b6459e

See more details on using hashes here.

File details

Details for the file pyru_env-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pyru_env-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for pyru_env-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 af129800a0198a6d204bc63ca2a72a1725023275c2c515b71ca729573d6bbae3
MD5 7c6d63522b8de66834dcd6b966c0ab4f
BLAKE2b-256 a897929ea35d0a4268db5372f227b5b0681c02962c9ad3bedbe38a3b8a02b99e

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