Tentaclio-postgres is a Python package that provides the necessary dependencies and extends the core Tentaclio library to enable seamless connections to PostgreSQL databases. It acts as a connector, allowing users to interact with PostgreSQL via Tentaclio's unified URL-based interface for data streams and database clients. The current version is 0.0.1. It is part of the broader Tentaclio ecosystem, which shows active development and updates.
pip install tentaclio-postgresVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to establish a connection to a PostgreSQL database using `tentaclio.db()`. It highlights the use of a PostgreSQL URL and shows how to execute a simple query. Credentials can be provided directly in the URL or automatically injected from environment variables, prefixed with `TENTACLIO__CONN__`.
Always use the main `tentaclio` library for database and stream operations, relying on `tentaclio-postgres` to provide the underlying PostgreSQL connectivity.
Ensure the correct `::table` suffix is appended to the PostgreSQL URL when specifying a target table for write operations (e.g., `tentaclio.open('postgresql://host/db::my_table', mode='w')`).Be aware of the environment variable precedence for credentials and connection parameters. Consult the main `tentaclio` documentation for full details on automatic credential injection via `TENTACLIO__CONN__` prefixed variables and database-specific settings like `TENTACLIO__PG_APPLICATION_NAME`.
Monitor the PyPI page or GitHub repository for updates and consult the `tentaclio` documentation for details on recommended versions or stability guarantees for database connectors.