Metadata-Version: 2.5
Name: archipy-postgres
Version: 5.18.1
Summary: ArchiPy postgres adapter.
Author-email: Hossein Nejati <hosseinnejati14@gmail.com>
License-Expression: Apache-2.0
Requires-Python: <4,>=3.14
Requires-Dist: archipy==5.18.1
Requires-Dist: psycopg[binary,pool]>=3.3.6
Description-Content-Type: text/markdown

# archipy-postgres

PostgreSQL adapter for [ArchiPy](https://syntaxarc.github.io/ArchiPy/): SQLAlchemy access to PostgreSQL.

## Install

Install it through the core extra, which pins this package to the matching ArchiPy version:

```bash
uv add "archipy[postgres]"
```

## Usage

```python
from archipy.adapters.postgres.sqlalchemy.adapters import PostgresSQLAlchemyAdapter

adapter = PostgresSQLAlchemyAdapter()
```

The adapter reads its settings from the `POSTGRES_SQLALCHEMY` section of the global config, for example `POSTGRES_SQLALCHEMY__<FIELD>` environment variables.

Classes in `archipy.adapters.postgres.sqlalchemy.adapters`: `PostgresSQLAlchemyAdapter`, `AsyncPostgresSQLAlchemyAdapter`.

See the [PostgreSQL tutorial](https://syntaxarc.github.io/ArchiPy/tutorials/adapters/postgres/) for the full API.
