exonum-launcher-cis-0.1.3.dev1
توضیحات
Exonum CIS Dynamic Services Launcher
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | exonum-launcher-cis-0.1.3.dev1 |
| نام | exonum-launcher-cis |
| نسخه کتابخانه | 0.1.3.dev1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | The Exonum team |
| ایمیل نویسنده | contact@exonum.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/exonum-launcher-cis/ |
| مجوز | - |
# Exonum CIS Dynamic Service Launcher
A tool to send deploy&init requests into the Exonum CIS blockchain.
## Usage
```sh
usage: exonum_launcher_cis [-h] -i INPUT [-r RUNTIMES [RUNTIMES ...]]
[--runtime-parsers RUNTIME_PARSERS [RUNTIME_PARSERS ...]]
[--instance-parsers INSTANCE_PARSERS [INSTANCE_PARSERS ...]]
Exonum service launcher
optional arguments:
-h, --help show this help message and exit
-i INPUT, --input INPUT
A path to yaml input for service initialization
-r RUNTIMES [RUNTIMES ...], --runtimes RUNTIMES [RUNTIMES ...]
Additional runtimes, e.g. `--runtimes java=1 python=2
wasm=3`
--runtime-parsers RUNTIME_PARSERS [RUNTIME_PARSERS ...]
Runtime spec parsers, e.g. `--runtime-parsers
python=your_module.YourRuntimeSpecLoader` Values will
be imported and treated like SpecLoader, so ensure
that module with loader is in `sys.path`.
--instance-parsers INSTANCE_PARSERS [INSTANCE_PARSERS ...]
Instance spec parsers, e.g. `--runtime-parsers
python=your_module.YourInstanceSpecLoader` Values will
be imported and treated like InstanceSpecLoader, so
ensure that module with loader is in `sys.path`.
```
So, if you want to run `exonum-launcher_cis` with Rust runtime only and without custom artifact spec loaders, you can just use:
```sh
python3 -m exonum_launcher_cis -i sample.yml
```
If you want to use `exonum-launcher` with Python runtime and Python runtime spec loader, the command will be:
```sh
python3 -m exonum_launcher_cis --runtimes python=2 --runtime-parsers python=exonum_launcher.runtimes.python.PythonSpecLoader -i sample.yml
```
Example of expected `yaml` file:
```yaml
networks:
- host: "127.0.0.1"
ssl: false
public-api-port: 8080
private-api-port: 8081
deadline_height: 10000
artifacts:
cryptocurrency:
runtime: rust
name: "exonum-cryptocurrency-advanced:0.12.0"
# Example of artifact that should not be deployed
example_artifact:
runtime: rust
name: "exonum-cryptocurrency-advanced:0.12.0"
deploy: false
instances:
xnm-token:
artifact: cryptocurrency
config: []
nnm-token:
artifact: "cryptocurrency"
config: []
some-instance:
# Since we will not deploy `example_artifact`, it is assumed that it is already deployed
artifact: "example_artifact"
config:
val_a: "123"
val_b: 345
```
**Important:** if you have more than one validator in the network, ensure that connection data
(`networks` section of the config) is specified for **every** validator.
Deploy&init process requires requests to be sent to each validator, so don't expect that transaction broadcast
mechanism will work here.
## Plugins
You can define custom runtimes and plugins in the config (so you won't have to provide them from command line):
```yaml
runtimes:
python: 2
plugins:
runtime:
python: "exonum_launcher_cis.runtimes.python.PythonSpecLoader"
artifact: {}
```
See `samples` folder for more examples.
## Install
```sh
pip install exonum-launcher-cis --no-binary=protobuf
```
## License
Apache 2.0 - see [LICENSE](LICENSE) for more information.
نیازمندی
| مقدار | نام |
|---|---|
| - | pyyaml |
| ==0.4.0.dev4 | exonum-python-client |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl exonum-launcher-cis-0.1.3.dev1:
pip install exonum-launcher-cis-0.1.3.dev1.whl
نصب پکیج tar.gz exonum-launcher-cis-0.1.3.dev1:
pip install exonum-launcher-cis-0.1.3.dev1.tar.gz