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

Uploaded Python 3

File details

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

File metadata

  • Download URL: zteradb-1.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 35fa0327ea6c56b1079583cc801b34406dd61b41b0d5a8de45ce5099d47075d6
MD5 0870dd73c5697a0593ebd70598561cf0
BLAKE2b-256 b671a6e0ba8bdf7a745c8bfed5f149732ac74a784ba2715fb48fdb30da9b8ad1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: zteradb-1.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 68b6550e2508473f7e8a59b9329bc3ef711438066c3583fdfd5fcdddb3d7463f
MD5 20c22a80e50ad741c0cf3784763393e9
BLAKE2b-256 e255fe7f8cc246e96af52ebc20c1c82f185187d99e552b2f01d4d69ea5931c8a

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