Skip to main content

Light document database.

Project description

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.2.tar.gz (3.4 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: scarletdb-0.2.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

File hashes

Hashes for scarletdb-0.2.tar.gz
Algorithm Hash digest
SHA256 579cfafbddb99826b6ebbaef0fbc53652df1563fc06282da1a7f4680c423b973
MD5 544727848b7627a81377c6bb09dda7cb
BLAKE2b-256 ef74beb9dacbd26420efe6a07ba2cea60974bb7dcabf93dc8aa0d99600a180e3

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