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: 10 months 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 (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-06-06T12:45:21.000Z (12 months ago)
- Last Synced: 2025-07-04T20:19:54.089Z (11 months ago)
- Topics: bindings, database, kvdb, libmdbx, mdbx, python
- Language: Python
- Homepage:
- Size: 142 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)