Skip to main content

🐍 HeroDB Python SDK

PyPI version License: MIT

Official Python SDK for HeroDB — High-performance NoSQL for the modern web.

HeroDB-SDK provides a robust and efficient way to interact with your HeroDB cluster directly from Python.


🚀 Quick Start

Installation

pip install herodb-sdk

Basic Usage

from herodb import HeroDBClient

# Initialize and connect
client = HeroDBClient('127.0.0.1', 8080)
client.connect()

# Insert a document
client.insert({
    '_id': 'hero_1',
    'name': 'Death Legion Commander',
    'specialty': 'Massive Scale'
})

# Retrieve data
result = client.find('hero_1')
print(f\"Retrieved: {result['doc']}\")

client.close()

🛠 Key Features

  • High Performance: Native TCP implementation for minimal latency.
  • Pythonic API: Simple and intuitive methods for all CRUD operations.
  • Scalable: Built-in support for sharded clusters via HeroDB Router.
  • JSON First: Direct mapping between Python dictionaries and HeroDB documents.

📖 API Reference

  • HeroDBClient(host, port): Create a new client.
  • connect(): Open the connection.
  • insert(doc): Save a dictionary as a document.
  • find(id=None): Search by ID or list all.
  • delete(id): Remove a document by ID.
  • close(): Clean up the connection.

Developed with 💀 by the Death Legion Team.

Metadata

Release files for herodb-sdk 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for herodb-sdk 1.1.1
File Size Uploaded Provenance Actions
herodb_sdk-1.1.1.tar.gz 2.4 kB Without provenance Details for herodb_sdk-1.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for herodb-sdk 1.1.1
File Interpreter ABI Platform Actions
herodb_sdk-1.1.1-py3-none-any.whl Python 3 none any Details for herodb_sdk-1.1.1-py3-none-any.whl

Total release size: 4.9 kB

Release files / herodb_sdk-1.1.1.tar.gz

Download URL herodb_sdk-1.1.1.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
411031b76b847190d56fbf0b5a250a7a6bcc8d47e42ccc905fd7ab692aee260f
BLAKE2b-256 checksum
How to use checksums
a770144d1e600cb2b63a7a650587915028b957b0ab51c1289f94e8a51eed538e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / herodb_sdk-1.1.1-py3-none-any.whl

Download URL herodb_sdk-1.1.1-py3-none-any.whl
Size 2.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9f389dfa5417ff34cf829e5f7ec134df52b97947acd6fb76302317ab6d81e752
BLAKE2b-256 checksum
How to use checksums
088292973b577f65ca51c200a065e9709edeea16088acf0a0e555e51e0afc57a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Security for herodb-sdk 1.1.1

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page