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
- Features
- Requirements
- Installing
- Usage
- Configuration
- ZTeraDB Connection
- Query
- Filter Conditions
- 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zteradb-1.0.1.tar.gz.
File metadata
- Download URL: zteradb-1.0.1.tar.gz
- Upload date:
- Size: 37.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c02c5d85f4094a6adaec4d1ac8d98759e2a6c05a2aeb4bfc58c80ca56a9ab3ff
|
|
| MD5 |
c7adfa28459980fbd13952645988bf20
|
|
| BLAKE2b-256 |
a9d2d7a34cf9cbc7febe3ca1ce66fae0e1a9b3a97dd932bbd1cc55bfbdfc2cd6
|
File details
Details for the file zteradb-1.0.1-py3-none-any.whl.
File metadata
- Download URL: zteradb-1.0.1-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6fd94ea882d5fc829d0fabd2753c33b3a2a175e0ff7a32d4e0b094e7c5b5f09e
|
|
| MD5 |
9ec615c1596a66db097d7498c0813528
|
|
| BLAKE2b-256 |
788f637a45765fdb57f3b3e2b1314383155d964fcd5eb3006d162e14dac2a7b2
|