fastapi-scaff 0.1.0__py3-none-any.whl → 0.5.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.4
2
2
  Name: fastapi-scaff
3
- Version: 0.1.0
3
+ Version: 0.5.5
4
4
  Summary: This is a fastapi scaff.
5
5
  Author-email: axiner <atpuxiner@163.com>
6
6
  Project-URL: Homepage, https://github.com/atpuxiner/fastapi-scaff
@@ -25,16 +25,26 @@ Dynamic: license-file
25
25
  - auto register router
26
26
  - auto register middleware
27
27
  - ...
28
+ - integrated sqlalchemy
29
+ - integrated jwt\api-key
30
+ - integrated celery
31
+ - integrated docker deployment
32
+ - ...
33
+ - about structure:
34
+ - standard
35
+ - light
36
+ - tiny
37
+ - single
28
38
  - more documents: [请点击链接](https://blog.csdn.net/atpuxiner/article/details/144291336?fromshare=blogdetail&sharetype=blogdetail&sharerId=144291336&sharerefer=PC&sharesource=atpuxiner&sharefrom=from_link)
29
39
 
30
40
  ## Project structure
31
41
 
32
- - ASM: ASM模式
42
+ - ASM: ASM mode
33
43
  - A api
34
- - S service(&schema)
35
- - M model
36
- - 调用过程: main.py(initializer) -> (middleware) - api - service(&schema) - (model)
37
- - 结构如下: (命名经过多次修改敲定,简洁易懂)
44
+ - S services(&schemas)
45
+ - M models
46
+ - Calling process: main.py(initializer) -> (middleware) - api - services(&schemas) - (models)
47
+ - Structure: (The naming has been finalized after multiple revisions, making it concise and easy to understand)
38
48
  ```
39
49
  └── fastapi-scaff
40
50
  ├── app (应用)
@@ -46,23 +56,33 @@ Dynamic: license-file
46
56
  │ │ ├── log │ ├── (日志)
47
57
  │ │ └── ... │ └── (...)
48
58
  │ ├── middleware ├── (中间件)
49
- │ ├── model ├── (数据模型)
50
- │ ├── schema ├── (数据结构)
51
- │ ├── service ├── (业务逻辑)
59
+ │ ├── models ├── (数据模型)
60
+ │ ├── schemas ├── (数据结构)
61
+ │ ├── services ├── (业务逻辑)
52
62
  │ ├── utils ├── (utils)
53
63
  │ └── main.py └── (main.py)
64
+ ├── app_celery (应用-celery)
54
65
  ├── config (配置目录)
55
- ├── deploy (部署目录)
56
66
  ├── docs (文档目录)
57
67
  ├── logs (日志目录)
58
68
  ├── tests (测试目录)
69
+ ├── .dockerignore
59
70
  ├── .gitignore
71
+ ├── .python-version
72
+ ├── build.sh
73
+ ├── docker-compose.yaml
74
+ ├── Dockerfile
60
75
  ├── LICENSE
61
76
  ├── README.md
62
77
  ├── requirements.txt
63
78
  └── runserver.py
64
79
  ```
65
80
 
81
+ - 【Other structure】
82
+ - light:Please create and view (with `-e light`)
83
+ - tiny:Please create and view (with `-e tiny`)
84
+ - single:Please create and view (with `-e single`)
85
+
66
86
  ## Installation
67
87
 
68
88
  This package can be installed using pip (Python>=3.11):
@@ -74,9 +94,15 @@ This package can be installed using pip (Python>=3.11):
74
94
  - `fastapi-scaff -h`
75
95
  - 2)new project
76
96
  - `fastapi-scaff new <myproj>`
97
+ - *light structure*: `fastapi-scaff new <myproj> -e light`
98
+ - *tiny structure*: `fastapi-scaff new <myproj> -e tiny`
99
+ - *single structure*: `fastapi-scaff new <myproj> -e single`
77
100
  - 3)add api
78
101
  - `cd to project root dir`
79
102
  - `fastapi-scaff add <myapi>`
103
+ - 4)integrated celery
104
+ - M1。`new` with `--celery`: `fastapi-scaff new <myproj> --celery`
105
+ - M2。`add` with `--celery`: `fastapi-scaff add <mycelery> --celery`
80
106
 
81
107
  ## Project run
82
108
 
@@ -85,8 +111,14 @@ This package can be installed using pip (Python>=3.11):
85
111
  - 3)`pip install -r requirements.txt`
