@@ -39,11 +39,16 @@ $ pip install FastAPI-fastkit
39
39
40
40
### Create a new FastAPI project workspace environment immediately
41
41
42
- Create a new FastAPI project workspace with:
42
+ You can now start new FastAPI project really fast with FastAPI-fastkit!
43
+
44
+ Create a new FastAPI project workspace immediately with:
43
45
44
46
``` console
45
- $ fastkit startproject
46
- Enter project name: <your-project-name>
47
+ $ fastkit init
48
+ Enter the project name: <your-project-name>
49
+ Enter the author name: <your-name>
50
+ Enter the author email: <your-email>
51
+ Enter the project description: <your-project-description>
47
52
48
53
Available Stacks and Dependencies:
49
54
MINIMAL Stack
@@ -90,24 +95,49 @@ Installing dependencies...
90
95
91
96
---> 100%
92
97
93
- ╭─────────────────────────────────────────────────────────────────── Success ────────────────────────────────────────────────────────────────────╮
94
- │ ✨ Project '<your-project-name>' has been created successfully! │
95
- ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
96
- ╭───────────────────────────────────────────────────────────────────── Info ─────────────────────────────────────────────────────────────────────╮
97
- │ ℹ To activate the virtual environment, run: │
98
- │ │
99
- │ source /<new-venv-path>/venv/bin/activate │
100
- ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
98
+ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Success ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
99
+ │ ✨ Dependencies installed successfully │
100
+ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
101
+ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Success ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
102
+ │ ✨ FastAPI project '<your-project-name>' has been created successfully and saved to '<your-project-path>'! │
103
+ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
104
+ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Info ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
105
+ │ ℹ To start your project, run 'fastkit runserver' at newly created FastAPI project directory │
106
+ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
101
107
```
102
108
103
109
This command will create a new FastAPI project workspace environment with Python virtual environment.
104
110
105
- ### Place a structured FastAPI project immediately
111
+ ### Add a new route to the FastAPI project
112
+
113
+ ` FastAPI-fastkit ` makes it easy to expand your FastAPI project.
114
+
115
+ Add a new route endpoint to your FastAPI project with:
116
+
117
+ ``` console
118
+ $ fastkit addroute < your-project-name> < new-route-name>
119
+
120
+ ---> 100%
121
+
122
+ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Info ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
123
+ │ ℹ Updated main.py to include the API router │
124
+ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
125
+ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Success ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
126
+ │ ✨ Successfully added new route '<new-route-name>' to project '<your-project-name>'. │
127
+ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
128
+ ```
129
+
130
+
131
+ ### Place a structured FastAPI demo project immediately
106
132
107
- Place a structured FastAPI project immediately with:
133
+ You can also start with a structured FastAPI demo project.
134
+
135
+ Demo projects are consist of various tech stacks with simple item CRUD endpoints implemented.
136
+
137
+ Place a structured FastAPI demo project immediately with:
108
138
109
139
``` console
110
- $ fastkit startup
140
+ $ fastkit startdemo
111
141
Enter the project name: <your-project-name>
112
142
Enter the author name: <your-name>
113
143
Enter the author email: <your-email>
@@ -137,6 +167,12 @@ FastAPI template project will deploy at '<your-project-path>'
137
167
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
138
168
```
139
169
170
+ To view the list of available FastAPI demos, check with:
171
+
172
+ ``` console
173
+ $ fastkit list-templates
174
+ ```
175
+
140
176
## Significance of FastAPI-fastkit
141
177
142
178
FastAPI-fastkit aims to provide a fast and easy-to-use starter kit for new users of Python and FastAPI.
0 commit comments