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.8.0.tar.gz (3.4 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.8.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: grange_db-0.8.0.tar.gz
  • Upload date:
  • Size: 3.4 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.8.0.tar.gz
Algorithm Hash digest
SHA256 9770aac3fd98a909ecadf7d1373d25db596b53c2d882de7af5fad39b616be92b
MD5 85697a524e9fdf963209e639ed77ed5d
BLAKE2b-256 0e1d3346e7376a9e08788fe04432a769f19dac3fe1cd673494e87ad1577c1c57

See more details on using hashes here.

File details

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

File metadata

  • Download URL: grange_db-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 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.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 64711c992cadc7b7eed2fe58f7c5500fddf0e9e97e3a5a2e07364c257a271aff
MD5 f32acdb9ef5bed9ed8a452aeba11d366
BLAKE2b-256 ff0d6dc43d9bab8ad175f00add7634ce8d0a8c060b641ef6ce505ab8ada79f26

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