project-initializer 0.1.0__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.
- project_initializer-0.1.0/LICENSE +21 -0
- project_initializer-0.1.0/MANIFEST.in +13 -0
- project_initializer-0.1.0/PKG-INFO +105 -0
- project_initializer-0.1.0/README.md +81 -0
- project_initializer-0.1.0/project_initializer/__init__.py +3 -0
- project_initializer-0.1.0/project_initializer/cli.py +113 -0
- project_initializer-0.1.0/project_initializer/templates/.env.example +13 -0
- project_initializer-0.1.0/project_initializer/templates/.gitignore +207 -0
- project_initializer-0.1.0/project_initializer/templates/.vscode/launch.json +47 -0
- project_initializer-0.1.0/project_initializer/templates/.vscode/settings.json +26 -0
- project_initializer-0.1.0/project_initializer/templates/LICENSE +21 -0
- project_initializer-0.1.0/project_initializer/templates/README.md +1 -0
- project_initializer-0.1.0/project_initializer/templates/api/.claude/CLAUDE.md +87 -0
- project_initializer-0.1.0/project_initializer/templates/api/.dockerignore +66 -0
- project_initializer-0.1.0/project_initializer/templates/api/.env.example +17 -0
- project_initializer-0.1.0/project_initializer/templates/api/Dockerfile +61 -0
- project_initializer-0.1.0/project_initializer/templates/api/README.md +0 -0
- project_initializer-0.1.0/project_initializer/templates/api/alembic/README +1 -0
- project_initializer-0.1.0/project_initializer/templates/api/alembic/env.py +77 -0
- project_initializer-0.1.0/project_initializer/templates/api/alembic/script.py.mako +28 -0
- project_initializer-0.1.0/project_initializer/templates/api/alembic.ini +142 -0
- project_initializer-0.1.0/project_initializer/templates/api/app/__init__.py +3 -0
- project_initializer-0.1.0/project_initializer/templates/api/app/api/__init__.py +39 -0
- project_initializer-0.1.0/project_initializer/templates/api/app/api/v1/__init__.py +130 -0
- project_initializer-0.1.0/project_initializer/templates/api/app/api/v1/chatbot.py +237 -0
- project_initializer-0.1.0/project_initializer/templates/api/app/api/v1/router.py +13 -0
- project_initializer-0.1.0/project_initializer/templates/api/app/api/v1/test.py +242 -0
- project_initializer-0.1.0/project_initializer/templates/api/app/config.py +103 -0
- project_initializer-0.1.0/project_initializer/templates/api/app/database.py +511 -0
- project_initializer-0.1.0/project_initializer/templates/api/app/dependencies.py +306 -0
- project_initializer-0.1.0/project_initializer/templates/api/app/exceptions.py +640 -0
- project_initializer-0.1.0/project_initializer/templates/api/app/main.py +223 -0
- project_initializer-0.1.0/project_initializer/templates/api/app/middleware/__init__.py +98 -0
- project_initializer-0.1.0/project_initializer/templates/api/app/middleware/logging.py +122 -0
- project_initializer-0.1.0/project_initializer/templates/api/app/middleware/rate_limiting.py +103 -0
- project_initializer-0.1.0/project_initializer/templates/api/app/middleware/security.py +84 -0
- project_initializer-0.1.0/project_initializer/templates/api/app/models/__init__.py +17 -0
- project_initializer-0.1.0/project_initializer/templates/api/app/models/base.py +68 -0
- project_initializer-0.1.0/project_initializer/templates/api/app/models/user.py +67 -0
- project_initializer-0.1.0/project_initializer/templates/api/app/repositories/__init__.py +218 -0
- project_initializer-0.1.0/project_initializer/templates/api/app/repositories/base.py +272 -0
- project_initializer-0.1.0/project_initializer/templates/api/app/schemas/__init__.py +250 -0
- project_initializer-0.1.0/project_initializer/templates/api/app/schemas/chatbot.py +92 -0
- project_initializer-0.1.0/project_initializer/templates/api/app/services/__init__.py +248 -0
- project_initializer-0.1.0/project_initializer/templates/api/app/services/chatbot_service.py +81 -0
- project_initializer-0.1.0/project_initializer/templates/api/baml_src/chatbot.baml +59 -0
- project_initializer-0.1.0/project_initializer/templates/api/baml_src/clients.baml +94 -0
- project_initializer-0.1.0/project_initializer/templates/api/baml_src/generators.baml +18 -0
- project_initializer-0.1.0/project_initializer/templates/api/entrypoint.sh +22 -0
- project_initializer-0.1.0/project_initializer/templates/api/requirements.txt +34 -0
- project_initializer-0.1.0/project_initializer/templates/docker-compose.yml +63 -0
- project_initializer-0.1.0/project_initializer/templates/frontend/.claude/CLAUDE.md +47 -0
- project_initializer-0.1.0/project_initializer/templates/frontend/.editorconfig +17 -0
- project_initializer-0.1.0/project_initializer/templates/frontend/.gitignore +43 -0
- project_initializer-0.1.0/project_initializer/templates/frontend/.postcssrc.json +5 -0
- project_initializer-0.1.0/project_initializer/templates/frontend/.vscode/extensions.json +4 -0
- project_initializer-0.1.0/project_initializer/templates/frontend/.vscode/launch.json +20 -0
- project_initializer-0.1.0/project_initializer/templates/frontend/.vscode/tasks.json +42 -0
- project_initializer-0.1.0/project_initializer/templates/frontend/Dockerfile +48 -0
- project_initializer-0.1.0/project_initializer/templates/frontend/README.md +59 -0
- project_initializer-0.1.0/project_initializer/templates/frontend/angular.json +93 -0
- project_initializer-0.1.0/project_initializer/templates/frontend/nginx.conf +44 -0
- project_initializer-0.1.0/project_initializer/templates/frontend/package-lock.json +9453 -0
- project_initializer-0.1.0/project_initializer/templates/frontend/package.json +47 -0
- project_initializer-0.1.0/project_initializer/templates/frontend/public/favicon.ico +0 -0
- project_initializer-0.1.0/project_initializer/templates/frontend/src/app/app.config.ts +14 -0
- project_initializer-0.1.0/project_initializer/templates/frontend/src/app/app.css +0 -0
- project_initializer-0.1.0/project_initializer/templates/frontend/src/app/app.html +2 -0
- project_initializer-0.1.0/project_initializer/templates/frontend/src/app/app.routes.ts +32 -0
- project_initializer-0.1.0/project_initializer/templates/frontend/src/app/app.spec.ts +25 -0
- project_initializer-0.1.0/project_initializer/templates/frontend/src/app/app.ts +12 -0
- project_initializer-0.1.0/project_initializer/templates/frontend/src/app/auth/login/login.css +0 -0
- project_initializer-0.1.0/project_initializer/templates/frontend/src/app/auth/login/login.html +116 -0
- project_initializer-0.1.0/project_initializer/templates/frontend/src/app/auth/login/login.ts +87 -0
- project_initializer-0.1.0/project_initializer/templates/frontend/src/app/guards/auth.guard.ts +51 -0
- project_initializer-0.1.0/project_initializer/templates/frontend/src/app/pages/home/home.css +1 -0
- project_initializer-0.1.0/project_initializer/templates/frontend/src/app/pages/home/home.html +4 -0
- project_initializer-0.1.0/project_initializer/templates/frontend/src/app/pages/home/home.ts +13 -0
- project_initializer-0.1.0/project_initializer/templates/frontend/src/app/services/auth.service.ts +142 -0
- project_initializer-0.1.0/project_initializer/templates/frontend/src/app/shared/layout/layout.css +0 -0
- project_initializer-0.1.0/project_initializer/templates/frontend/src/app/shared/layout/layout.html +50 -0
- project_initializer-0.1.0/project_initializer/templates/frontend/src/app/shared/layout/layout.ts +95 -0
- project_initializer-0.1.0/project_initializer/templates/frontend/src/app/shared/sidebar/sidebar.css +0 -0
- project_initializer-0.1.0/project_initializer/templates/frontend/src/app/shared/sidebar/sidebar.html +101 -0
- project_initializer-0.1.0/project_initializer/templates/frontend/src/app/shared/sidebar/sidebar.ts +83 -0
- project_initializer-0.1.0/project_initializer/templates/frontend/src/assets/favicon.ico +0 -0
- project_initializer-0.1.0/project_initializer/templates/frontend/src/environments/environment.model.ts +3 -0
- project_initializer-0.1.0/project_initializer/templates/frontend/src/environments/environment.prod.ts +6 -0
- project_initializer-0.1.0/project_initializer/templates/frontend/src/environments/environment.ts +5 -0
- project_initializer-0.1.0/project_initializer/templates/frontend/src/index.html +13 -0
- project_initializer-0.1.0/project_initializer/templates/frontend/src/main.ts +6 -0
- project_initializer-0.1.0/project_initializer/templates/frontend/src/styles.css +2 -0
- project_initializer-0.1.0/project_initializer/templates/frontend/tsconfig.app.json +15 -0
- project_initializer-0.1.0/project_initializer/templates/frontend/tsconfig.json +34 -0
- project_initializer-0.1.0/project_initializer/templates/frontend/tsconfig.spec.json +14 -0
- project_initializer-0.1.0/project_initializer.egg-info/PKG-INFO +105 -0
- project_initializer-0.1.0/project_initializer.egg-info/SOURCES.txt +100 -0
- project_initializer-0.1.0/project_initializer.egg-info/dependency_links.txt +1 -0
- project_initializer-0.1.0/project_initializer.egg-info/entry_points.txt +2 -0
- project_initializer-0.1.0/project_initializer.egg-info/top_level.txt +1 -0
- project_initializer-0.1.0/pyproject.toml +44 -0
- project_initializer-0.1.0/setup.cfg +4 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Silvio Angelo Baratto Roldan
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
recursive-include project_initializer/templates *
|
|
2
|
+
recursive-include project_initializer/templates .*
|
|
3
|
+
include project_initializer/templates/.gitignore
|
|
4
|
+
include project_initializer/templates/.env.example
|
|
5
|
+
include project_initializer/templates/api/.env.example
|
|
6
|
+
include project_initializer/templates/api/.dockerignore
|
|
7
|
+
include project_initializer/templates/frontend/.editorconfig
|
|
8
|
+
include project_initializer/templates/frontend/.gitignore
|
|
9
|
+
include project_initializer/templates/frontend/.postcssrc.json
|
|
10
|
+
global-exclude __pycache__
|
|
11
|
+
global-exclude *.py[cod]
|
|
12
|
+
global-exclude .git
|
|
13
|
+
global-exclude node_modules
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: project-initializer
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: CLI tool to scaffold full-stack projects with FastAPI, Angular, and Docker
|
|
5
|
+
Author: Silvio Baratto
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/silviobaratto/project-initializer
|
|
8
|
+
Project-URL: Repository, https://github.com/silviobaratto/project-initializer
|
|
9
|
+
Keywords: cli,scaffold,fastapi,angular,docker,project-generator
|
|
10
|
+
Classifier: Development Status :: 3 - Alpha
|
|
11
|
+
Classifier: Environment :: Console
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
14
|
+
Classifier: Operating System :: OS Independent
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Topic :: Software Development :: Code Generators
|
|
20
|
+
Requires-Python: >=3.10
|
|
21
|
+
Description-Content-Type: text/markdown
|
|
22
|
+
License-File: LICENSE
|
|
23
|
+
Dynamic: license-file
|
|
24
|
+
|
|
25
|
+
# project-initializer
|
|
26
|
+
|
|
27
|
+
CLI tool to scaffold full-stack projects with FastAPI, Angular, and Docker.
|
|
28
|
+
|
|
29
|
+
## Installation
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
pip install project-initializer
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Or install from source:
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
git clone https://github.com/silviobaratto/project-initializer.git
|
|
39
|
+
cd project-initializer
|
|
40
|
+
pip install -e .
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Usage
|
|
44
|
+
|
|
45
|
+
Create a new project in a directory:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
project-initializer my-project
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Create a project in the current directory:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
project-initializer .
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Force overwrite existing files:
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
project-initializer my-project --force
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Show version:
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
project-initializer --version
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## What's Included
|
|
70
|
+
|
|
71
|
+
The generated project includes:
|
|
72
|
+
|
|
73
|
+
- **api/** - FastAPI backend with:
|
|
74
|
+
- SQLAlchemy models and Alembic migrations
|
|
75
|
+
- BAML for AI/LLM integrations
|
|
76
|
+
- JWT authentication ready
|
|
77
|
+
- Docker configuration
|
|
78
|
+
|
|
79
|
+
- **frontend/** - Angular 19 frontend with:
|
|
80
|
+
- Tailwind CSS configured
|
|
81
|
+
- Environment configurations
|
|
82
|
+
- Docker/nginx setup
|
|
83
|
+
|
|
84
|
+
- **docker-compose.yml** - Full stack orchestration with:
|
|
85
|
+
- PostgreSQL database
|
|
86
|
+
- FastAPI backend
|
|
87
|
+
- Angular frontend with nginx
|
|
88
|
+
|
|
89
|
+
## Getting Started
|
|
90
|
+
|
|
91
|
+
After creating a project:
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
cd my-project
|
|
95
|
+
docker-compose up -d
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
The services will be available at:
|
|
99
|
+
- Frontend: http://localhost:4200
|
|
100
|
+
- API: http://localhost:8000
|
|
101
|
+
- API Docs: http://localhost:8000/docs
|
|
102
|
+
|
|
103
|
+
## License
|
|
104
|
+
|
|
105
|
+
MIT
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# project-initializer
|
|
2
|
+
|
|
3
|
+
CLI tool to scaffold full-stack projects with FastAPI, Angular, and Docker.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pip install project-initializer
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Or install from source:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
git clone https://github.com/silviobaratto/project-initializer.git
|
|
15
|
+
cd project-initializer
|
|
16
|
+
pip install -e .
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
Create a new project in a directory:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
project-initializer my-project
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Create a project in the current directory:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
project-initializer .
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Force overwrite existing files:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
project-initializer my-project --force
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Show version:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
project-initializer --version
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## What's Included
|
|
46
|
+
|
|
47
|
+
The generated project includes:
|
|
48
|
+
|
|
49
|
+
- **api/** - FastAPI backend with:
|
|
50
|
+
- SQLAlchemy models and Alembic migrations
|
|
51
|
+
- BAML for AI/LLM integrations
|
|
52
|
+
- JWT authentication ready
|
|
53
|
+
- Docker configuration
|
|
54
|
+
|
|
55
|
+
- **frontend/** - Angular 19 frontend with:
|
|
56
|
+
- Tailwind CSS configured
|
|
57
|
+
- Environment configurations
|
|
58
|
+
- Docker/nginx setup
|
|
59
|
+
|
|
60
|
+
- **docker-compose.yml** - Full stack orchestration with:
|
|
61
|
+
- PostgreSQL database
|
|
62
|
+
- FastAPI backend
|
|
63
|
+
- Angular frontend with nginx
|
|
64
|
+
|
|
65
|
+
## Getting Started
|
|
66
|
+
|
|
67
|
+
After creating a project:
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
cd my-project
|
|
71
|
+
docker-compose up -d
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
The services will be available at:
|
|
75
|
+
- Frontend: http://localhost:4200
|
|
76
|
+
- API: http://localhost:8000
|
|
77
|
+
- API Docs: http://localhost:8000/docs
|
|
78
|
+
|
|
79
|
+
## License
|
|
80
|
+
|
|
81
|
+
MIT
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"""CLI entry point for project-initializer."""
|
|
2
|
+
|
|
3
|
+
import argparse
|
|
4
|
+
import os
|
|
5
|
+
import shutil
|
|
6
|
+
import sys
|
|
7
|
+
from pathlib import Path
|
|
8
|
+
|
|
9
|
+
from . import __version__
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def get_templates_dir() -> Path:
|
|
13
|
+
"""Get the path to the templates directory."""
|
|
14
|
+
return Path(__file__).parent / "templates"
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def copy_template(dest_dir: Path, project_name: str | None = None) -> None:
|
|
18
|
+
"""Copy template files to destination directory."""
|
|
19
|
+
templates_dir = get_templates_dir()
|
|
20
|
+
|
|
21
|
+
if not templates_dir.exists():
|
|
22
|
+
print(f"Error: Templates directory not found at {templates_dir}")
|
|
23
|
+
sys.exit(1)
|
|
24
|
+
|
|
25
|
+
# Files and directories to skip
|
|
26
|
+
skip_patterns = {
|
|
27
|
+
"__pycache__",
|
|
28
|
+
".pyc",
|
|
29
|
+
"node_modules",
|
|
30
|
+
".git",
|
|
31
|
+
".env",
|
|
32
|
+
"*.egg-info",
|
|
33
|
+
"dist",
|
|
34
|
+
"build",
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
def should_skip(name: str) -> bool:
|
|
38
|
+
return any(
|
|
39
|
+
name == pattern or name.endswith(pattern.lstrip("*"))
|
|
40
|
+
for pattern in skip_patterns
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
def copy_tree(src: Path, dst: Path) -> None:
|
|
44
|
+
"""Recursively copy directory tree."""
|
|
45
|
+
dst.mkdir(parents=True, exist_ok=True)
|
|
46
|
+
|
|
47
|
+
for item in src.iterdir():
|
|
48
|
+
if should_skip(item.name):
|
|
49
|
+
continue
|
|
50
|
+
|
|
51
|
+
dest_item = dst / item.name
|
|
52
|
+
|
|
53
|
+
if item.is_dir():
|
|
54
|
+
copy_tree(item, dest_item)
|
|
55
|
+
else:
|
|
56
|
+
shutil.copy2(item, dest_item)
|
|
57
|
+
print(f" Created: {dest_item.relative_to(dest_dir)}")
|
|
58
|
+
|
|
59
|
+
print(f"Creating project in: {dest_dir}")
|
|
60
|
+
print("-" * 40)
|
|
61
|
+
|
|
62
|
+
copy_tree(templates_dir, dest_dir)
|
|
63
|
+
|
|
64
|
+
print("-" * 40)
|
|
65
|
+
print(f"Project created successfully!")
|
|
66
|
+
print(f"\nNext steps:")
|
|
67
|
+
print(f" cd {dest_dir.name}")
|
|
68
|
+
print(f" docker-compose up -d")
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
def main() -> None:
|
|
72
|
+
"""Main entry point for the CLI."""
|
|
73
|
+
parser = argparse.ArgumentParser(
|
|
74
|
+
prog="project-initializer",
|
|
75
|
+
description="Initialize a new full-stack project with FastAPI, Angular, and Docker",
|
|
76
|
+
)
|
|
77
|
+
parser.add_argument(
|
|
78
|
+
"project_name",
|
|
79
|
+
nargs="?",
|
|
80
|
+
default=".",
|
|
81
|
+
help="Name of the project directory to create (default: current directory)",
|
|
82
|
+
)
|
|
83
|
+
parser.add_argument(
|
|
84
|
+
"-v", "--version",
|
|
85
|
+
action="version",
|
|
86
|
+
version=f"%(prog)s {__version__}",
|
|
87
|
+
)
|
|
88
|
+
parser.add_argument(
|
|
89
|
+
"-f", "--force",
|
|
90
|
+
action="store_true",
|
|
91
|
+
help="Overwrite existing files without prompting",
|
|
92
|
+
)
|
|
93
|
+
|
|
94
|
+
args = parser.parse_args()
|
|
95
|
+
|
|
96
|
+
# Determine destination directory
|
|
97
|
+
if args.project_name == ".":
|
|
98
|
+
dest_dir = Path.cwd()
|
|
99
|
+
else:
|
|
100
|
+
dest_dir = Path.cwd() / args.project_name
|
|
101
|
+
|
|
102
|
+
# Check if directory exists and has content
|
|
103
|
+
if dest_dir.exists() and any(dest_dir.iterdir()) and not args.force:
|
|
104
|
+
response = input(f"Directory '{dest_dir}' is not empty. Continue? [y/N]: ")
|
|
105
|
+
if response.lower() != "y":
|
|
106
|
+
print("Aborted.")
|
|
107
|
+
sys.exit(0)
|
|
108
|
+
|
|
109
|
+
copy_template(dest_dir, args.project_name)
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
if __name__ == "__main__":
|
|
113
|
+
main()
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
OPENAI_API_KEY=your_openai_api_key_here
|
|
2
|
+
|
|
3
|
+
ANTHROPIC_API_KEY=your_anthropic_api_key_here
|
|
4
|
+
|
|
5
|
+
GOOGLE_API_KEY=your_google_api_key_here
|
|
6
|
+
|
|
7
|
+
# Azure OpenAI (for BAML)
|
|
8
|
+
OPENAI_KEY=your_azure_openai_key_here
|
|
9
|
+
OPENAI_ENDPOINT=https://your-resource.openai.azure.com/openai/deployments/gpt-4o/chat/completions?api-version=2025-01-01-preview
|
|
10
|
+
OPENAI_RESOURCE_NAME=your-resource-name
|
|
11
|
+
OPENAI_API_VERSION=2025-01-01-preview
|
|
12
|
+
OPENAI_GPT4O_DEPLOYMENT_ID=gpt-4o
|
|
13
|
+
OPENAI_GPT5_DEPLOYMENT_ID=gpt-5.2
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[codz]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py.cover
|
|
50
|
+
.hypothesis/
|
|
51
|
+
.pytest_cache/
|
|
52
|
+
cover/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
|
|
74
|
+
# PyBuilder
|
|
75
|
+
.pybuilder/
|
|
76
|
+
target/
|
|
77
|
+
|
|
78
|
+
# Jupyter Notebook
|
|
79
|
+
.ipynb_checkpoints
|
|
80
|
+
|
|
81
|
+
# IPython
|
|
82
|
+
profile_default/
|
|
83
|
+
ipython_config.py
|
|
84
|
+
|
|
85
|
+
# pyenv
|
|
86
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
87
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
88
|
+
# .python-version
|
|
89
|
+
|
|
90
|
+
# pipenv
|
|
91
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
92
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
93
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
94
|
+
# install all needed dependencies.
|
|
95
|
+
#Pipfile.lock
|
|
96
|
+
|
|
97
|
+
# UV
|
|
98
|
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
|
99
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
100
|
+
# commonly ignored for libraries.
|
|
101
|
+
#uv.lock
|
|
102
|
+
|
|
103
|
+
# poetry
|
|
104
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
105
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
106
|
+
# commonly ignored for libraries.
|
|
107
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
108
|
+
#poetry.lock
|
|
109
|
+
#poetry.toml
|
|
110
|
+
|
|
111
|
+
# pdm
|
|
112
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
113
|
+
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
|
|
114
|
+
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
|
|
115
|
+
#pdm.lock
|
|
116
|
+
#pdm.toml
|
|
117
|
+
.pdm-python
|
|
118
|
+
.pdm-build/
|
|
119
|
+
|
|
120
|
+
# pixi
|
|
121
|
+
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
|
|
122
|
+
#pixi.lock
|
|
123
|
+
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
|
|
124
|
+
# in the .venv directory. It is recommended not to include this directory in version control.
|
|
125
|
+
.pixi
|
|
126
|
+
|
|
127
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
128
|
+
__pypackages__/
|
|
129
|
+
|
|
130
|
+
# Celery stuff
|
|
131
|
+
celerybeat-schedule
|
|
132
|
+
celerybeat.pid
|
|
133
|
+
|
|
134
|
+
# SageMath parsed files
|
|
135
|
+
*.sage.py
|
|
136
|
+
|
|
137
|
+
# Environments
|
|
138
|
+
.env
|
|
139
|
+
.envrc
|
|
140
|
+
.venv
|
|
141
|
+
env/
|
|
142
|
+
venv/
|
|
143
|
+
ENV/
|
|
144
|
+
env.bak/
|
|
145
|
+
venv.bak/
|
|
146
|
+
|
|
147
|
+
# Spyder project settings
|
|
148
|
+
.spyderproject
|
|
149
|
+
.spyproject
|
|
150
|
+
|
|
151
|
+
# Rope project settings
|
|
152
|
+
.ropeproject
|
|
153
|
+
|
|
154
|
+
# mkdocs documentation
|
|
155
|
+
/site
|
|
156
|
+
|
|
157
|
+
# mypy
|
|
158
|
+
.mypy_cache/
|
|
159
|
+
.dmypy.json
|
|
160
|
+
dmypy.json
|
|
161
|
+
|
|
162
|
+
# Pyre type checker
|
|
163
|
+
.pyre/
|
|
164
|
+
|
|
165
|
+
# pytype static type analyzer
|
|
166
|
+
.pytype/
|
|
167
|
+
|
|
168
|
+
# Cython debug symbols
|
|
169
|
+
cython_debug/
|
|
170
|
+
|
|
171
|
+
# PyCharm
|
|
172
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
173
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
174
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
175
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
176
|
+
#.idea/
|
|
177
|
+
|
|
178
|
+
# Abstra
|
|
179
|
+
# Abstra is an AI-powered process automation framework.
|
|
180
|
+
# Ignore directories containing user credentials, local state, and settings.
|
|
181
|
+
# Learn more at https://abstra.io/docs
|
|
182
|
+
.abstra/
|
|
183
|
+
|
|
184
|
+
# Visual Studio Code
|
|
185
|
+
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
|
|
186
|
+
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
|
|
187
|
+
# and can be added to the global gitignore or merged into this file. However, if you prefer,
|
|
188
|
+
# you could uncomment the following to ignore the entire vscode folder
|
|
189
|
+
# .vscode/
|
|
190
|
+
|
|
191
|
+
# Ruff stuff:
|
|
192
|
+
.ruff_cache/
|
|
193
|
+
|
|
194
|
+
# PyPI configuration file
|
|
195
|
+
.pypirc
|
|
196
|
+
|
|
197
|
+
# Cursor
|
|
198
|
+
# Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
|
|
199
|
+
# exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
|
|
200
|
+
# refer to https://docs.cursor.com/context/ignore-files
|
|
201
|
+
.cursorignore
|
|
202
|
+
.cursorindexingignore
|
|
203
|
+
|
|
204
|
+
# Marimo
|
|
205
|
+
marimo/_static/
|
|
206
|
+
marimo/_lsp/
|
|
207
|
+
__marimo__/
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.2.0",
|
|
3
|
+
"configurations": [
|
|
4
|
+
{
|
|
5
|
+
"name": "API (Development)",
|
|
6
|
+
"type": "debugpy",
|
|
7
|
+
"request": "launch",
|
|
8
|
+
"module": "uvicorn",
|
|
9
|
+
"cwd": "${workspaceFolder}/api",
|
|
10
|
+
"args": [
|
|
11
|
+
"app.main:app",
|
|
12
|
+
"--reload",
|
|
13
|
+
"--port",
|
|
14
|
+
"8000",
|
|
15
|
+
"--host",
|
|
16
|
+
"0.0.0.0",
|
|
17
|
+
"--log-level",
|
|
18
|
+
"debug"
|
|
19
|
+
],
|
|
20
|
+
"python": "/Users/silviobaratto/anaconda3/envs/app/bin/python",
|
|
21
|
+
"jinja": true,
|
|
22
|
+
"envFile": "${workspaceFolder}/.env.dev",
|
|
23
|
+
"console": "integratedTerminal"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"name": "API (Production)",
|
|
27
|
+
"type": "debugpy",
|
|
28
|
+
"request": "launch",
|
|
29
|
+
"module": "uvicorn",
|
|
30
|
+
"cwd": "${workspaceFolder}/api",
|
|
31
|
+
"args": [
|
|
32
|
+
"app.main:app",
|
|
33
|
+
"--reload",
|
|
34
|
+
"--port",
|
|
35
|
+
"8000",
|
|
36
|
+
"--host",
|
|
37
|
+
"0.0.0.0",
|
|
38
|
+
"--log-level",
|
|
39
|
+
"info"
|
|
40
|
+
],
|
|
41
|
+
"python": "/Users/silviobaratto/anaconda3/envs/app/bin/python",
|
|
42
|
+
"jinja": true,
|
|
43
|
+
"envFile": "${workspaceFolder}/.env.prod",
|
|
44
|
+
"console": "integratedTerminal"
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"python.testing.pytestArgs": [
|
|
3
|
+
"tests",
|
|
4
|
+
"--no-cov",
|
|
5
|
+
"--tb=short"
|
|
6
|
+
],
|
|
7
|
+
"python.testing.unittestEnabled": false,
|
|
8
|
+
"python.testing.pytestEnabled": true,
|
|
9
|
+
"python.testing.cwd": "${workspaceFolder}/api",
|
|
10
|
+
"python.defaultInterpreterPath": "/Users/silviobaratto/anaconda3/envs/app/bin/python",
|
|
11
|
+
"python.testing.autoTestDiscoverOnSaveEnabled": true,
|
|
12
|
+
"python.analysis.typeCheckingMode": "standard",
|
|
13
|
+
"editor.formatOnSave": true,
|
|
14
|
+
"[typescript]": {
|
|
15
|
+
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
16
|
+
},
|
|
17
|
+
"[html]": {
|
|
18
|
+
"editor.defaultFormatter": "vscode.html-language-features"
|
|
19
|
+
},
|
|
20
|
+
"[python]": {
|
|
21
|
+
"editor.defaultFormatter": "ms-python.black-formatter"
|
|
22
|
+
},
|
|
23
|
+
"[json]": {
|
|
24
|
+
"editor.defaultFormatter": "vscode.json-language-features"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Silvio Angelo Baratto Roldan
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# project-initializer-
|