nosqueel
Lightweight NoSQL key-value database for simple and practical uses. Uses SQLite as its engine, thereby benefiting from its power, integrity, and practicality.
pip install nosqueel
Usage
from nosqueel import NoSqueel
# initialize the database
db = NoSqueel('db.nosqueel') # or .db, or .anything, you choose
# insert a key-value pair
db.put('key1', 'value1')
# by default the .put method is unique safe, i.e. it raises an error
# if the key already exists. if you don't want that behavior you can
# use replace_if_exists=True.
db.put('key1', 'value1', replace_if_exists=True)
# retrieve a value by key
value = db.get('key1')
print(value) # output: 'value1'
# note: the get method returns None for non-existing keys
# update a value
db.update('key1', 123)
updated_value = db.get('key1')
print(updated_value) # output: 123
# delete a key-value pair
db.delete('key1')
# search for keys by value
db.put('key2', 'common_value')
db.put('key3', 'common_value')
keys = db.search('common_value')
print(keys) # output: ['key2', 'key3']
# retrieve all keys
all_keys = db.keys()
print(all_keys) # output: ['key2', 'key3']
Nosqueel uses pickle to serialize data (keys and values). This means you are free to use any python type that can be serialized using pickle for both keys and values.
Metadata
Release files for nosqueel 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nosqueel-0.1.2.tar.gz | 3.2 kB | Without provenance | Details for nosqueel-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nosqueel-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for nosqueel-0.1.2-py3-none-any.whl |
Total release size: 6.7 kB
Release files / nosqueel-0.1.2.tar.gz
| Download URL | nosqueel-0.1.2.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c4cde0c8623213e659279a5e41cdbe8febc8ffea7852e2899e130e9867085c72
|
|
BLAKE2b-256 checksum How to use checksums |
c77ecfe6c9d6b12ffad5af7438492d9639eb7d0ac4235456e4d0242e3b26ed19
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.1 Windows/10
|
Release files / nosqueel-0.1.2-py3-none-any.whl
| Download URL | nosqueel-0.1.2-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9e032602631cc14c12d5614322bec70ed5eae3b1424c9d72626babbefe5bedfe
|
|
BLAKE2b-256 checksum How to use checksums |
796f26ae0b99957faca53e93fbf35e62e2d4a2d18fa578e28b7f11356d47bede
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.1 Windows/10
|
Security for nosqueel 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.