Skip to main content

DB Connectors

A Python library providing unified connectors for various databases and message brokers.

Features

  • Kafka Integration: Both consumer and producer connectors using confluent-kafka and quixstreams
  • MinIO/S3 Support: Object storage connector using boto3
  • TimescaleDB/PostgreSQL: Database connector using SQLAlchemy
  • Unified Interface: All connectors inherit from a common base class

Installation

pip install db-connectors

Quick Start

Kafka Producer

from db_connectors import KafkaProducerConnector

producer = KafkaProducerConnector(
    address="localhost",
    port=9092,
    target="my-topic"
)
producer.connect()
producer.produce_message("Hello, Kafka!")
producer.disconnect()

MinIO Connector

from db_connectors import MinIOConnector

minio = MinIOConnector(
    address="localhost",
    port=9000,
    target="my-bucket"
)
minio.connect()
minio.upload_object("file.txt", "Hello, MinIO!")
minio.disconnect()

TimescaleDB Connector

from db_connectors import TimescaleConnector

timescale = TimescaleConnector(
    address="localhost",
    port=5432,
    target="mydb"
)
timescale.connect()
# Use timescale.engine for SQLAlchemy operations
timescale.disconnect()

Available Connectors

  • Connector - Base abstract class
  • KafkaConnector - Kafka consumer using quixstreams
  • KafkaProducerConnector - Kafka producer using confluent-kafka
  • MinIOConnector - MinIO/S3 object storage
  • TimescaleConnector - TimescaleDB/PostgreSQL database

Requirements

  • Python >= 3.12
  • confluent-kafka >= 2.3.0
  • quixstreams >= 2.0.0
  • boto3 >= 1.34.0
  • sqlalchemy >= 2.0.0
  • psycopg2-binary >= 2.9.0

License

MIT License

Metadata

Release files for db-connectors 1.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for db-connectors 1.2.2
File Size Uploaded Provenance Actions
db_connectors-1.2.2.tar.gz 65.8 kB Without provenance Details for db_connectors-1.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for db-connectors 1.2.2
File Interpreter ABI Platform Actions
db_connectors-1.2.2-py3-none-any.whl Python 3 none any Details for db_connectors-1.2.2-py3-none-any.whl

Total release size: 74.9 kB

Release files / db_connectors-1.2.2.tar.gz

Download URL db_connectors-1.2.2.tar.gz
Size 65.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6026ba4b1f5a2ca66772f15824c206b82d2532fc79247878f4748e7801c247e5
BLAKE2b-256 checksum
How to use checksums
3cb8c607f6032ecacc5bc34ba21ad7642515128399b33e6f55fd8cb0eff13eb6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.5

Release files / db_connectors-1.2.2-py3-none-any.whl

Download URL db_connectors-1.2.2-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3b3099cf139a01da59c815d8b63c95a08e2a029c1f7cf5c41f41b6ac4f0dc330
BLAKE2b-256 checksum
How to use checksums
be53b76cf8ca91de3299dd95def9704d09025263e85c764c2489cc33a9a051e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.5

Security for db-connectors 1.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page