No project description provided
Project description
hoprd-config-tool
Tool to generate HOPRd identity, configuration, and docker-compose files from a single input where all required data is specified.
Installation
➜ pip(3) install (-U) hoprd-config-tool
Usage
To generate the required ressources (identities, configurations and docker-compose files) from a config file, run the following command:
➜ python -m hoprd-config-tool --params .config/network_1.toml
You can specify the root folder where identity and configuration files will be generated by appending the optional parameter --folder <FOLDER> which by default is set to ./.hoprd-nodes/.
The generated docker compose file follows the default naming: docker-compose.yml
Custom Docker networks
If you need the generated compose file to reference custom networks (for example
to attach the services to an existing external network) you can define them in
your configuration file under the networks key, using the same syntax as in a
regular docker-compose.yml file:
[networks.default]
name = "hoprd-network1"
external = true
The contents of this section are copied verbatim into the rendered compose file and every generated service automatically references all declared networks.
Using tagged values in TOML
The TOML params file can express the YAML tags used by the generated
configuration (for example !AutoFunding, !AutoRedeeming, or
!ClosureFinalizer) by embedding the tag in the array-of-table header:
[[config.hopr.strategy.strategies.AutoFunding]]
funding_amount = "500 xDAI"
min_stake_threshold = "100 HOPR"
The tool converts those entries into the appropriate YAML objects before
rendering the final .cfg.yaml files, so the output format remains unchanged.
Naming nodes with surnames
Each entry in the [[nodes]] section can optionally embed the node's
surname directly into the table header to differentiate nodes within the same
params file:
[[nodes.alpha]]
safe_address = "SAFE_ADDRESS_1"
...
The surname in the header is converted to a slug (letters, numbers, and dashes
only) and used in every generated file path and docker-compose service name.
If a node omits the surname (for example by sticking with a plain [[nodes]]
entry) the tool falls back to the numeric index, preserving the existing
behavior.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hoprd_config_tool-0.2.0.tar.gz.
File metadata
- Download URL: hoprd_config_tool-0.2.0.tar.gz
- Upload date:
- Size: 27.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd8af48b69f65942e361c3ff87b0dc2e14ec6d46f171b6ec3cae1a3c4b5dc17a
|
|
| MD5 |
79841829a26fb640d3b4a0bcfcfe9cf7
|
|
| BLAKE2b-256 |
98a3e7d9c68040883db4260742d7e06361e03b39e3dcab1ff8a8d44f43eddbf2
|
Provenance
The following attestation bundles were made for hoprd_config_tool-0.2.0.tar.gz:
Publisher:
publish.yml on jeandemeusy/hoprd-config-tool
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hoprd_config_tool-0.2.0.tar.gz -
Subject digest:
dd8af48b69f65942e361c3ff87b0dc2e14ec6d46f171b6ec3cae1a3c4b5dc17a - Sigstore transparency entry: 868682080
- Sigstore integration time:
-
Permalink:
jeandemeusy/hoprd-config-tool@2370524c9875568149f5aa96315af647b729f4ff -
Branch / Tag:
refs/tags/0.2.0 - Owner: https://github.com/jeandemeusy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2370524c9875568149f5aa96315af647b729f4ff -
Trigger Event:
push
-
Statement type:
File details
Details for the file hoprd_config_tool-0.2.0-py3-none-any.whl.
File metadata
- Download URL: hoprd_config_tool-0.2.0-py3-none-any.whl
- Upload date:
- Size: 13.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1fbc5d35273d9338f78bd8483f7c97bfedfb371a05e92027df69636537564125
|
|
| MD5 |
82c5b877bfc9255a6148d856fe6436f4
|
|
| BLAKE2b-256 |
9d640cdece7d078730c1786a8d213bd09040d3869d1ab391e04752518ca2258d
|
Provenance
The following attestation bundles were made for hoprd_config_tool-0.2.0-py3-none-any.whl:
Publisher:
publish.yml on jeandemeusy/hoprd-config-tool
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hoprd_config_tool-0.2.0-py3-none-any.whl -
Subject digest:
1fbc5d35273d9338f78bd8483f7c97bfedfb371a05e92027df69636537564125 - Sigstore transparency entry: 868682097
- Sigstore integration time:
-
Permalink:
jeandemeusy/hoprd-config-tool@2370524c9875568149f5aa96315af647b729f4ff -
Branch / Tag:
refs/tags/0.2.0 - Owner: https://github.com/jeandemeusy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2370524c9875568149f5aa96315af647b729f4ff -
Trigger Event:
push
-
Statement type: