Skip to main content

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.

  1. Developer Setup: if you want to work directly with the source code
  2. Quick Setup: if you just want to get a quick sense of it.

Developer Setup

  1. clone this repo to your local

  2. install dependencies for forge-python-sdk:

     `pip install -r requirements.txt`
    
  3. install dependencies for forge-event-chain

    `pip install -r examples/event_chain/requirements.txt`
    

Quick Setup

  1. Go to your python environment

  2. pip install forge-event-chain

Run

Before running event_chain, make sure your local forge is running properly.

  1. 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
    
  2. restart forge to activate the updated config.

  3. simulate original data to start with:

    FORGE_CONFIG=/home/User/forge_release.toml python -m event_chain.simulation.simulat

  4. start event_chain server:

    FORGE_CONFIG=/home/User/forge_release.toml python -m event_chain.server.init

  5. 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

forge-event-chain-0.15.2.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

forge_event_chain-0.15.2-py2.py3-none-any.whl (1.1 MB view details)

Uploaded Python 2Python 3

File details

Details for the file forge-event-chain-0.15.2.tar.gz.

File metadata

  • Download URL: forge-event-chain-0.15.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

Hashes for forge-event-chain-0.15.2.tar.gz
Algorithm Hash digest
SHA256 ca8b5b8709121a811f78fff5ccca8593f7cf59b3694854ab1e0388998be1f5a2
MD5 7e7f7855f22c68c4092a6bc5e93e2b87
BLAKE2b-256 6203f5f2bf43a498e7806e6c22a6fe2dba374f3486846ea2f0fe0eb253b394e4

See more details on using hashes here.

File details

Details for the file forge_event_chain-0.15.2-py2.py3-none-any.whl.

File metadata

  • Download URL: forge_event_chain-0.15.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

Hashes for forge_event_chain-0.15.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1dbc138961fb45f02c789cff96a39d7aefe21acccb4c8901ec60f30c507533bc
MD5 0cbe5ffa78b4ba236bdd737e6af03f03
BLAKE2b-256 283ed6d1f493612136558bdcbbd756cda23bccc8f3e68247468a6222d52a955e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page