Skip to main content

🐳 Ocean Provider.

Project description

banner

provider

🐋 Provide an off-chain database store for data assets metadata and registration and perform part of access control in collaboration with the keeper-contracts. oceanprotocol.com

Build Status


🐲🦑 THERE BE DRAGONS AND SQUIDS. This is in alpha state and you can expect running into problems. If you run into them, please open up a new issue. 🦑🐲


Get Started

The most simple way to start is:

git clone git@github.com:oceanprotocol/provider.git
cd provider/

export FLASK_APP=provider/run.py
export CONFIG_FILE=oceandb.ini 
flask run

Requirements

You should have running a instance of BigchainDB and ganache-cli. You can start running the docker-compose in the docker directory:

docker-compose up

API documentation

Once you have your application running you can access to the documentation in:

http://127.0.0.1:5000/api/v1/docs

Configuration

In the configuration there are now three sections:

  • oceandb: Contains different values to connect with oceandb. You can find more information about how to use OceanDB here.
  • keeper-contracts: This section help you to connect with the network where you have deployed the contracts.
    [keeper-contracts]
    keeper.host=0.0.0.0
    keeper.port=8545
    #contracts.folder=venv/contracts
    market.address=0xbc0be3598a31715bac5235718f96bb242804e61e
    auth.address=0x6ba5f72e5399aa67db5b22ee791851937d4910f5
    token.address=0xfd83b273b395b1029c41bb32071500bf662e6a8a
    provider.address=
    
  • resources: This section have properties to connect with the different resourcer provideres. At the moment we are only using Azure but this is going to increase quickly.
    [resources]
    azure.account.name=testocnfiles
    azure.account.key=k2Vk4yfb88WNlWW+W54a8ytJm8MYO1GW9IgiV7TNGKSdmKyVNXzyhiRZ3U1OHRotj/vTYdhJj+ho30HPyJpuYQ==
    azure.container=testfiles
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ocean-provider-0.1.0.tar.gz (101.8 kB view hashes)

Uploaded Source

Built Distribution

ocean_provider-0.1.0-py2.py3-none-any.whl (15.2 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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