An open API service indexing awesome lists of open source software.

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

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)