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.1.0.tar.gz (353.7 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: rocksdb_ng-2.1.0.tar.gz
  • Upload date:
  • Size: 353.7 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.1.0.tar.gz
Algorithm Hash digest
SHA256 fad1c0d96c265081689c6c8cc6662745912e55c3376de760227f664181c3d64f
MD5 c1f90199269088ebb0b58fbcdd35e7f8
BLAKE2b-256 0f3995fa9774f5818fc2e5c434e2982c0ae91bcf8cbc81195dda833e7b385728

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