Skip to main content

Python bindings for RocksDB

Project description

Python bindings for RocksDB.

See https://f321x.github.io/python-rocksdb/ for a more comprehensive install and usage description.

Quick install

$ pip install rocksdb-ng

The distribution is published to PyPI as rocksdb-ng (the plain rocksdb name belongs to the upstream project this is forked from). The import name is unchanged – after installing you still import rocksdb. Because it ships the same top-level rocksdb package, it cannot be co-installed with the original rocksdb distribution; uninstall that first (pip uninstall rocksdb).

Quick usage guide

>>> import rocksdb
>>> db = rocksdb.DB('test.db', rocksdb.Options(create_if_missing=True))
>>> db.put(b'a', b'data')
>>> print(db.get(b'a'))
b'data'

Acknowledgements

This project attempts to collect the efforts put into different forks of the pyrocksdb project that was originally written by stephan-hof, as sadly none seems to be actively maintained. In particular, the python-rocksdb fork created by twmht, but it also incorporates changes from other forks and unfinished pull requests.

Disclaimer

This python-rocksdb fork was developed mostly using LLM coding agents.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rocksdb_ng-2.3.0.tar.gz (386.2 kB view details)

Uploaded Source

File details

Details for the file rocksdb_ng-2.3.0.tar.gz.

File metadata

  • Download URL: rocksdb_ng-2.3.0.tar.gz
  • Upload date:
  • Size: 386.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for rocksdb_ng-2.3.0.tar.gz
Algorithm Hash digest
SHA256 bbb896073e4f75747864d511b29d2a4d3eebdd9eae0a8ef172af13a225241794
MD5 3c4570fad529cad168198fb9c632b48b
BLAKE2b-256 6dace400f9c779ddf6380969b135b5d713691766068bf9790fb009fb558e42a2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page