MonkeyHub Python SDK
Python SDK for MonkeyHub — Backend as a Service for AI teams.
Install
pip install monkeyhub
Quickstart
from monkeyhub import Monkey, PutOptions
m = Monkey("mk_live_your_key_here")
# Collections (MonkeyDB)
users = m.collection("users")
users.save({"id": "1", "name": "Alice", "role": "admin"})
user = users.find_one("1")
# Vector search (MonkeySearch)
docs = m.search("docs", fields=["title", "body"])
docs.upsert({"id": "1", "title": "Getting Started", "body": "Welcome to MonkeyHub"})
results = docs.query("getting started")
# Tasks (MonkeyTasks)
tasks = m.tasks("emails")
tasks.run({"payload": {"to": "alice@example.com", "template": "welcome"}})
# File storage (MonkeyBuckets)
bucket = m.bucket("uploads")
with open("photo.jpg", "rb") as f:
bucket.put("photo.jpg", f.read(), PutOptions(content_type="image/jpeg"))
url = bucket.get_url("photo.jpg")
# Email (MonkeyMail)
mail = m.mail()
mail.send(from_addr="hello@example.com", to="alice@example.com", subject="Hi", text="Hello!")
# Compute boxes (MonkeyBox)
box = m.boxes.create({"name": "dev-box", "image": "default"})
result = box.exec("echo hello")
print(result.stdout)
Context Manager
with Monkey("mk_live_your_key_here") as m:
col = m.collection("test")
col.save({"id": "1", "value": "hello"})
Documentation
Full documentation at monkeyhub.ai/docs/sdk/python.
Metadata
Release files for monkeyhub 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| monkeyhub-0.2.0.tar.gz | 24.6 kB | Without provenance | Details for monkeyhub-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| monkeyhub-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for monkeyhub-0.2.0-py3-none-any.whl |
Total release size: 46.9 kB
Release files / monkeyhub-0.2.0.tar.gz
| Download URL | monkeyhub-0.2.0.tar.gz |
|---|---|
| Size | 24.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4430a2c7cb4667f4d2da36f3a49af631ef023b1d06bcd138fcef920a38d5742a
|
|
BLAKE2b-256 checksum How to use checksums |
796318f025fec3366ea8603c9bf735fe3a27c3025a40463e829493df06bd2e28
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / monkeyhub-0.2.0-py3-none-any.whl
| Download URL | monkeyhub-0.2.0-py3-none-any.whl |
|---|---|
| Size | 22.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2d61cd76cb0df5eb026bad85a04a2fbb9c7201f5a721e3b18af8813abbded228
|
|
BLAKE2b-256 checksum How to use checksums |
298492c6c3c9dd2e103489661d6f8df81b39c30eb64b6b19af3929e892fb22e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Security for monkeyhub 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.