ormsgpack
pyttfwrap
ormsgpack | pyttfwrap | |
---|---|---|
3 | 1 | |
219 | 1 | |
- | - | |
9.1 | 1.8 | |
13 days ago | over 2 years ago | |
Rust | Rust | |
Apache License 2.0 | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ormsgpack
pyttfwrap
-
Use rust code in Python with pyo3
I recently wanted to use some rust crates from Python and decided to give PyO3 a go and I must say it works really well.
Took about one evening to plug it all together and get it running. The guide at pyo3.rs was really helpful and maturin to build binary packages just works. You pass in python types and they arrive as rust-native types. Makes writing code feel very native.
The result: https://github.com/Grollicus/pyttfwrap takes a string and splits it as it would wrap when rendered with a given TTF font. Most of the code is about keeping a reference to the loaded font as that's an expensive operation.
Was some great fun and I'm sure I'll use it some more.
What are some alternatives?
orjson - Fast, correct Python JSON library supporting dataclasses, datetimes, and numpy
maturin - Build and publish crates with pyo3, cffi and uniffi bindings as well as rust binaries as python packages
rmp-rpc - a msgpack-rpc rust library based on tokio
pyo3-deserializer - An example deserializer written in Rust, callable from Python
geopolars - Geospatial extensions for Polars
Python-Regex - A port of the Rust regex library to python for super speed linear matching.
PyCall.jl - Package to call Python functions from the Julia language
extendr - R extension library for rust designed to be familiar to R users.
python-rust-arrow-interop-example - Example of using the Apache Arrow C Data Interface between Python and Rust
Robyn - Robyn is a Super Fast Async Python Web Framework with a Rust runtime.
litmus - A fast python HTTP server inspired by japronto written in rust.