Coder Social home page Coder Social logo

bali-cli's Introduction

bali framework

bali-cli is CLI tools to simplify gRPC services and clients

bali-cli

CLI tools to simplify gRPC services and clients

Cli commands

bali add

Add service to clients folder, syntax is bali add {service}

# Example: added a service named `user`
bali add user

bali build

Build current development service protobuf

Legacy protobuf path: /services/rpc/.proto New protobuf path: /protos/.proto

# Example: build in a service root directory
bali build

bali run

New in 2.5.0

Start Bali App service, include http/rpc/event

# 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

# Enter Bali App shell
bali shell

Related Projects

bali

CONTRIBUTE

Developer Environment

make init
# 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:

git tag -a v0.1.0

push tags to remote:

git push --tags

Get a test report

make test

bali-cli's People

Contributors

baoj2010 avatar chendong0120 avatar ed-xcf avatar joshyujump avatar pratheeshrussell avatar simonlify avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

bali-cli's Issues

`bali build` failed

(venv) % bali build                                                  
Traceback (most recent call last):
  File "/Users/josh/Projects/spider/venv/bin/bali", line 5, in <module>
    from cli.main import app
  File "/Users/josh/Projects/spider/venv/lib/python3.8/site-packages/cli/main.py", line 4, in <module>
    from cli import biz
  File "/Users/josh/Projects/spider/venv/lib/python3.8/site-packages/cli/biz.py", line 9, in <module>
    from jinja2 import PackageLoader, Environment, select_autoescape
  File "/Users/josh/Projects/spider/venv/lib/python3.8/site-packages/jinja2/__init__.py", line 12, in <module>
    from .environment import Environment
  File "/Users/josh/Projects/spider/venv/lib/python3.8/site-packages/jinja2/environment.py", line 25, in <module>
    from .defaults import BLOCK_END_STRING
  File "/Users/josh/Projects/spider/venv/lib/python3.8/site-packages/jinja2/defaults.py", line 3, in <module>
    from .filters import FILTERS as DEFAULT_FILTERS  # noqa: F401
  File "/Users/josh/Projects/spider/venv/lib/python3.8/site-packages/jinja2/filters.py", line 13, in <module>
    from markupsafe import soft_unicode
ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/Users/josh/Projects/spider/venv/lib/python3.8/site-packages/markupsafe/__init__.py)

Packages' versions
bali-cli 1.1.1
MarkupSafe 2.1.1

Reuse gRPC channels

Creating a channel can be expensive, so it’s better to reuse it for performance benefits.

We need a gRPC client factory offers a centralized way to configure channels. It automatically reuses underlying channels.

Reduce the package dependencies

Nowadays the dependencies is too much

decamelize==0.1.2
grpcio==1.32.0
grpcio-tools==1.32.0
GitPython==3.1.11
jinja2==2.11.2
protobuf==3.13.0
protobuf2pydantic==2021.1.20
pydantic==1.7.3
typer==0.3.2

decamelize is included yet in another packages.
jinja2 should be replaced by the python Template in standard library.
pydantic should be replaced to standard library or just removed.
typer should be replace by standard library.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.