nosqllite
A lite nosql database for python
Example
import nosqllite
db = nosqllite.Database.new("demo_db")
doc = db.add_document("users")
db["users"].data = [{"name":"Foo_1"},{"name":"Foo_2"}]
print(db["users"].data[-1]["name"])
db.save()
print(doc.data)
print(db.documents)
for doc in db:
print(doc.type_of())
for d in doc:
print(d)
db["users"].data.pop(-1)
print(db["users"].data)
db.save()
for more check out my experiments.
Install
nosqllite is on pypi
pip install nosqllite
Usage
There is only a few things you need to understand:
There is Database
import nosqllite
db = nosqllite.Database.new("demo_db")
# or if you have one already you can also
db = nosqll.Database("demo_db")
# you can also add documents
db.save()
A nosql data base i made up of documets, this are json files.
doc = db.add_document("foo") # this have added a json file in the dir ./demo_db/foo.json
Then there is groups. Groups are just a dirs.
db.add_group("sub") # this adds a dir into ./demo_db/sub/
db["sub"].add_document("subdoc") # this have added a json file in the dir ./demo_db/sub/subdoc.json
db["sub"].add_group("subsub") # this adds a dir into ./demo_db/sub/subsub/
db["sub"]["subsub"].add_document("test")
db["sub"]["subsub"]["test"].data["some_key"] = "value"
db.save()
Build
git clone git@github.com:AxelGard/nosqllite.git
cd nosqllite
python3 -m venv env
source env/bin/activate
pip install -e .[dev]
Metadata
Release files for nosqllite 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 |
|---|---|---|---|---|
| nosqllite-0.1.2.tar.gz | 5.2 kB | With provenance | Details for nosqllite-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nosqllite-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for nosqllite-0.1.2-py3-none-any.whl |
Total release size: 10.8 kB
Release files / nosqllite-0.1.2.tar.gz
| Download URL | nosqllite-0.1.2.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fcc7cab51ffeac7e8c9817d2cd21cacb2acd6dcc32124d5bf85727d700fb8eb4
|
|
BLAKE2b-256 checksum How to use checksums |
89b2373dc077c1b54b18b14b30a4af702801a135773d07a872738c37bffb219b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 15, 2025.
Transparency logRelease files / nosqllite-0.1.2-py3-none-any.whl
| Download URL | nosqllite-0.1.2-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a28fb82d6f0be2a3593561578264b3a9a35c89aca37e07670edebf42237aa445
|
|
BLAKE2b-256 checksum How to use checksums |
ba93f7066d6cfb7b4ddfa656c57343048670e7cb04307232aa55bcd258fc985b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 15, 2025.
Transparency logSecurity for nosqllite 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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for nosqllite-0.1.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 15, 2025.
Transparency logA 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.