Metadata-Version: 2.5
Name: archipy-mysql
Version: 5.18.3
Summary: ArchiPy mysql adapter.
Author-email: Hossein Nejati <hosseinnejati14@gmail.com>
License-Expression: Apache-2.0
Requires-Python: <4,>=3.14
Requires-Dist: archipy==5.18.3
Provides-Extra: async
Requires-Dist: asyncmy2>=0.2.21; extra == 'async'
Provides-Extra: sync
Requires-Dist: pymysql>=1.2.3; extra == 'sync'
Description-Content-Type: text/markdown

# archipy-mysql

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

## Install

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

```bash
uv add "archipy[mysql]"
uv add "archipy[mysql-async]"
```

## Usage

```python
from archipy.adapters.mysql.sqlalchemy.adapters import MySQLSQLAlchemyAdapter

adapter = MySQLSQLAlchemyAdapter()
```

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

Classes in `archipy.adapters.mysql.sqlalchemy.adapters`: `MySQLSQLAlchemyAdapter`, `AsyncMySQLSQLAlchemyAdapter`.

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