https://github.com/wtdcode/mdbx-py
The Python Bindings to MDBX
https://github.com/wtdcode/mdbx-py
bindings database kvdb libmdbx mdbx python
Last synced: about 1 month ago
JSON representation
The Python Bindings to MDBX
- Host: GitHub
- URL: https://github.com/wtdcode/mdbx-py
- Owner: wtdcode
- License: gpl-2.0
- Created: 2024-12-21T07:54:16.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2024-12-24T04:28:24.000Z (5 months ago)
- Last Synced: 2025-03-25T16:54:29.097Z (2 months ago)
- Topics: bindings, database, kvdb, libmdbx, mdbx, python
- Language: Python
- Homepage:
- Size: 122 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Python bindings for libmdbx
Python bindings for libmdbx.
Try it with
```bash
pip install libmdbx
```Contributions and feedbacks are highly welcome.
## Usage
A quick sample to read all values from the default database:
```python
with Env(...) as env:
with env.ro_transaction() as txn:
with txn.cursor() as cur:
for k, v in cur.iter():
...
```## Manual build
Clone the repo
```bash
git clone https://github.com/wtdcode/mdbx-py
git submodule update --init --recursive
```Install via poetry
```bash
poetry install
```That's it!
## Credits
Forked from [libmdbx](https://github.com/erthink/libmdbx/tree/python-bindings)