Skip to main content

API Project Generator

Simple API Structure Generator using tecnologies:

  • FastAPI
  • SQLAlchemy
  • aiohttp
  • aiomysql or asyncpg

Commands

  • create:api: Creates the project structure and base classes

    Optional --code option auto opens code through a code 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}.py

    api-project create:table [table_module] [table_name]
    
  • create:dto: Creates a new DTO file in {project_name}/dtos/{dtos_module}/{dto_name}.py

    api-project create:dto [dtos_module] [dto_name]
    
  • create:enum: Creates a new Enum file in {project_name}/dtos/enums/{enum_name}.py

    The auto-opts option in the command can be repeated and will be used as the enum field

    api-project create:enum [enum_name] --auto-opts [opt_name]
    
  • create:entity: Creates dtos, routes, repository and table for desired entity

    Optional --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.

Metadata

Release files for api-project-generator 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for api-project-generator 0.6.0
File Size Uploaded
api-project-generator-0.6.0.tar.gz 32.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for api-project-generator 0.6.0
File Interpreter ABI Platform
api_project_generator-0.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 71.6 kB

Release files / api-project-generator-0.6.0.tar.gz

Download URL api-project-generator-0.6.0.tar.gz
Size 32.5 kB
Tags Source
SHA-256 checksum
How to use checksums
11735460c96e81734ba7d1e170d8a5c6095bee8fff21f9e02bfde23669d646fc
BLAKE2b-256 checksum
How to use checksums
a75254821a0a11b854cd3c5f477fe2254db1a796d8a165df455cae12d4cba084
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.7 CPython/3.9.6 Linux/5.11.12-300.fc34.x86_64

Release files / api_project_generator-0.6.0-py3-none-any.whl

Download URL api_project_generator-0.6.0-py3-none-any.whl
Size 39.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e33064cc26a961774873427291ad8535b7a8c68d5152675ddd2251ba6b0e2177
BLAKE2b-256 checksum
How to use checksums
df6f07ec59da39de356c7821d3f4323242737f5c42f82956a5433f61a6d51394
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.7 CPython/3.9.6 Linux/5.11.12-300.fc34.x86_64

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page