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

Uploaded Source

File details

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

File metadata

  • Download URL: lemondb-1.0.1.tar.gz
  • Upload date:
  • Size: 19.7 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.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for lemondb-1.0.1.tar.gz
Algorithm Hash digest
SHA256 f77ff1812362c2d02dd4b833d1e721b58cb0026e3d14e3ced087c77e8ee4a915
MD5 0383592aa885e4b4ad923638eb61a904
BLAKE2b-256 95853baacbda211c506f252aa10e507e163fed0d49f4ece5db9fecab5b637d0d

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