Skip to main content

Official Python SDK for HeroDB - High-performance NoSQL database by Death Legion Team

Project description

🐍 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.

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

herodb_sdk-1.1.0.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

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

herodb_sdk-1.1.0-py3-none-any.whl (1.9 kB view details)

Uploaded Python 3

File details

Details for the file herodb_sdk-1.1.0.tar.gz.

File metadata

  • Download URL: herodb_sdk-1.1.0.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for herodb_sdk-1.1.0.tar.gz
Algorithm Hash digest
SHA256 b6244cec83d66791e865d7b768a485d951169301def7ca3d30a793e4d0cf2b38
MD5 fc8d51a954e48cf69f720d5f64ee3b2f
BLAKE2b-256 ded49452fd9d4d1425350c0afbc89796ff36d3bf50c928758cd337ab9850db74

See more details on using hashes here.

File details

Details for the file herodb_sdk-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: herodb_sdk-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 1.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for herodb_sdk-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e7b5f2f71633373cebfb808aa2d7955816721d4d40624de95f4427c221f30129
MD5 040904e827d5ccd98c2c2b4f6f8ab428
BLAKE2b-256 c8a8769a5a719d592b91c44bf665b36d134ff6ccb191857f8686f0962b6a1728

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