A small example package
Project description
Event Chain: An Event System Built on Forge
Introduction
There are two ways of running event-chain on your local. Pick one that suit you more.
- Developer Setup: if you want to work directly with the source code
- Quick Setup: if you just want to get a quick sense of it.
Developer Setup
-
clone this repo to your local
-
install dependencies for forge-python-sdk:
`pip install -r requirements.txt` -
install dependencies for forge-event-chain
`pip install -r examples/event_chain/requirements.txt`
Quick Setup
-
Go to your python environment
-
pip install forge-event-chain
Run
Before running event_chain, make sure your local forge is running properly.
-
Add event_chain config in your forge config.
[app] name = "Event-Chain" version = "0.1.0" sock_tcp = "tcp://127.0.0.1:27219" path = "~/.forge/event_chain" host="127.0.0.1" # Your local IP address for wallet to connect port=5000 did_address='http://localhost:4000' # The DID service event_chain will call from
-
restart forge to activate the updated config.
-
simulate original data to start with:
FORGE_CONFIG=/home/User/forge_release.toml python -m event_chain.simulation.simulat -
start event_chain server:
FORGE_CONFIG=/home/User/forge_release.toml python -m event_chain.server.init -
start event_chain application:
FORGE_CONFIG=/home/User/forge_release.toml python3 -m event_chain.ec normal
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 forge-event-chain-0.14.2.tar.gz.
File metadata
- Download URL: forge-event-chain-0.14.2.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c33b304c78c2d404c788774bb7259a727b976f630f1fe1ffa3c29859f614477
|
|
| MD5 |
adec99aac0dc4514af0412956bf7a999
|
|
| BLAKE2b-256 |
78440287bc49470a4b25bfe7fb19e2095e86517c3cc197046945c9fbf1254775
|
File details
Details for the file forge_event_chain-0.14.2-py2.py3-none-any.whl.
File metadata
- Download URL: forge_event_chain-0.14.2-py2.py3-none-any.whl
- Upload date:
- Size: 1.1 MB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2655aad0c1b112c078cc15627b734c2362e12a07371d45b4305a6b298a46249d
|
|
| MD5 |
72fb899da778703b59b1e9fa24561e6f
|
|
| BLAKE2b-256 |
fbb26f6c204d5842a12d290ad482024f6fed2e4db26a0ab6a05409c77084d748
|