bali-cli-2.6.0
توضیحات
Simplify gRPC services and clients
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | bali-cli-2.6.0 |
| نام | bali-cli |
| نسخه کتابخانه | 2.6.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Josh.Yu |
| ایمیل نویسنده | josh.yu_8@live.com |
| آدرس صفحه اصلی | https://github.com/bali-framework/bali-cli |
| آدرس اینترنتی | https://pypi.org/project/bali-cli/ |
| مجوز | MIT |
<p align="center">
<img src="https://raw.githubusercontent.com/bali-framework/bali/master/docs/img/bali.png" alt='bali framework' />
</p>
<p align="center">
<b>bali-cli</b> is
CLI tools to simplify gRPC services and clients
</p>
# bali-cli
<img src="https://img.shields.io/pypi/v/bali-cli" />
CLI tools to simplify gRPC services and clients
## Cli commands
### `bali add`
> Add service to clients folder, syntax is **bali add {service}**
```bash
# Example: added a service named `user`
bali add user
```
### `bali build`
> Build current development service protobuf
>
> Legacy protobuf path: <b>/services/rpc/*.proto</b>
> New protobuf path: <b>*/protos/*.proto*</b>
```bash
# Example: build in a service root directory
bali build
```
### `bali run`
> New in `2.5.0`
>
> Start Bali App service, include `http`/`rpc`/`event`
```bash
# Example: start http
bali run http
# Example: start rpc
bali run rpc
# Example: start event
bali run event
```
### `bali shell`
> New in `2.5.0`
>
```bash
# Enter Bali App shell
bali shell
```
## Related Projects
[](https://github.com/bali-framework/bali)
## CONTRIBUTE
**Developer Environment**
```bash
make init
```
```examples
# setup examples environments
git submodule update --init --recursive
# execute bali commands
# cd examples/gateway_service && bali add greeter
```
**Tag a new release**
tag a version:
```bash
git tag -a v0.1.0
```
push tags to remote:
```bash
git push --tags
```
**Get a test report**
```bash
make test
```
نیازمندی
| مقدار | نام |
|---|---|
| ==0.1.2 | decamelize |
| <=1.50.0,>=1.32.0 | grpcio |
| <=1.50.0,>=1.32.0 | grpcio-tools |
| <3.2dev,>=3.1.11 | GitPython |
| >=2.11.2 | jinja2 |
| ==2.0.1 | MarkupSafe |
| ==2021.11.25 | protobuf2pydantic |
| ~=1.7 | pydantic |
| >=0.4 | typer |
نحوه نصب
نصب پکیج whl bali-cli-2.6.0:
pip install bali-cli-2.6.0.whl
نصب پکیج tar.gz bali-cli-2.6.0:
pip install bali-cli-2.6.0.tar.gz