Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

example-python-package-with-rust-backend

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

example-python-package-with-rust-backend

  • 1.1.10
  • PyPI
  • Socket score

Maintainers
1

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 and maturin for automatically generating the CI yaml.

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)

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc