pyttfwrap
geopolars
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.
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.
geopolars
-
Polars DataFrame library 0.24.0 is released.
There is already a geopolars initiative: https://github.com/geopolars/geopolars
-
Rust 1.63.0
Oh, that’s really cool. Rust noob here, and I hadn't seen the tooling for building Python bindings. That looks like it could be a very powerful way to speed up your Python programs (much easier than the “just replace the slow bits in C” advice that was standard.)
The mappings in https://github.com/kylebarron/geopolars/blob/master/py-geopo... for example look very easy to follow.
What are some alternatives?
maturin - Build and publish crates with pyo3, cffi and uniffi bindings as well as rust binaries as python packages
dply-rs - A dataframe manipulation tool for parquet, csv, and json data.
ormsgpack - Msgpack serialization/deserialization library for Python, written in Rust using PyO3 and rust-msgpack. Reboot of orjson. msgpack.org[Python]
parquet-wasm - Rust-based WebAssembly bindings to read and write Apache Parquet data
pyo3-deserializer - An example deserializer written in Rust, callable from Python
transmitic - Encrypted, peer to peer, file transfer program :: https://discord.gg/tRT3J6T :: https://www.reddit.com/r/transmitic/ :: https://twitter.com/transmitic
PyCall.jl - Package to call Python functions from the Julia language
zero-to-production - Code for "Zero To Production In Rust", a book on API development using Rust.
python-rust-arrow-interop-example - Example of using the Apache Arrow C Data Interface between Python and Rust
datasette-stripe - A web SQL interface to your Stripe account using Datasette.
tokio-scoped - Scoped Runtime for tokio
Robyn - Robyn is a Super Fast Async Python Web Framework with a Rust runtime.