Skip to main content

Client for the grange document database — agent-first, crash-safe, pay-as-you-go hosted at grange.intrane.fr

Project description

grange-db (Python)

Zero-dependency client for the grange document database — the hosted instance (https://grange.intrane.fr/llms.txt) or any grange serve.

from grange_db import Grange
g = Grange("https://grange.intrane.fr", "gt_...")
leads = g.db("crm").coll("leads")
doc_id = leads.put({"co": "acme", "score": 9})
leads.index("score", kind="range")
print(leads.count("score>=5"))
leads.put_many([{"co": "globex"}, ("l2", {"co": "initech"})])   # one commit

Signup is self-serve with a peage wallet: grange_db.signup(url, "pw_..."). MIT.

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

grange_db-0.9.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

grange_db-0.9.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file grange_db-0.9.0.tar.gz.

File metadata

  • Download URL: grange_db-0.9.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for grange_db-0.9.0.tar.gz
Algorithm Hash digest
SHA256 64ebeb0720b8e44a8dfd90a08013d4942f28e239c56967f27f2fc381a91f2ff9
MD5 3da61b2b7100798c5944c0f2de815513
BLAKE2b-256 cfd92ea23f3ba3b06759bf4702d42cb1251f7117b5d38c99788c0afc32cd1c10

See more details on using hashes here.

File details

Details for the file grange_db-0.9.0-py3-none-any.whl.

File metadata

  • Download URL: grange_db-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for grange_db-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 25e4cff2e88f75d09750d67f80b414e315a57e0b25e657be31854ff6bbaadf51
MD5 c4ba0c7d913147a38f0a7148c0a0b65c
BLAKE2b-256 256ae3a65606f815337bf7fb9005d4e349280a689184fe52656894b566bb8101

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