Skip to main content

ZTeraDB is a Python client library designed to simplify interactions with ZTeraDB.It provides a set of classes and tools that enable seamless integration, allowing developers to easily manage database operations and queries.

Project description

ZTeraDB Python Client library

This is a Python client library for interacting with ZTeraDB, a platform that allows you to connect to your existing databases and query them using ZTeraDB Query Language (ZQL). The client provides an easy-to-use interface to send queries to ZTeraDB and retrieve results in a standardized format.

Table of Contents

  1. Features
  2. Requirements
  3. Installing
  4. Usage
  5. Configuration
  6. ZTeraDB Connection
  7. Query
  8. Filter Conditions
  9. License

Features

  • Connect to Multiple Databases: Seamlessly interact with your existing databases through ZTeraDB.
  • ZTeraDB Query Language (ZQL): Use a unified query language to query data across different database systems.
  • Easy Integration: Easily integrate ZTeraDB into your Node.js application.
  • Asynchronous Queries: Support for async/await syntax to handle queries and results asynchronously.
  • Error Handling: Comprehensive error handling to help debug and manage database queries.

Requirements

  • This is a python module available through the PyPI (Python Package Index) registry.
  • Before installing, download and install python. Python 3.6.0 or higher is required.

Install

Run following command to install ZTeraDB client for python.

# Using pip
pip install zteradb


# Using conda
conda install zteradb

Usage

import os
import asyncio

# Import ZTeraDBConnect, ZTeraDBQuery classes 
from zteradb import ZTeraDBConnectionAsync, ZTeraDBQuery
from zteradb.zteradb_config import ZTeraDBConfig

ZTERADB_CONFIG = ZTeraDBConfig(
    ...
)

# Establish connection with ZTeraDB server
connection = ZTeraDBConnectionAsync("db1.zteradb.com", 7777, ZTERADB_CONFIG)

async def main():
    # Prepare select query
    query = ZTeraDBQuery("user").select()

    # Run the query
    result = await connection.run(query)

    # Iterate the result
    async for row in result:
        print("Query result: ", row)

    # Close the connection
    await connection.close()


asyncio.run(main())

License

This project is licensed under the ZTeraDB License - see LICENCE file for details.

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

zteradb-1.0.0.tar.gz (38.0 kB view details)

Uploaded Source

Built Distribution

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

zteradb-1.0.0-py3-none-any.whl (45.7 kB view details)

Uploaded Python 3

File details

Details for the file zteradb-1.0.0.tar.gz.

File metadata

  • Download URL: zteradb-1.0.0.tar.gz
  • Upload date:
  • Size: 38.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for zteradb-1.0.0.tar.gz
Algorithm Hash digest
SHA256 58e8d24e89f12fa1a0bcb39debe27013016bb6b8a5dbc8214a404ace599ebcf6
MD5 3f4efc39ca0ea9df5a8ec48e654761a6
BLAKE2b-256 44461283eefdf6b758f2ca7164c3732d8a75792265b1b0add4dc9298093abaeb

See more details on using hashes here.

File details

Details for the file zteradb-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: zteradb-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 45.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for zteradb-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5d8a5edd508528ffdc62166182471c62ada729026be93c1561f8f170fe63df50
MD5 8beb65efd0a27a2bd5d6da89061bec13
BLAKE2b-256 489cc4320a53eb9c88359e062c17ffd6053f5902de47a5e8d06d1e5aefb88a7b

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