🐳 Publisher events handler agent dealing with Keeper Contract events.
Project description
events-handler-py
Publisher events handler agent dealing with Keeper Contract events
Features
Prerequisites
Python 3.6
Running Locally, for Dev and Test
First, clone this repository:
git clone git@github.com:oceanprotocol/events-handler-py.git
cd events-handler-py/
Start a keeper node and other services of the ocean network:
git clone git@github.com:oceanprotocol/barge.git
cd barge
bash start_ocean.sh --no-events-handler --no-pleuston --local-spree-node
Barge is the repository where all the Ocean Docker Compose files are located.
We are running the script start_ocean.sh
: the easy way to have Ocean projects
up and running. We run without an events-handler instance because we will run it directly.
To learn more about Barge, visit the Barge repository.
Note that it runs an Aquarius instance and an Elasticsearch instance but Aquarius can also work with BigchainDB or MongoDB.
Export environment variables PROVIDER_ADDRESS
, PROVIDER_PASSWORD
and PROVIDER_KEYFILE
. Use the values from the tox.ini
file, or use
your own.
The most simple way to start is:
pip install -r requirements_dev.txt
export CONFIG_FILE=config.ini
./scripts/wait_for_migration_and_extract_keeper_artifacts.sh
./start_events_monitor.sh
Code style
The information about code style in python is documented in this two links python-developer-guide and python-style-guide.
Testing
Automatic tests are setup via Travis, executing tox
.
Our test use pytest framework.
License
Copyright 2018 Ocean Protocol Foundation Ltd.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
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
Hashes for ocean-events-handler-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89fa718e740d39257800599998acdcf83980761f365194f68ef1e9fe092a60a8 |
|
MD5 | 4f333a67f64fc8347284dfc00ab5398b |
|
BLAKE2b-256 | ea5f5066c36a65ac6b64e54f646073b67306f9c57853e736105de83d4dfc2baa |
Hashes for ocean_events_handler-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d04ed88d1b1ccadb5795459005562907b6b2f156077b3e48b639aea7b97d72c7 |
|
MD5 | 6cb92b118d49794dd6025287538dde82 |
|
BLAKE2b-256 | 1a51c6f77b4bf44369a471de8ba2aded7da481d5953f2019b9c69fa2cffae8b4 |