Metadata-Version: 2.4
Name: rustybase
Version: 0.1.0
Summary: Official Python SDK for RustyBase Database
Author-email: RustyBase Team <info@rustybase.io>
Project-URL: Homepage, https://rustybase.io
Project-URL: Repository, https://github.com/diptanshumahish/rustybase-python-sdk
Project-URL: Issues, https://github.com/diptanshumahish/rustybase-python-sdk/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: httpx>=0.24.0
Requires-Dist: pymongo>=4.0.0
Provides-Extra: dev
Requires-Dist: pytest>=7.0.0; extra == "dev"
Requires-Dist: pytest-asyncio>=0.21.0; extra == "dev"
Requires-Dist: respx>=0.20.1; extra == "dev"
Requires-Dist: streamlit>=1.20.0; extra == "dev"
Dynamic: license-file

# RustyBase Python SDK

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

## Installation

```bash
pip install rustybase
```

## Quick Start

```python
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
