Giter VIP home page Giter VIP logo

gumpy's Introduction

Gumpy

动态容器

启动

$ python -m gumpy -p plugins_dir

上述代码启动 gumpy 模块,以 samples 目录为组件目录

指令

  • repo - 列出在库组件
  • list - 列出已安装组件
  • install [在库组件] - 安装组件
  • start [已安装插件] - 启动组件
  • stop [已启动插件] - 停止组件
  • call [插件]:[服务].foo() - 调用服务的接口

范例

$ python -m gumpy -p samples
Gumpy runtime console
>>> repo
  mod_bdl        [MOD]
      - MOD 为 python 模块的组件                         
  pkg_bdl        [PKG]
      - PKG 为 python 的包组件     
  zip_bdl.zip    [ZIP]
      - ZIP 为 zip 包,内部必须含一个完整同名的 python 包结构
  file_bdl       [MOD]
>>> install mod_bdl
      - 安装 mod_bdl
>>> install file_bdl
      - 安装 file_bdl
>>> start mod_bdl
      - 启动 mod_bdl
>>> start file_bdl
      - 启动 file_bdl
>>> list
  file_bdl       [ACTIVE]       
  mod_bdl        [ACTIVE]
>>> call file_bdl:SampleServiceA.foo()
      - 调用 file_bdl 组件中的 SampleServiceA 服务中的 foo 办法
<mod_bdl.SampleServiceA object at 0x7f1210ddec90>

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.