Metadata-Version: 2.1
Name: hitfactorpy-sqlalchemy
Version: 0.0.1
Summary: Manage practical match reports with SQLAlchemy
Author: Conor Heine
Author-email: conor.heine@gmail.com
Requires-Python: >=3.10,<3.12
Classifier: Development Status :: 3 - Alpha
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Typing :: Typed
Requires-Dist: alembic (>=1.9.2,<2.0.0)
Requires-Dist: asyncpg (>=0.27.0,<0.28.0)
Requires-Dist: hitfactorpy (>=0.0.4,<0.0.5)
Requires-Dist: inflection (>=0.5.1,<0.6.0)
Requires-Dist: sqlalchemy-continuum (>=1.3.14,<2.0.0)
Requires-Dist: sqlalchemy[asyncio,mypy] (>=1.4,<2.0)
Requires-Dist: typer[all] (>=0.7.0,<0.8.0)
Description-Content-Type: text/markdown

# hitfactorpy_sqlalchemy

[![Main](https://github.com/cahna/hitfactorpy_sqlalchemy/actions/workflows/main.yaml/badge.svg)](https://github.com/cahna/hitfactorpy_sqlalchemy/actions/workflows/main.yaml)

Manage practical match reports with SQLAlchemy

## Status

**Work in progress...**

## Usage

1. Run migrations on a database to create tables and types:
    ```console
    $ hitfactorpy-sqlalchemy migrate up
    ```
2. Verify DB status:
    ```console
    $ hitfactorpy-sqlalchemy migrate check
    ```
3. Import a match report from a text file:
    ```console
    $ hitfactorpy-sqlalchemy import match-report ./report.txt
    ```
4. Bulk import match reports:
    ```console
    $ find reports/ -type f -name "*.txt" | xargs hitfactorpy-sqlalchemy import match-report
    ```

