Skip to main content

Low Ram Focused Database System in Python

Project description

NOTE: Update ReflectDB to >0.1.8 as there is a major bug in it

Reflect

A low level RAM free Database System

Example

from tqdm import tqdm # Install TQDM for tests
from reflect.database import Database, Identity, String, Value

db = Database("data.refldb", "data.refldc")
db.create_all()

class Names(db.Model):
    name = String()
    email = String()
    identity = Identity()

test_amount = 10000

for i in tqdm(range(test_amount)):
    x = db.refine(Names, name="Owie", email="Ow1e3@protonmail.com")
    y = db.dumps(x)
    db.publish(y)

with tqdm(total=test_amount) as t:
    db.query()
    t.update(test_amount)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

reflectdb-0.2-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file reflectdb-0.2-py3-none-any.whl.

File metadata

  • Download URL: reflectdb-0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for reflectdb-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 944a68c1c4720581034982b0cf05e00255bdca70e68da0b2ed7e3ff53ee65ca3
MD5 e05f4578a73b0355544ca1217a114b09
BLAKE2b-256 b8e97202abac8765456bcff5ca6d23e7c218ddb9852bcd014c7c0675dfbb565c

See more details on using hashes here.

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