Skip to main content

Python client SDK for MkDB — connects via TCP socket or HTTP.

Project description

MkDB Python Client SDK

Persistent TCP socket and HTTP client for MkDB.

Features

  • Multiplexed Socket Protocol: Parallel async queries over a single connection.
  • Fast Reconnect: Automatic dead-line detection and reconnection.
  • Interactive CLI: mkdb-client -i for a live shell.

Installation

pip install pymkdb-client

Quick Start

from mkdb_client import MkDBClient

client = MkDBClient(host="127.0.0.1", port=9001)
client.connect()

# Synchronous
res = client.get("my_store", "doc_1")

# Asynchronous
task = client.query_async("my_store", {"price": {"lt": 50}})
results = task.result()

client.close()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

pymkdb_client-0.1.9-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

File details

Details for the file pymkdb_client-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: pymkdb_client-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 20.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.7

File hashes

Hashes for pymkdb_client-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 9a9aa0b439c9008b02e3c713fce3648a7e0292ae33b262bdc158fc8b346914b9
MD5 84c46b8e1a50f803f51a3cc72172e9db
BLAKE2b-256 450dd73f8b002c61a3e5d8a7a9396cca8fc840d4e0936bb2aa251485b6538808

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