https://github.com/abhiyerra/rustypy
https://github.com/abhiyerra/rustypy
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/abhiyerra/rustypy
- Owner: opszero
- License: other
- Created: 2023-02-07T19:24:51.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-02-11T20:34:43.000Z (over 1 year ago)
- Last Synced: 2025-02-11T21:29:46.282Z (over 1 year ago)
- Language: Rust
- Homepage: https://opszero.com
- Size: 85 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# opszero-rustypy
opszero-rustypy is a template Rust Library for Python using [PyO3](https://github.com/PyO3/pyo3).
Use this project as a template or generate your own using PyO3. This project is included
within opsZero's AWS Lambda and Kubernetes templates:
- [aws-lambda-python](https://github.com/opszero/template-aws-lambda-python)
- [tiphyspy](https://github.com/opszero/tiphyspy)
# Dependencies
## MacOS
```
brew install pyenv pyenv-virtualenv
pip3 install maturin
```
# Create
```
mkdir project/
maturin init
✔ 🤷 What kind of bindings to use? · pyo3
```
# Build
```
pyenv virtualenv opszero-rustypy
pyenv activate opszero-rustypy
cargo update
./build.sh
```
- Built for Mac, Linux and Windows on Push
# Publish
- Published on Release Tags
# Use
```python
>>> import opszero_rustypy
>>> opszero_rustypy.sum_as_string(1,2)
'3'
```