fastogram 0.0.2__tar.gz → 0.0.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {fastogram-0.0.2 → fastogram-0.0.3}/PKG-INFO +3 -2
- {fastogram-0.0.2 → fastogram-0.0.3}/README.md +2 -1
- {fastogram-0.0.2 → fastogram-0.0.3}/pyproject.toml +1 -1
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/cli.py +19 -7
- {fastogram-0.0.2 → fastogram-0.0.3}/.gitignore +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/.pypi-token.example +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/Makefile +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/scripts/sync_template.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/__init__.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/.dockerignore +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/.env.example +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/.gitignore +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/.pre-commit-config.yaml +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/.python-version +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/AGENTS.md +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/README.md +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/TODO.md +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/VIBECODER.md +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/alembic/env.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/alembic.ini +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/__init__.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/api/__init__.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/api/deps.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/api/routes/health.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/bootstrap/__init__.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/bootstrap/container.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/bootstrap/logging.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/bootstrap/request_context.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/bootstrap/request_id_middleware.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/bootstrap/startup_checks.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/bot/__init__.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/bot/dispatcher.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/bot/handlers/__init__.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/bot/handlers/start.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/bot/keyboards/__init__.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/bot/middlewares/__init__.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/bot/middlewares/error_logging.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/bot/middlewares/rate_limit.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/bot/middlewares/rate_limit_backends.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/bot/middlewares/service_injection.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/bot/states/__init__.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/cli.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/core/__init__.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/core/config.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/core/db.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/core/security.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/integrations/__init__.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/integrations/telegram.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/jobs/__init__.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/jobs/worker.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/main.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/modules/__init__.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/modules/users/__init__.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/modules/users/models.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/modules/users/repository.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/modules/users/schemas.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/modules/users/service.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/services/__init__.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/services/audit.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/services/health.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/services/payments.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/services/storage.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/services/telegram_webhook.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/services/users.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/webapp/static/app.js +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/webapp/templates/index.html +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/docker/Dockerfile +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/docker/docker-compose.yml +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/docker/nginx.conf +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/manage.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/pyproject.toml +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/scripts/__init__.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/scripts/admin_tasks.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/scripts/seed_data.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/scripts/set_webhook.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/tests/__init__.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/tests/architecture/test_framework_leak.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/tests/architecture/test_no_db_in_handlers.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/tests/architecture/test_no_db_in_routes.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/tests/architecture/test_service_instantiation.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/tests/architecture/test_session_scope_usage.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/tests/architecture/test_transaction_ownership.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/tests/conftest.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/tests/test_config_delivery_mode.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/tests/test_request_id.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/tests/test_startup_checks.py +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/uv.lock +0 -0
- {fastogram-0.0.2 → fastogram-0.0.3}/uv.lock +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fastogram
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.3
|
|
4
4
|
Summary: Opinionated FastAPI + Aiogram project generator (FastGram template)
|
|
5
5
|
Author-email: Abubeker Afdel <ibnuafdel@gmail.com>
|
|
6
6
|
License: MIT
|
|
@@ -44,7 +44,8 @@ python manage.py run --reload
|
|
|
44
44
|
|
|
45
45
|
```bash
|
|
46
46
|
fastogram new my-bot # Create ./my-bot/
|
|
47
|
-
fastogram new
|
|
47
|
+
fastogram new . # Scaffold in current directory (no subfolder)
|
|
48
|
+
fastogram new my-bot -d ~/code # Create ~/code/my-bot/
|
|
48
49
|
```
|
|
49
50
|
|
|
50
51
|
---
|
|
@@ -35,7 +35,8 @@ python manage.py run --reload
|
|
|
35
35
|
|
|
36
36
|
```bash
|
|
37
37
|
fastogram new my-bot # Create ./my-bot/
|
|
38
|
-
fastogram new
|
|
38
|
+
fastogram new . # Scaffold in current directory (no subfolder)
|
|
39
|
+
fastogram new my-bot -d ~/code # Create ~/code/my-bot/
|
|
39
40
|
```
|
|
40
41
|
|
|
41
42
|
---
|
|
@@ -54,11 +54,21 @@ def cmd_new(project_name: str | None = None, target_dir: str | None = None) -> i
|
|
|
54
54
|
)
|
|
55
55
|
return 1
|
|
56
56
|
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
use_cwd = project_name == "." or project_name == ""
|
|
58
|
+
base = Path(target_dir or ".").resolve()
|
|
59
|
+
|
|
60
|
+
if use_cwd:
|
|
61
|
+
dest = base
|
|
62
|
+
slug = base.name or "fastgram-app"
|
|
63
|
+
else:
|
|
64
|
+
slug = _normalize_project_name(project_name or "fastgram-app")
|
|
65
|
+
dest = base / slug
|
|
59
66
|
|
|
60
67
|
if dest.exists() and any(dest.iterdir()):
|
|
61
|
-
print(
|
|
68
|
+
print(
|
|
69
|
+
f"Error: Directory already exists and is not empty: {dest}",
|
|
70
|
+
file=sys.stderr,
|
|
71
|
+
)
|
|
62
72
|
return 1
|
|
63
73
|
|
|
64
74
|
_copy_and_customize(_TEMPLATE_DIR, dest, slug)
|
|
@@ -66,7 +76,8 @@ def cmd_new(project_name: str | None = None, target_dir: str | None = None) -> i
|
|
|
66
76
|
print(f"Created project: {dest}")
|
|
67
77
|
print()
|
|
68
78
|
print("Next steps:")
|
|
69
|
-
|
|
79
|
+
if not use_cwd:
|
|
80
|
+
print(f" cd {dest.name}")
|
|
70
81
|
print(" uv sync")
|
|
71
82
|
print(" # Edit .env with your TELEGRAM_BOT_TOKEN")
|
|
72
83
|
print(" python manage.py setup")
|
|
@@ -87,8 +98,8 @@ def main() -> None:
|
|
|
87
98
|
new_parser.add_argument(
|
|
88
99
|
"project_name",
|
|
89
100
|
nargs="?",
|
|
90
|
-
default="
|
|
91
|
-
help=
|
|
101
|
+
default=".",
|
|
102
|
+
help='Project name (e.g. my-bot). Use "." to scaffold in current directory',
|
|
92
103
|
)
|
|
93
104
|
new_parser.add_argument(
|
|
94
105
|
"-d",
|
|
@@ -105,6 +116,7 @@ def main() -> None:
|
|
|
105
116
|
parser.print_help()
|
|
106
117
|
print()
|
|
107
118
|
print("Examples:")
|
|
108
|
-
print(" fastogram new my-bot")
|
|
119
|
+
print(" fastogram new my-bot # Create ./my-bot/")
|
|
120
|
+
print(" fastogram new . # Scaffold in current directory")
|
|
109
121
|
print(" fastogram new my-bot -d ~/projects")
|
|
110
122
|
sys.exit(0)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/.pre-commit-config.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/api/routes/health.py
RENAMED
|
File without changes
|
{fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/bootstrap/__init__.py
RENAMED
|
File without changes
|
{fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/bootstrap/container.py
RENAMED
|
File without changes
|
{fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/bootstrap/logging.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/bootstrap/startup_checks.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/bot/handlers/__init__.py
RENAMED
|
File without changes
|
{fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/bot/handlers/start.py
RENAMED
|
File without changes
|
{fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/bot/keyboards/__init__.py
RENAMED
|
File without changes
|
{fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/bot/middlewares/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/bot/states/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/integrations/__init__.py
RENAMED
|
File without changes
|
{fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/integrations/telegram.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/modules/__init__.py
RENAMED
|
File without changes
|
{fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/modules/users/__init__.py
RENAMED
|
File without changes
|
{fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/modules/users/models.py
RENAMED
|
File without changes
|
{fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/modules/users/repository.py
RENAMED
|
File without changes
|
{fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/modules/users/schemas.py
RENAMED
|
File without changes
|
{fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/modules/users/service.py
RENAMED
|
File without changes
|
{fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/services/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/services/payments.py
RENAMED
|
File without changes
|
{fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/services/storage.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/webapp/static/app.js
RENAMED
|
File without changes
|
{fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/webapp/templates/index.html
RENAMED
|
File without changes
|
|
File without changes
|
{fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/docker/docker-compose.yml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/tests/test_request_id.py
RENAMED
|
File without changes
|
{fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/tests/test_startup_checks.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|