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]
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.3.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47c616fcaf788df3edd2e04a0bde46600359f6d0732b114fd8e12495a7008700 |
|
MD5 | 1c2389769a9dd513f722becd91ad8184 |
|
BLAKE2b-256 | 8da9ba107eebdcd2d5552e7fa1a7d9ee84bb5a3d9fc23f298620706f950dfb8c |
Hashes for api_project_generator-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c2647dfba396c58b4011b93c5b987e26ba6972d64f6f43f59b5df2a1af2bb8c |
|
MD5 | b7eaee29ec684bec0054cd85e742f8cf |
|
BLAKE2b-256 | bb3808f6f708b4f27366bdd5984c0101b752454823e649016dd4aeab839af07b |