Ocean/squid-py wrapper.
Project description
starfish-py
Floating on the surface of the Ocean. Ocean-py (Ocean Python) provides user access and tools to the Ocean Protocol Network, via the python library squid-py.
Table of Contents
Features
Currently only provide basic account balance information
Prerequisites
Python 3.6
Development
-
Set up a virtual environment
-
Install requirements
pip install -r requirements_dev.txt
-
Run the unit tests, without any supporting software/libraries outside of starfish
python3 -m pytest tests/unit
-
Create the local testing environment using barge.
In a sepearte terminal session you need to clone and checkout the correct taged version of
barge
repository, by doing the following:git clone https://github.com/DEX-Company/barge.git cd barge git checkout tags/dex-2019-05-24 ./start_ocean.sh --no-brizo --no-pleuston --local-spree-node
-
Copy keeper artifacts
A bash script is available to copy keeper artifacts into this file directly from a running docker image. This script needs to run in the root of the project. The script waits until the keeper contracts are deployed, and then copies the artifacts.
./scripts/wait_for_migration_and_extract_keeper_artifacts.sh
The artifacts contain the addresses of all the deployed contracts and their ABI definitions required to interact with them.
-
Run the integration tests
python3 -m pytest tests/integration
-
Run the all tests
python3 -m pytest tests # or python3 setup.py test
Documentation
- Build Sphinx documentation
To build the Syphinx auto documentation, you need to do the following:
make docs
The documentation for this repo is on the starfish doc site shrimp server.
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.
New Version
The bumpversion.sh
script helps to bump the project version. You can execute the script using as first argument {major|minor|patch} to bump accordingly the version.
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 starfish_py-0.3.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4dda0f4c6b082de7d6087ba81bac20ebdeae7880726db33d3331c4ffd20d341 |
|
MD5 | 170be8ff09ae8ae9a12b117ebb35e708 |
|
BLAKE2b-256 | 84de82379f8dc7ccf52e04f2845a284ceae6342e81263f4e3ba8554062785429 |