hello-rust-pyo3
Minimal Rust extension for Python using PyO3 + maturin.
Quick test (local)
python -m venv .venv
# Windows: py -3.12 -m venv .venv
source .venv/bin/activate # Windows: .\.venv\Scripts\Activate.ps1
python -m pip install -U pip maturin
maturin develop # builds & installs into the venv
python -c "import hello_rust_pyo3 as m; print(m.add(2,3), m.greet('Sequa'))"
Build wheels / sdist
maturin build --release --out dist # wheels
maturin build --release --sdist --out dist # add sdist
Verify & Publish
python -m pip install -U twine
python -m twine check dist/*
# TestPyPI
python -m twine upload -r testpypi -u __token__ -p <TESTPYPI_TOKEN> dist/*
# PyPI
python -m twine upload -r pypi -u __token__ -p <PYPI_TOKEN> dist/*
Notes (Windows/macOS/Linux)
- Install Rust toolchain: https://rustup.rs/
- Windows: install Microsoft C++ build tools (Visual Studio Build Tools).
- macOS: Xcode Command Line Tools (
xcode-select --install). - Linux: ensure
gcc/clangand Python dev headers are installed.
Metadata
Release files for hello-rust-pyo3 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hello_rust_pyo3-0.1.0-cp39-cp39-win_amd64.whl | CPython 3.9 | CPython 3.9 | Windows x86-64 | Details |
Release files / hello_rust_pyo3-0.1.0-cp39-cp39-win_amd64.whl
| Download URL | hello_rust_pyo3-0.1.0-cp39-cp39-win_amd64.whl |
|---|---|
| Size | 100.1 kB |
| Tags | CPython 3.9 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
a887bb67b634281703b89e1d47c3423f42caddbf7887c0a70bd195924fdd8228
|
|
BLAKE2b-256 checksum How to use checksums |
c2ad8c04e93635e9611e1a0ed0b3f23bf38ca3b006ef97b4b540a0347f032df6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.13
|
Security for hello-rust-pyo3 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.