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.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8b6e7bc3fe45c8bdb30f0060d95ff0be4b99bb77ea3e1e1354f215f0b8f4740 |
|
MD5 | 26fe1688c091b1271fae5bcac06417d3 |
|
BLAKE2b-256 | 2aade511e4fb89e29eaffdc4fc292a28e948f435ab8dc49df123950fcc6655e6 |
Hashes for api_project_generator-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c620660fa7b21eb7bef5b40b62eb5e96333993f78b80b286e3e3d726f5c2dc76 |
|
MD5 | 2d4fdb041c3cfe8233ae2716ab28d729 |
|
BLAKE2b-256 | fb79adc3569fb2e9d1523af30d72dd5b8d5d47d028b07223ad8e989eb29fdec7 |