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.1.tar.gz (2.4 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.1-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: herodb_sdk-1.1.1.tar.gz
  • Upload date:
  • Size: 2.4 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.1.tar.gz
Algorithm Hash digest
SHA256 411031b76b847190d56fbf0b5a250a7a6bcc8d47e42ccc905fd7ab692aee260f
MD5 c6c65086cd0e789c25fd2e8e6edf9a8e
BLAKE2b-256 a770144d1e600cb2b63a7a650587915028b957b0ab51c1289f94e8a51eed538e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: herodb_sdk-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.5 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9f389dfa5417ff34cf829e5f7ec134df52b97947acd6fb76302317ab6d81e752
MD5 c9d80eba4d2442f9128b5286178b16a5
BLAKE2b-256 088292973b577f65ca51c200a065e9709edeea16088acf0a0e555e51e0afc57a

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