No project description provided
Project description
A minimal example of a :snake: Python package with a :crab: Rust backend
One of the great aspects of Rust is that calling Rust functions from Python is easy thanks to maturin
This repository also includes automated creation and uploading of wheels to PyPI for distribution to Windows :window: , Mac :green_apple: and Linux :penguin: thanks to maturin-action.
The package itself is less import and just prints a few messages to the terminal.
Install the package with pip
pip install example_python_package_with_rust_backend
Usage
import example_python_package_with_rust_backend
returned_value = example_python_package_with_rust_backend.hello_world(
int_arg=3,
float_arg=2.01,
str_arg='hi'
)
print(returned_value)
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
Built Distributions
Close
Hashes for example_python_package_with_rust_backend-1.1.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e306738cf28acfb2ecf2542ea067d9ffcd83e93abc5720dabd307cc50c4defd2 |
|
MD5 | a67ae7a076f52ccbd79c4a4bcf50bb19 |
|
BLAKE2b-256 | cfbe4039425de19f21cd587a4a808f6405a3a690bccbae9c37aa00471590abdf |
Close
Hashes for example_python_package_with_rust_backend-1.1.7-cp39-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a07730c489662a76c0a04718f89e1bcb67ff6c653cdd3abaa14ec0ba15f77fa7 |
|
MD5 | ed2ac8d65c7246f8d570b6d58b73fabb |
|
BLAKE2b-256 | 73d592553b5ec555b1b723f2b23c20bea97f1e4d599e742d22e3d8ac9ca757a7 |
Close
Hashes for example_python_package_with_rust_backend-1.1.7-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4560f3eb17085c92db1edc6cecb94bf76b4ce4e10dbff3b5a40fd039fdf1b0a9 |
|
MD5 | 579081fc45e6f3e4eb496fcd0fbb5c56 |
|
BLAKE2b-256 | 00dd66adf1c2ca69738229a174b015eab231c917c7b739c5644b46579db2cd68 |
Close
Hashes for example_python_package_with_rust_backend-1.1.7-cp39-cp39-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a56ee29307c5126b301945295d82d91ec790661e715d4faec1c61f5b00ec021 |
|
MD5 | 1161e7a25831e1506225796afa499229 |
|
BLAKE2b-256 | 28c056bd8a927e1a4fa33e38c22860b4cf1b580f33ffdd6053b04cb0a54e751c |
Close
Hashes for example_python_package_with_rust_backend-1.1.7-cp39-cp39-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e409557a960d937917b5a369f716b8adff83fbe96993e5334cc24dbcbd89670d |
|
MD5 | ea8f9031f70cc7d5ccbff73f94085305 |
|
BLAKE2b-256 | f11b4ad9b1ccdec28873beed034d63910651646660373503b3225b030a331759 |