Skip to main content

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]

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)

Source distribution for nosqllite 0.1.2
File Size Uploaded
nosqllite-0.1.2.tar.gz 5.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nosqllite 0.1.2
File Interpreter ABI Platform
nosqllite-0.1.2-py3-none-any.whl Python 3 none any Details

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 log

Release 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 log

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page