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.
Files changed (88) hide show
  1. {fastogram-0.0.2 → fastogram-0.0.3}/PKG-INFO +3 -2
  2. {fastogram-0.0.2 → fastogram-0.0.3}/README.md +2 -1
  3. {fastogram-0.0.2 → fastogram-0.0.3}/pyproject.toml +1 -1
  4. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/cli.py +19 -7
  5. {fastogram-0.0.2 → fastogram-0.0.3}/.gitignore +0 -0
  6. {fastogram-0.0.2 → fastogram-0.0.3}/.pypi-token.example +0 -0
  7. {fastogram-0.0.2 → fastogram-0.0.3}/Makefile +0 -0
  8. {fastogram-0.0.2 → fastogram-0.0.3}/scripts/sync_template.py +0 -0
  9. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/__init__.py +0 -0
  10. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/.dockerignore +0 -0
  11. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/.env.example +0 -0
  12. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/.gitignore +0 -0
  13. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/.pre-commit-config.yaml +0 -0
  14. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/.python-version +0 -0
  15. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/AGENTS.md +0 -0
  16. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/README.md +0 -0
  17. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/TODO.md +0 -0
  18. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/VIBECODER.md +0 -0
  19. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/alembic/env.py +0 -0
  20. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/alembic.ini +0 -0
  21. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/__init__.py +0 -0
  22. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/api/__init__.py +0 -0
  23. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/api/deps.py +0 -0
  24. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/api/routes/health.py +0 -0
  25. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/bootstrap/__init__.py +0 -0
  26. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/bootstrap/container.py +0 -0
  27. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/bootstrap/logging.py +0 -0
  28. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/bootstrap/request_context.py +0 -0
  29. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/bootstrap/request_id_middleware.py +0 -0
  30. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/bootstrap/startup_checks.py +0 -0
  31. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/bot/__init__.py +0 -0
  32. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/bot/dispatcher.py +0 -0
  33. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/bot/handlers/__init__.py +0 -0
  34. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/bot/handlers/start.py +0 -0
  35. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/bot/keyboards/__init__.py +0 -0
  36. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/bot/middlewares/__init__.py +0 -0
  37. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/bot/middlewares/error_logging.py +0 -0
  38. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/bot/middlewares/rate_limit.py +0 -0
  39. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/bot/middlewares/rate_limit_backends.py +0 -0
  40. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/bot/middlewares/service_injection.py +0 -0
  41. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/bot/states/__init__.py +0 -0
  42. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/cli.py +0 -0
  43. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/core/__init__.py +0 -0
  44. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/core/config.py +0 -0
  45. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/core/db.py +0 -0
  46. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/core/security.py +0 -0
  47. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/integrations/__init__.py +0 -0
  48. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/integrations/telegram.py +0 -0
  49. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/jobs/__init__.py +0 -0
  50. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/jobs/worker.py +0 -0
  51. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/main.py +0 -0
  52. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/modules/__init__.py +0 -0
  53. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/modules/users/__init__.py +0 -0
  54. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/modules/users/models.py +0 -0
  55. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/modules/users/repository.py +0 -0
  56. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/modules/users/schemas.py +0 -0
  57. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/modules/users/service.py +0 -0
  58. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/services/__init__.py +0 -0
  59. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/services/audit.py +0 -0
  60. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/services/health.py +0 -0
  61. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/services/payments.py +0 -0
  62. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/services/storage.py +0 -0
  63. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/services/telegram_webhook.py +0 -0
  64. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/services/users.py +0 -0
  65. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/webapp/static/app.js +0 -0
  66. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/app/webapp/templates/index.html +0 -0
  67. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/docker/Dockerfile +0 -0
  68. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/docker/docker-compose.yml +0 -0
  69. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/docker/nginx.conf +0 -0
  70. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/manage.py +0 -0
  71. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/pyproject.toml +0 -0
  72. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/scripts/__init__.py +0 -0
  73. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/scripts/admin_tasks.py +0 -0
  74. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/scripts/seed_data.py +0 -0
  75. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/scripts/set_webhook.py +0 -0
  76. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/tests/__init__.py +0 -0
  77. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/tests/architecture/test_framework_leak.py +0 -0
  78. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/tests/architecture/test_no_db_in_handlers.py +0 -0
  79. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/tests/architecture/test_no_db_in_routes.py +0 -0
  80. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/tests/architecture/test_service_instantiation.py +0 -0
  81. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/tests/architecture/test_session_scope_usage.py +0 -0
  82. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/tests/architecture/test_transaction_ownership.py +0 -0
  83. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/tests/conftest.py +0 -0
  84. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/tests/test_config_delivery_mode.py +0 -0
  85. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/tests/test_request_id.py +0 -0
  86. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/tests/test_startup_checks.py +0 -0
  87. {fastogram-0.0.2 → fastogram-0.0.3}/src/fastogram/templates/fastgram/uv.lock +0 -0
  88. {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.2
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 my-bot -d ~/code # Create ~/code/my-bot/
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 my-bot -d ~/code # Create ~/code/my-bot/
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
  ---
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "fastogram"
7
- version = "0.0.2"
7
+ version = "0.0.3"
8
8
  description = "Opinionated FastAPI + Aiogram project generator (FastGram template)"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -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
- slug = _normalize_project_name(project_name or "fastgram-app")
58
- dest = Path(target_dir or ".").resolve() / slug
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(f"Error: Directory already exists and is not empty: {dest}", file=sys.stderr)
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
- print(f" cd {slug}")
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="fastgram-app",
91
- help="Project name (e.g. my-telegram-bot). Default: fastgram-app",
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