Used to quickly generate fastapi project.
Project description
Document
Description
- This project is used to quickly generate fastapi project.
Flow for Main App
- run main app command
- config config.py db or set in environment
Requirements
- python 3.8
- click
- pandas
- databases
Command
# generate main app
fastapi main
# generate main app with orm
fastapi orm db_host db_name db_user db_pswd
# only generate orm
fastapi orm --only db_host db_name db_user db_pswd
fastapi orm localhost test test test
# generate sub app
fastapi sub app-name
# generate api from sub app / if app not exist, create it.
fastapi api app-name api-name
# run fastapi app
uvicorn app.main:app --reload
Version
- 0.3.7
- add param is_only_orm
- 0.3.6
- add orm generate
- 0.3.5
- update command with click
- 0.3
- generate api of sub app.
- 0.2.1
- generate sub app with auto load api
- 0.2
- generate sub app
- 0.1.3
- auto load sub app
- 0.1.2
- write main app project files
- 0.1.1
- generate with orm
- 0.1
- generate base app: can run it!
- 0.0.2
- create main app files
- 0.0.1
- only create app/main.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fastapi_generator-0.3.7.1.tar.gz
(10.3 kB
view hashes)
Built Distribution
Close
Hashes for fastapi_generator-0.3.7.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2892e65f2f73af0975c8b9c9cc25e4f68dd4babcb5c74c0d78b8caa545f5821 |
|
MD5 | 990ee637e0072a9e86dcf3efc7309696 |
|
BLAKE2b-256 | dcbd8e2b9343f32037f421098eefbfea894973bec4f7e2cd93ca89773ce609f0 |
Close
Hashes for fastapi_generator-0.3.7.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb1ab25a49144227b5caabd1fb76ca0a1de21c969f49b4af8705d2ee3205a2c7 |
|
MD5 | f0599e0c1ced297ded1ca0e083218d1c |
|
BLAKE2b-256 | 9d76dc0ef732e5cbe9e575881c03f031184e0a5a717673d04189adf211cc5349 |