apiruns-0.0.5
توضیحات
Apiruns CLI is a tool to make self-configurable rest API.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | apiruns-0.0.5 |
| نام | apiruns |
| نسخه کتابخانه | 0.0.5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Jose Salas |
| ایمیل نویسنده | jose.salas@apiruns.com |
| آدرس صفحه اصلی | https://github.com/apiruns/apiruns-cli |
| آدرس اینترنتی | https://pypi.org/project/apiruns/ |
| مجوز | MIT |
# apiruns-cli
Apiruns CLI is a tool to make self-configurable rest API. Create an API rest has never been so easy.
## Requirements
- Python 3.6+
## Installation.
```bash
pip install apiruns
```
```bash
poetry install
```
## Example
```bash
apiruns --help
Usage: apiruns [OPTIONS] COMMAND [ARGS]...
╭─ Options───────────────────────────────────────────────────────────────────╮
│ --help Show this message and exit. │
╰────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ─────────────────────────────────────────────────────────────────╮
│ build Build images & validate schema.🔧 │
│ down Stops containers and removes containers. 🌪 │
│ up Make your API rest. 🚀 │
│ version Get current version. 💬 │
╰────────────────────────────────────────────────────────────────────────────╯
```
## file configuration
Make YAML file to configure your application’s services. `api.yml`
```yml
# This is an example manifest to create microservices in apiruns.
myapi: # Microservices name.
# first endpoint
- path: /users/ # Path name.
schema: # Schema of data structure.
username:
type: string
required: true
age:
type: integer
required: true
is_admin:
type: boolean
required: true
level:
type: string
```
## Crear a API Rest
```bash
apiruns up --file examples/api.yml
Building API
Creating DB container.
Creating API container.
Starting services
API listen on 8000
```
نیازمندی
| مقدار | نام |
|---|---|
| >=0.6.1,<0.7.0 | typer[all] |
| >=1.3.4,<2.0.0 | Cerberus |
| >=2.28.1,<3.0.0 | requests |
| >=0.23.0,<0.24.0 | httpx |
| >=6.0,<7.0 | PyYAML |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7,<4.0 | Python |
نحوه نصب
نصب پکیج whl apiruns-0.0.5:
pip install apiruns-0.0.5.whl
نصب پکیج tar.gz apiruns-0.0.5:
pip install apiruns-0.0.5.tar.gz