Registry / database / speedict

speedict

JSON →
library0.3.12pypypiunverified

Python binding for Speedb, a fast key-value store. Current version 0.3.12, with ongoing development.

pip install speedict
INSTALL
IMPORT
SIG · SPEEDICT
S
speedict
databasepythonv0.3.12
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

DB
from speedict import DB
import speedict; db = speedict.DB()

Create a Speedb database, write and read a key-value pair.

import speedict db = speedict.DB() db.open('/tmp/test_db', create_if_missing=True) db.put(b'key', b'value') print(db.get(b'key')) db.close()
Debug
Known issues
gotchaThe DB.open() method expects bytes for path in some versions; use b prefix or encode.
fix
db.open(b'/tmp/test_db', create_if_missing=True) or db.open('/tmp/test_db'.encode())
affects: >=0.3.0
gotchaKeys and values must be bytes-like objects; strings without encoding cause errors.
fix
Always use bytes: db.put(b'key', b'value') or .encode() before passing.
affects: all
Upgrade
Version history
0.3.12latest on PyPI · released Nov 11, 2023
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
8
Meta
2
Amazon
1
Resources

No resource links recorded.

speedict — pip install speedict · libregistry