Skip to main content

An OpenAPI client for the DeltaStream API

Project description

deltastream-connector

A Python client library for DeltaStream - a SQL streaming processing engine based on Apache Flink.

Features

  • Asynchronous API client for DeltaStream
  • Support for SQL statements execution
  • Streaming result sets
  • API Token authentication
  • Python 3.11+ support

Installation

pip install deltastream-connector

Quick Start

import asyncio
from deltastream.api.conn import APIConnection

# Initialize connection with API token
conn = APIConnection.from_dsn("https://:<your_token>@api.deltastream.io/v2")

async def main():
    # Execute SQL queries
    rows = await conn.query("SELECT 1;")
    
    # Process results asynchronously
    async for row in rows:
        print(row)

if __name__ == '__main__':
    asyncio.run(main())

Authentication

The connector uses API token authentication. You can obtain an API token from the DeltaStream platform by running CREATE API_TOKEN api_token_name; using the console.

Support

For support, please contact support@deltastream.com or open an issue on our GitHub repository.

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

deltastream_connector-0.1.2.tar.gz (57.1 kB view details)

Uploaded Source

Built Distribution

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

deltastream_connector-0.1.2-py3-none-any.whl (94.8 kB view details)

Uploaded Python 3

File details

Details for the file deltastream_connector-0.1.2.tar.gz.

File metadata

File hashes

Hashes for deltastream_connector-0.1.2.tar.gz
Algorithm Hash digest
SHA256 abfc314c7f14d5d3a9b7fd68f871263f657fdcd007f4b06e2595ebff396891e8
MD5 7c88670a2e7ab0c1af9c29c81e708df1
BLAKE2b-256 c738f017e334fa1c8ca31bc5a8ee9c800faa839e08a4c42beadd902acf817305

See more details on using hashes here.

File details

Details for the file deltastream_connector-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for deltastream_connector-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fcdb8f3cfb1510c8f83922e240925cb22ff17805c1fcc9068c38d6991ae5d012
MD5 6ce8fe97da899024417d86a41dd95edb
BLAKE2b-256 971cab26792a4198b0b653c0696322029a8a10f9568d93dce728730f3dcd177c

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