Skip to main content

Easy and fast db for python users

Project description

disnakedb

Installation

pip3 install disnakedb

Usage

import disnakedb

db = disnakedb.Init()

print(db.get("foo"))  # None

db.set("foo", "bar")
print(db.get("foo"))  # bar

db.set("any", {"id": 1234, "top": 1, "str": "any string"})
print(db.get("any"))  # {"id": 1234, "top": 1, "str": "any string"}
print(db.get("any")["id"])  # 1234

db.remove("foo")
db.remove("any")
print(db.get("foo"))  # None

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

disnakedb-0.1.3.tar.gz (2.0 kB view hashes)

Uploaded Source

Built Distribution

disnakedb-0.1.3-py3-none-any.whl (2.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page