├── .gitignore ├── .vscode └── launch.json ├── Makefile ├── README.md ├── alembic.ini ├── docker-compose ├── monitoring.yaml └── storages.yaml ├── example.env ├── poetry.lock ├── pyproject.toml ├── setup.py ├── src ├── __init__.py ├── api │ ├── __init__.py │ └── internal │ │ ├── __init__.py │ │ ├── router.py │ │ └── views │ │ └── probes.py ├── bot │ ├── __init__.py │ ├── bot.py │ ├── handlers │ │ ├── __init__.py │ │ ├── add_friends_handlers.py │ │ └── start_handler.py │ ├── messages │ │ ├── __init__.py │ │ ├── add_friend.py │ │ ├── base.py │ │ └── start.py │ ├── middlewares.py │ ├── utils.py │ └── view.py ├── domain │ ├── __init__.py │ ├── entities │ │ ├── __init__.py │ │ ├── base.py │ │ └── user.py │ ├── services │ │ ├── __init__.py │ │ ├── healthcheck.py │ │ └── user.py │ └── use_cases │ │ ├── __init__.py │ │ ├── base.py │ │ └── user.py ├── gateways │ ├── __init__.py │ └── postgresql │ │ ├── __init__.py │ │ ├── alembic │ │ ├── README │ │ ├── env.py │ │ ├── script.py.mako │ │ └── versions │ │ │ └── 2024_09_29_2218-31f8ef7be9e0_.py │ │ ├── database.py │ │ └── models │ │ ├── __init__.py │ │ ├── base.py │ │ ├── mixins.py │ │ ├── shop_check.py │ │ └── user.py ├── project │ ├── __init__.py │ ├── configs │ │ ├── __init__.py │ │ ├── database.py │ │ ├── general.py │ │ ├── logging.py │ │ └── telegram.py │ └── containers.py ├── services │ ├── __init__.py │ ├── healthcheck.py │ └── user.py ├── utils │ ├── __init__.py │ └── aio.py └── web.py └── tests ├── __init__.py ├── conftest.py ├── fixtures └── database.py └── use_cases ├── __init__.py └── test_add_friend.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/.gitignore -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/README.md -------------------------------------------------------------------------------- /alembic.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/alembic.ini -------------------------------------------------------------------------------- /docker-compose/monitoring.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/docker-compose/monitoring.yaml -------------------------------------------------------------------------------- /docker-compose/storages.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/docker-compose/storages.yaml -------------------------------------------------------------------------------- /example.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/example.env -------------------------------------------------------------------------------- /poetry.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/poetry.lock -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/pyproject.toml -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/setup.py -------------------------------------------------------------------------------- /src/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/api/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/api/internal/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/api/internal/router.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/src/api/internal/router.py -------------------------------------------------------------------------------- /src/api/internal/views/probes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/src/api/internal/views/probes.py -------------------------------------------------------------------------------- /src/bot/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/bot/bot.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/src/bot/bot.py -------------------------------------------------------------------------------- /src/bot/handlers/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/bot/handlers/add_friends_handlers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/src/bot/handlers/add_friends_handlers.py -------------------------------------------------------------------------------- /src/bot/handlers/start_handler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/src/bot/handlers/start_handler.py -------------------------------------------------------------------------------- /src/bot/messages/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/bot/messages/add_friend.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/src/bot/messages/add_friend.py -------------------------------------------------------------------------------- /src/bot/messages/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/src/bot/messages/base.py -------------------------------------------------------------------------------- /src/bot/messages/start.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/src/bot/messages/start.py -------------------------------------------------------------------------------- /src/bot/middlewares.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/src/bot/middlewares.py -------------------------------------------------------------------------------- /src/bot/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/src/bot/utils.py -------------------------------------------------------------------------------- /src/bot/view.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/src/bot/view.py -------------------------------------------------------------------------------- /src/domain/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/domain/entities/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/domain/entities/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/src/domain/entities/base.py -------------------------------------------------------------------------------- /src/domain/entities/user.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/src/domain/entities/user.py -------------------------------------------------------------------------------- /src/domain/services/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/domain/services/healthcheck.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/src/domain/services/healthcheck.py -------------------------------------------------------------------------------- /src/domain/services/user.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/src/domain/services/user.py -------------------------------------------------------------------------------- /src/domain/use_cases/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/domain/use_cases/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/src/domain/use_cases/base.py -------------------------------------------------------------------------------- /src/domain/use_cases/user.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/src/domain/use_cases/user.py -------------------------------------------------------------------------------- /src/gateways/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/gateways/postgresql/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/gateways/postgresql/alembic/README: -------------------------------------------------------------------------------- 1 | Generic single-database configuration. -------------------------------------------------------------------------------- /src/gateways/postgresql/alembic/env.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/src/gateways/postgresql/alembic/env.py -------------------------------------------------------------------------------- /src/gateways/postgresql/alembic/script.py.mako: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/src/gateways/postgresql/alembic/script.py.mako -------------------------------------------------------------------------------- /src/gateways/postgresql/alembic/versions/2024_09_29_2218-31f8ef7be9e0_.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/src/gateways/postgresql/alembic/versions/2024_09_29_2218-31f8ef7be9e0_.py -------------------------------------------------------------------------------- /src/gateways/postgresql/database.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/src/gateways/postgresql/database.py -------------------------------------------------------------------------------- /src/gateways/postgresql/models/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/src/gateways/postgresql/models/__init__.py -------------------------------------------------------------------------------- /src/gateways/postgresql/models/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/src/gateways/postgresql/models/base.py -------------------------------------------------------------------------------- /src/gateways/postgresql/models/mixins.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/src/gateways/postgresql/models/mixins.py -------------------------------------------------------------------------------- /src/gateways/postgresql/models/shop_check.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/src/gateways/postgresql/models/shop_check.py -------------------------------------------------------------------------------- /src/gateways/postgresql/models/user.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/src/gateways/postgresql/models/user.py -------------------------------------------------------------------------------- /src/project/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/project/configs/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/src/project/configs/__init__.py -------------------------------------------------------------------------------- /src/project/configs/database.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/src/project/configs/database.py -------------------------------------------------------------------------------- /src/project/configs/general.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/src/project/configs/general.py -------------------------------------------------------------------------------- /src/project/configs/logging.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/src/project/configs/logging.py -------------------------------------------------------------------------------- /src/project/configs/telegram.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/src/project/configs/telegram.py -------------------------------------------------------------------------------- /src/project/containers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/src/project/containers.py -------------------------------------------------------------------------------- /src/services/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/services/healthcheck.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/src/services/healthcheck.py -------------------------------------------------------------------------------- /src/services/user.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/src/services/user.py -------------------------------------------------------------------------------- /src/utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/utils/aio.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/src/utils/aio.py -------------------------------------------------------------------------------- /src/web.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/src/web.py -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/tests/conftest.py -------------------------------------------------------------------------------- /tests/fixtures/database.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/tests/fixtures/database.py -------------------------------------------------------------------------------- /tests/use_cases/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/use_cases/test_add_friend.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Dihset/check-splitter-bot/HEAD/tests/use_cases/test_add_friend.py --------------------------------------------------------------------------------