Crates.io | python-objects |
lib.rs | python-objects |
version | 0.0.7 |
source | src |
created_at | 2022-02-24 11:44:41.161038 |
updated_at | 2022-03-10 14:22:49.237941 |
description | rust crate that implements the architecture of the CPython objects. with this crate you can crate a list with any data type from rust |
homepage | https://github.com/alexzanderr/rust-python-objects |
repository | https://github.com/alexzanderr/rust-python-objects |
max_upload_size | |
id | 538457 |
size | 1,023,181 |
use python like objects in rust, such as list
, for now.
have the simplicity
and performance
together.
be happy.
first you need to see the showcases to convince you to install it.
python-list
python-dict
] -> incomingjust run this command
cargo add python-objects
and this will add the latest version
from crates.io
to your Cargo.toml
, just like the old way, but automatically.
cargo add
? -> its a cargo sub commandcargo install cargo-edit
cargo-edit
? -> its a rust package that adds useful sub commands for cargo that are not built-in
just copy the crate name
and the version you want to use:
python-objects = "$the_version_you_want"
# example
python-objects = "0.0.6"
to your Cargo.toml
and then write some code and build your project that uses python-objects
.
why not. because python concepts are very cool, but python is slow..
so what if we could use python objects in rust and have the same experience as in python (almost) ?
and things are getting much better. rust has zero-cost abstractions
, meaning that every struct and trait will be deleted at compile time
and they will be gone at runtime
.
so we are getting python objects in rust with performance
and simplity
.
check TODO.md
check CONTRIBUTING.md
check CHANGELOG.md
incoming, would be nice.
note for the user and developer
if you find issues
go ahead and make an
issue
or a
pull request
,
cant wait to take a look into them.
right now this project is very minimal, it will grow, the idea just came to my mind some days ago (on 21.02.2022) and the first implementation was done at 4 AM (23.02.2022) with some adrenaline.
so for now dont expect too much of this crate
peace to you!