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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 706dd0add989ba4bce02f71555a465f0e458bf28659d57bb501a8d8c8fc34839 |
|
MD5 | 37e1a2472fdac3ec144a499585762376 |
|
BLAKE2b-256 | 275f851d1af781bd0f8994f098904c74bdd7b3996cc4e549c6514f539cbee221 |
Hashes for api_project_generator-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1e57710e6a720325c80b43f06f91acb2af3076988d4af857914c6968d3e970a |
|
MD5 | 2a6f14c68ea70c6198935d60271bce15 |
|
BLAKE2b-256 | 5c2ddd72824bd10b5d1aae667cde93ac0ad6d21e121a7b63ee3a7aaca981801d |