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

Uploaded Source

File details

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

File metadata

  • Download URL: scarletdb-0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 5a931b441dab2282588498ba537dd276e9521b9edabf98868dca63052c95e852
MD5 d10b73d362f4b8a7ff2f81f5983f67b9
BLAKE2b-256 34ee66bb8c3327d62909732d868c1ae27adeed8b3a8b812127b7f107e0d1d6c0

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