Skip to main content

Simple and lightweight document oriented database

Project description

LemonDB

LemonDB is a simple and lightweight document oriented database written in pure Python 3 tried on version: 3.9 & 3.8. It should work on versions <= 3.7. This class handle all operation including storing document on a file.

Example:

from lemondb import LemonDB
db = LemonDB('test.db')
db.insert_many([{'name': 'Zenqi'}, {'name': 'John Doe'}, {'name': 'Elizabeth Doe'}])

# Search from database using `find` or `search`
for i in db.find('Doe').where(lambda x: x['name'].startswith('John')):
  print(i)
  #: {'name': 'John Doe'}
  
#: You can use the query or dict
from lemondb import Query
query = Query()
print(db.find_one(query.name == 'Zenqi')))
#: {'name': 'Zenqi'}

print(db.find_one({'name': 'Zenqi'}))
#: {'name': 'Zenqi'}

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

lemondb-0.0.7.tar.gz (17.9 kB view details)

Uploaded Source

File details

Details for the file lemondb-0.0.7.tar.gz.

File metadata

  • Download URL: lemondb-0.0.7.tar.gz
  • Upload date:
  • Size: 17.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for lemondb-0.0.7.tar.gz
Algorithm Hash digest
SHA256 fbddc0a6c5540c5ce62a1768081e76ef82bb2ff303cf49f2febd0a4a73533f59
MD5 01d997beb2e36a75f109a7a0c944b37b
BLAKE2b-256 69c39a5efb646b302c26f382e9262fe70f32c3e94ac98f416a2fb25000f1cff3

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