Skip to main content

Light document database.

Project description

Docs

Basic document database mostly intended for use on replit.

db = ScarletDB([])
db.replit("data") # data is replit db the key that the database is stored in

db.clear() # empty the db for testing purposes

db.insert_many([
  {
    "name": "AJ",
    "pet": "Rabbit"
  },
  {
    "name": "Jack",
    "pet": "Dog"
  }
]) # insert some documents

db.update({"name": "Jack"}, {"name": "Tom"}) # update some documents, while querying them by a value (does not loop over them, uses a data structure to save them in a way where they can be queried)

print(db.get({
  "pet": "Dog"
})) # get a document by another key than before

Docs are on github

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

scarletdb-0.4.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file scarletdb-0.4.tar.gz.

File metadata

  • Download URL: scarletdb-0.4.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.10

File hashes

Hashes for scarletdb-0.4.tar.gz
Algorithm Hash digest
SHA256 83d1d2a7fa6b271629c7bb0ec1179b5943e4a07a2b8878aa0bbe5d164f0bf30c
MD5 139ed585df1d09c920f7cf81e407a91b
BLAKE2b-256 e12e7d32b4de436584e2d7ab44f1bf14dc1f14b3b5e2ed240be9c029ed969587

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