86
112
  - 4)`python runserver.py`
87
113
  - more parameters see:
88
- - about uvicorn: [click here](https://www.uvicorn.org/)
89
- - about gunicorn: [click here](https://docs.gunicorn.org/en/stable/)
114
+ - about uvicorn: [click here](https://www.uvicorn.org/)
115
+ - about gunicorn: [click here](https://docs.gunicorn.org/en/stable/)
116
+ - 5)docker, please see:
117
+ - project files:
118
+ - build.sh
119
+ - docker-compose.yaml | docker-compose.swarm.yaml[config/nginx.conf]
120
+ - Dockerfile | Dockerfile.slim
121
+ - [more click here](https://docs.docker.com/)
90
122
 
91
123
  ## License
92
124
 
@@ -0,0 +1,10 @@
1
+ fastapi_scaff/__init__.py,sha256=ZlCrnNJMbJKRhWiMC-TZqFKGr58ayvhgUtOpyTAkO6w,120
2
+ fastapi_scaff/__main__.py,sha256=WHVC2ZOhymCgdgoVo08Fg-kBaLshAHp7ZxXlyrpvnTI,22998
3
+ fastapi_scaff/_api_tpl.json,sha256=v9xp3DtgtmlmWgvXxOkt0kck4RrXG7inQDCZBgQimuk,7821
4
+ fastapi_scaff/_project_tpl.json,sha256=G6GGLPwUBWAG7J1FJzLLPBG8YeMpd027ZKjOUD_ZtPk,127134
5
+ fastapi_scaff-0.5.5.dist-info/licenses/LICENSE,sha256=A5H6q7zd1QrL3iVs1KLsBOG0ImV-t9PpPspM4x-4Ea8,1069
6
+ fastapi_scaff-0.5.5.dist-info/METADATA,sha256=a_8oTKCvlnrfFBzrqmq4SCErVuo-LjoJWFTvSeHr7HE,4636
7
+ fastapi_scaff-0.5.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
8
+ fastapi_scaff-0.5.5.dist-info/entry_points.txt,sha256=kzs28nmpRWVCmWmZav3X7u7YOIOEir3sCkLnvQKTJbY,62
9
+ fastapi_scaff-0.5.5.dist-info/top_level.txt,sha256=LeyfUxMRhdbRHcYoH37ftfdspyZ8V3Uut2YBaTCzq2k,14
10
+ fastapi_scaff-0.5.5.dist-info/RECORD,,
@@ -1,11 +0,0 @@
1
- fastapi_scaff/__init__.py,sha256=n40GtUaNM5XhBd7sIO5zzcmLNztvk7C4ngCT1xMKp1Q,120
2
- fastapi_scaff/__main__.py,sha256=F9nXaL5P4pzj_I-Hkal204GVsJEqaYUPMlvgSf_nYbw,13378
3
- fastapi_scaff/_api_tpl.json,sha256=Xxqz5UmJYOr0EedQLm45tZlxJuq7hlRf7r-j9Mq9cJc,6810
4
- fastapi_scaff/_project_tpl.json,sha256=N65CzEn7836oRy_u4zwVaMBr6rbHwA8zqBLaGMe-SJM,72654
5
- fastapi_scaff-0.1.0.dist-info/licenses/LICENSE,sha256=A5H6q7zd1QrL3iVs1KLsBOG0ImV-t9PpPspM4x-4Ea8,1069
6
- tests/__init__.py,sha256=hL1sZ5kdrEFj8BqVmf98RgCrZAfXWNUhc122nk4hwuw,18
7
- fastapi_scaff-0.1.0.dist-info/METADATA,sha256=4wekLntgtRbUPVz7fBKB_v3yBvUAiOZd56jD312zFDU,3376
8
- fastapi_scaff-0.1.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
9
- fastapi_scaff-0.1.0.dist-info/entry_points.txt,sha256=kzs28nmpRWVCmWmZav3X7u7YOIOEir3sCkLnvQKTJbY,62
10
- fastapi_scaff-0.1.0.dist-info/top_level.txt,sha256=GYgW8daqMJBN-Gv-z0JiFM2XWuSyBoEgXwqJW1wi0hg,20
11
- fastapi_scaff-0.1.0.dist-info/RECORD,,
tests/__init__.py DELETED
@@ -1,3 +0,0 @@
1
- """
2
- 测试
3
- """