fastbrick 0.3__py3-none-any.whl → 0.5__py3-none-any.whl

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fastbrick
3
- Version: 0.3
3
+ Version: 0.5
4
4
  Summary: A CLI tool for generating FastAPI projects and apps
5
5
  Home-page: UNKNOWN
6
6
  Author: Sandeep Singh Negi
@@ -11,7 +11,7 @@ Classifier: Programming Language :: Python :: 3
11
11
  Classifier: License :: OSI Approved :: MIT License
12
12
  Classifier: Operating System :: OS Independent
13
13
  Requires-Python: >=3.7
14
- Description-Content-Type: text/plain
14
+ Description-Content-Type: text/markdown
15
15
  License-File: LICENSE
16
16
  Requires-Dist: click
17
17
  Requires-Dist: fastapi
@@ -35,22 +35,41 @@ Start the FastAPI server with:
35
35
  uvicorn main:app --reload
36
36
  ```
37
37
 
38
+ ## Help Command
39
+
40
+ To see available options and commands:
41
+ ```sh
42
+ fastbrick --help
43
+ ```
44
+
45
+ ## Usage
46
+ Create a New Project
47
+ Creates a new FastAPI project with a structured layout.
48
+ ```sh
49
+ fastbrick create-project my_project
50
+ ```
51
+ Create a New App
52
+ Creates a new FastAPI app (router) with database settings.
53
+
54
+ ```sh
55
+ fastbirck create-app my_app
56
+ ```
57
+
38
58
  ## Project Structure
39
59
 
40
60
  ```
41
61
  myproject/
42
62
  │── main.py # Entry point for FastAPI app
43
- │── routes.py # Contains 'custom_routes'
44
- │── alembic.ini
63
+ │── routes.py # Contains 'app routes'
45
64
  │── models.py
46
65
  │── schemas.py
47
66
  │── middlewares/
48
67
  │ ├── middleware.py # Global middleware logic
49
68
  │── routers/ # API route modules
50
69
  │── settings/
70
+ │ ├── config.py # Database configuration
51
71
  │ ├── database.py # Database configuration
52
72
  │ ├── routing.py # Router configurations
53
- │── alembic/
54
73
  ```
55
74
 
56
75
  This structure ensures modularity and scalability for your FastAPI project. Adjust the folders and files as needed based on your project requirements.
@@ -0,0 +1,6 @@
1
+ fastbrick-0.5.dist-info/LICENSE,sha256=VueWmlho5XxqjRpByo5KlMuWT7T-_AjQOVeiXRad66o,244
2
+ fastbrick-0.5.dist-info/METADATA,sha256=OF9uXjjH_6oa7p_DGuVU_XTXwTCFFlwGuP0kZV3aWo0,1749
3
+ fastbrick-0.5.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
4
+ fastbrick-0.5.dist-info/entry_points.txt,sha256=E25qyIpsqpZCjdza4bncHZhd7tmQwWqnWaz8eTz5luE,45
5
+ fastbrick-0.5.dist-info/top_level.txt,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
6
+ fastbrick-0.5.dist-info/RECORD,,
@@ -0,0 +1,3 @@
1
+ [console_scripts]
2
+ fastbrick = fastbrick:cli
3
+
@@ -1,6 +0,0 @@
1
- fastbrick-0.3.dist-info/LICENSE,sha256=VueWmlho5XxqjRpByo5KlMuWT7T-_AjQOVeiXRad66o,244
2
- fastbrick-0.3.dist-info/METADATA,sha256=RKVDqXq5lqM6ht-Ugqku-WSulBpW_peq9JcZOEFX1bA,1406
3
- fastbrick-0.3.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
4
- fastbrick-0.3.dist-info/entry_points.txt,sha256=PdmQx7gBRECxTrnA3YwBPlXsiGKDsiJOaZCaJQo_HPE,47
5
- fastbrick-0.3.dist-info/top_level.txt,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
6
- fastbrick-0.3.dist-info/RECORD,,
@@ -1,3 +0,0 @@
1
- [console_scripts]
2
- fastbrick = fastapi_cli:cli
3
-