Skip to main content

Official Python SDK for RustyBase Database

Project description

RustyBase Python SDK

Official Python SDK for RustyBase, a high-performance local database system with a MongoDB-like API.

Installation

pip install rustybase

Quick Start

from rustybase import RustyBaseClient

# Connect using a connection string
client = RustyBaseClient(connection_string="rustybase://admin:pass@localhost:3000/mydb")

# Login to get JWT
client.login()

# Access a database and collection
db = client.db("mydb")
users = db.collection("users")

# Insert a document
users.insert_one({"name": "Alice", "age": 30})

# Find a document
user = users.find_one({"name": "Alice"})
print(user)

Features

  • Sync & Async Support: Built on top of httpx.
  • JWT Authentication: Automatic token refresh.
  • Request Signing: Optional HMAC-SHA256 signing for enhanced security.
  • CRUD Operations: Familiar MongoDB-like API.
  • Aggregation Pipeline: Powerful data processing.

License

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

rustybase-0.1.0.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

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

rustybase-0.1.0-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file rustybase-0.1.0.tar.gz.

File metadata

  • Download URL: rustybase-0.1.0.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for rustybase-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4440d0758ce1733dc1e9ff36965c67a98e1332fdfe0870df3686c702ea97118c
MD5 abda4823e4ae742f699f5dffc70a8a65
BLAKE2b-256 20ec7d7bcbd8e0878a26bc673f336a985ee33d67cf163b4adba12863fe4e9b26

See more details on using hashes here.

File details

Details for the file rustybase-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: rustybase-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for rustybase-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9b13d33486803e6463356d6b9180092c2349c18e58908130c85051dc25051aa0
MD5 8b6f32ed849028f4af2f3ca17f1f1928
BLAKE2b-256 b6f0630c931f45a1b9928b892c1468b12704e6f43e8bfd2606340edb61a30524

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