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.2.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.2-py3-none-any.whl (45.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: zteradb-1.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 af173002ec112b56b122fef3a9288a64ebe784f1db0e1ba67121d47aab61caa9
MD5 f48fe42a6706706d004d91ef83ee84f6
BLAKE2b-256 0fe2962797d59d9beba6fa323128eed77f26ee653f8bb52cd371b349c7ac74fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: zteradb-1.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d6ce22a631f0b5d0849b5412f11083577aab39ba20a2f94c64e93835abc36f9a
MD5 47a3267040e66913aceae2fe41e0e6eb
BLAKE2b-256 fac907f59d0e9cd6b401f8d68ac52fc8ba13a8d266e3bed52c2889a79f62f758

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