Skip to main content

No project description provided

Project description

PyPI

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

example_python_package_with_rust_backend-1.1.7-cp39-none-win_amd64.whl (119.4 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

example_python_package_with_rust_backend-1.1.7-cp39-cp39-manylinux_2_34_x86_64.whl (1.0 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.34+ x86-64

example_python_package_with_rust_backend-1.1.7-cp39-cp39-macosx_10_12_x86_64.whl (228.6 kB view hashes)

Uploaded CPython 3.9 macOS 10.12+ x86-64

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 (455.2 kB view hashes)

Uploaded CPython 3.9 macOS 10.12+ universal2 (ARM64, x86-64) macOS 10.12+ x86-64 macOS 11.0+ ARM64

Supported by

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