api-project-generator-0.6.0
توضیحات
-
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | api-project-generator-0.6.0 |
| نام | api-project-generator |
| نسخه کتابخانه | 0.6.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Gustavo Correa |
| ایمیل نویسنده | self.gustavocorrea@gmail.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/api-project-generator/ |
| مجوز | - |
# 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)
```bash
api-project create
```
- `create:table`: Creates a new table in file in {project_name}/database/tables/{table_module}/{table_file}.py
```bash
api-project create:table [table_module] [table_name]
```
- `create:dto`: Creates a new DTO file in {project_name}/dtos/{dtos_module}/{dto_name}.py
```bash
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
```bash
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.
```bash
api-project create:entity [entity_module] [entity_name]
```
### Observations
> All filenames and foldernames are
>
> normalized automatically to snake_case.
نیازمندی
| مقدار | نام |
|---|---|
| >=3.1.18,<4.0.0 | GitPython |
| >=0.3.2,<0.4.0 | typer |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.9,<4.0 | Python |
نحوه نصب
نصب پکیج whl api-project-generator-0.6.0:
pip install api-project-generator-0.6.0.whl
نصب پکیج tar.gz api-project-generator-0.6.0:
pip install api-project-generator-0.6.0.tar.gz