Skip to content

Dict-like Python class that uses Rust's std::collections::HashMap module

Notifications You must be signed in to change notification settings

feldroy/oxidict

Repository files navigation

OxiDict

Rust's HashMap brought over to Python with PyO3.

python3.12 -m venv .venv
source .venv/bin/activate
pip install -U pip maturin uv
maturin develop

In the Python shell:

>>> from oxidict import OxiDict
>>> o = OxiDict()
>>> o.insert("key1", "value1")
>>> print(o.get("key1"))
value1
>>> print(o)
{"key1": "value1"}

About

Dict-like Python class that uses Rust's std::collections::HashMap module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages