pyttfwrap
PyCall.jl
pyttfwrap | PyCall.jl | |
---|---|---|
1 | 28 | |
1 | 1,438 | |
- | 0.3% | |
1.8 | 6.1 | |
over 2 years ago | about 2 months ago | |
Rust | Julia | |
- | MIT License |
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.
PyCall.jl
-
I just started into Julia for ML
For point 3 you can use https://github.com/cjdoris/PythonCall.jl or https://github.com/JuliaPy/PyCall.jl (and their respective Python sister packages).
- The Mojo Programming Language: A Python Superset Drawing from Rust's Strengths
-
Calling Chapel, Carbon, and zig code in Julia
PyCall.jl is really handy. Are there any similar projects for calling Chapel code, or Carbon/zig?
-
Am I dumb in thinking I can use Rust as a Fast Python and leave it at that?
Julia and Python interop should not be a problem at all. Actually Julia has one of the best interops I’ve ever seen, so much that swift copied it. https://github.com/JuliaPy/PyCall.jl
- Which tools do you use for python + Data Science?
-
I don't want to abandon Rust for Julia
One small note, julia also has great python interop via PyCall.jl
- Faster Python calculations with Numba: 2 lines of code, 13× speed-up
-
Interoperability in Julia
It is possible to call Python from Julia using PyCall. Then to install PyCall, run the command in the Julia REPL.
-
Why is Python so used in the machine learning?
That said, you can run python modules in Julia. So you can just export your code as a module and then use it in Julia via the PyCall package. short description here github here <— you’d just add the pacakge via the really nice package manager built into julia, but for link for more detailed documentation
- Use rust code in Python with pyo3
What are some alternatives?
maturin - Build and publish crates with pyo3, cffi and uniffi bindings as well as rust binaries as python packages
py2many - Transpiler of Python to many other languages
ormsgpack - Msgpack serialization/deserialization library for Python, written in Rust using PyO3 and rust-msgpack. Reboot of orjson. msgpack.org[Python]
Revise.jl - Automatically update function definitions in a running Julia session
pyo3-deserializer - An example deserializer written in Rust, callable from Python
julia - The Julia Programming Language
geopolars - Geospatial extensions for Polars
Genie.jl - 🧞The highly productive Julia web framework
python-rust-arrow-interop-example - Example of using the Apache Arrow C Data Interface between Python and Rust
are-we-fast-yet - Are We Fast Yet? Comparing Language Implementations with Objects, Closures, and Arrays
fast-ruby - :dash: Writing Fast Ruby :heart_eyes: -- Collect Common Ruby idioms.
libffi - A portable foreign-function interface library.