├── .gitignore ├── Dockerfile ├── LICENSE ├── README.md ├── alembic.ini ├── app ├── __init__.py ├── api │ ├── __init__.py │ ├── dependencies │ │ ├── __init__.py │ │ └── db.py │ └── routes │ │ ├── __init__.py │ │ ├── api.py │ │ └── coupons.py ├── core │ ├── __init__.py │ └── config.py ├── db │ ├── __init__.py │ ├── base.py │ ├── base_class.py │ ├── errors.py │ ├── migrations │ │ ├── README │ │ ├── env.py │ │ ├── script.py.mako │ │ └── versions │ │ │ ├── 750cdc702a91_.py │ │ │ └── 7db66d4b0914_.py │ ├── repositories │ │ ├── __init__.py │ │ ├── base.py │ │ └── coupons.py │ ├── session.py │ └── tables │ │ ├── __init__.py │ │ └── coupons.py ├── main.py └── models │ ├── __init__.py │ └── schema │ ├── __init__.py │ ├── base.py │ └── coupons.py ├── docker-compose.yml ├── poetry.lock ├── pyproject.toml └── tests ├── __init__.py ├── app ├── __init__.py ├── api │ ├── __init__.py │ └── routes │ │ ├── __init__.py │ │ └── test_coupons.py └── test_main.py └── conftest.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rglsk/fastapi-sqlalchemy-1.4-async/HEAD/.gitignore -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rglsk/fastapi-sqlalchemy-1.4-async/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rglsk/fastapi-sqlalchemy-1.4-async/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rglsk/fastapi-sqlalchemy-1.4-async/HEAD/README.md -------------------------------------------------------------------------------- /alembic.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rglsk/fastapi-sqlalchemy-1.4-async/HEAD/alembic.ini -------------------------------------------------------------------------------- /app/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/api/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/api/dependencies/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/api/dependencies/db.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rglsk/fastapi-sqlalchemy-1.4-async/HEAD/app/api/dependencies/db.py -------------------------------------------------------------------------------- /app/api/routes/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/api/routes/api.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rglsk/fastapi-sqlalchemy-1.4-async/HEAD/app/api/routes/api.py -------------------------------------------------------------------------------- /app/api/routes/coupons.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rglsk/fastapi-sqlalchemy-1.4-async/HEAD/app/api/routes/coupons.py -------------------------------------------------------------------------------- /app/core/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/core/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rglsk/fastapi-sqlalchemy-1.4-async/HEAD/app/core/config.py -------------------------------------------------------------------------------- /app/db/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/db/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rglsk/fastapi-sqlalchemy-1.4-async/HEAD/app/db/base.py -------------------------------------------------------------------------------- /app/db/base_class.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rglsk/fastapi-sqlalchemy-1.4-async/HEAD/app/db/base_class.py -------------------------------------------------------------------------------- /app/db/errors.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rglsk/fastapi-sqlalchemy-1.4-async/HEAD/app/db/errors.py -------------------------------------------------------------------------------- /app/db/migrations/README: -------------------------------------------------------------------------------- 1 | Generic single-database configuration. -------------------------------------------------------------------------------- /app/db/migrations/env.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rglsk/fastapi-sqlalchemy-1.4-async/HEAD/app/db/migrations/env.py -------------------------------------------------------------------------------- /app/db/migrations/script.py.mako: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rglsk/fastapi-sqlalchemy-1.4-async/HEAD/app/db/migrations/script.py.mako -------------------------------------------------------------------------------- /app/db/migrations/versions/750cdc702a91_.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rglsk/fastapi-sqlalchemy-1.4-async/HEAD/app/db/migrations/versions/750cdc702a91_.py -------------------------------------------------------------------------------- /app/db/migrations/versions/7db66d4b0914_.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rglsk/fastapi-sqlalchemy-1.4-async/HEAD/app/db/migrations/versions/7db66d4b0914_.py -------------------------------------------------------------------------------- /app/db/repositories/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/db/repositories/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rglsk/fastapi-sqlalchemy-1.4-async/HEAD/app/db/repositories/base.py -------------------------------------------------------------------------------- /app/db/repositories/coupons.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rglsk/fastapi-sqlalchemy-1.4-async/HEAD/app/db/repositories/coupons.py -------------------------------------------------------------------------------- /app/db/session.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rglsk/fastapi-sqlalchemy-1.4-async/HEAD/app/db/session.py -------------------------------------------------------------------------------- /app/db/tables/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/db/tables/coupons.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rglsk/fastapi-sqlalchemy-1.4-async/HEAD/app/db/tables/coupons.py -------------------------------------------------------------------------------- /app/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rglsk/fastapi-sqlalchemy-1.4-async/HEAD/app/main.py -------------------------------------------------------------------------------- /app/models/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/models/schema/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/models/schema/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rglsk/fastapi-sqlalchemy-1.4-async/HEAD/app/models/schema/base.py -------------------------------------------------------------------------------- /app/models/schema/coupons.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rglsk/fastapi-sqlalchemy-1.4-async/HEAD/app/models/schema/coupons.py -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rglsk/fastapi-sqlalchemy-1.4-async/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /poetry.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rglsk/fastapi-sqlalchemy-1.4-async/HEAD/poetry.lock -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rglsk/fastapi-sqlalchemy-1.4-async/HEAD/pyproject.toml -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/app/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/app/api/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/app/api/routes/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/app/api/routes/test_coupons.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rglsk/fastapi-sqlalchemy-1.4-async/HEAD/tests/app/api/routes/test_coupons.py -------------------------------------------------------------------------------- /tests/app/test_main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rglsk/fastapi-sqlalchemy-1.4-async/HEAD/tests/app/test_main.py -------------------------------------------------------------------------------- /tests/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rglsk/fastapi-sqlalchemy-1.4-async/HEAD/tests/conftest.py --------------------------------------------------------------------------------