No project description provided
Project description
API Project Generator
Simple API Structure Generator using tecnologies:
- FastAPI
- SQLAlchemy
- aiohttp
- aiomysql or asyncpg
Commands
-
create:api
: Creates the project structure and base classesOptional
--code
option auto opens code through acode project_folder_name
command. Optional--db-type
option allows to select database type from "postgres" or "mysql". (default: mysql)api-project create
-
create:table
: Creates a new table in file in {project_name}/database/tables/{table_module}/{table_file}.pyapi-project create:table [table_module] [table_name]
-
create:dto
: Creates a new DTO file in {project_name}/dtos/{dtos_module}/{dto_name}.pyapi-project create:dto [dtos_module] [dto_name]
-
create:enum
: Creates a new Enum file in {project_name}/dtos/enums/{enum_name}.pyThe
auto-opts
option in the command can be repeated and will be used as the enum fieldapi-project create:enum [enum_name] --auto-opts [opt_name]
-
create:entity
: Creates dtos, routes, repository and table for desired entityOptional
--sync
option allow to toggle between async repositories and routes or synchronous ones.api-project create:entity [entity_module] [entity_name]
Observations
All filenames and foldernames are
normalized automatically to snake_case.
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
Built Distribution
Hashes for api-project-generator-0.5.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86e534845255767a66bb662228fdf548b395abee716f08b3c417f40d1d9b7711 |
|
MD5 | 0763bd1f9f68a65a366193ad3e97338b |
|
BLAKE2b-256 | c72ba46cc182b39c6daf2f9f668813aa16b5d2ea83c3fda1900f35ede9fad68f |
Hashes for api_project_generator-0.5.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45530bd21d88fe9f5068c10f633924b8142958a9051c046e6676366c53a967a1 |
|
MD5 | 3ce4a575fd94e087c9684f7a6a150653 |
|
BLAKE2b-256 | 3f6a3e8a880449c4e40ed3f01b53f7fd81d01f050b3129a31a0904db2624b839 |