{ "info": { "author": "leucothia", "author_email": "devops@oceanprotocol.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Natural Language :: English", "Programming Language :: Python :: 3.6" ], "description": "[![banner](https://raw.githubusercontent.com/oceanprotocol/art/master/github/repo-banner%402x.png)](https://oceanprotocol.com)\n\n

ocean-web3

\n\n> \ud83d\udca7 Python wrapper, allowing to integrate the basic Ocean/web3.py capabilities\n> [oceanprotocol.com](https://oceanprotocol.com)\n\n[![Travis (.com)](https://img.shields.io/travis/com/oceanprotocol/ocean-web3.svg)](https://travis-ci.com/oceanprotocol/ocean-web3)\n[![Codacy coverage](https://img.shields.io/codacy/coverage/7084fbf528934327904a49d458bc46d1.svg)](https://app.codacy.com/project/ocean-protocol/ocean-web3/dashboard)\n[![PyPI](https://img.shields.io/pypi/v/ocean-web3.svg)](https://pypi.org/project/ocean-web3/)\n[![GitHub contributors](https://img.shields.io/github/contributors/oceanprotocol/ocean-web3.svg)](https://github.com/oceanprotocol/ocean-web3/graphs/contributors)\n\n---\n\n## Table of Contents\n\n - [Features](#features)\n - [Prerequisites](#prerequisites)\n - [Quick-start](#quick-start)\n - [Code style](#code-style)\n - [Testing](#testing)\n - [New Version](#new-version)\n - [License](#license)\n\n---\n\n## Features\n\nOcean-web3 include the methods to make easy the connection with contracts deployed in different networks.\nThis repository include also the methods to encrypt and decrypt information.\n\n## Prerequisites\n\nYou should have running a instance of BigchainDB and ganache-cli. \nYou can start running the docker-compose in the docker directory:\n\n## Quick-start\n\nWhen you want to interact with the contracts you have to instantiate this class:\n\n```python\nfrom ocean_web3.ocean_contracts import OceanContractsWrapper\nocean = OceanContractsWrapper(host='http://localhost', port=8545, config_path='config.ini') \nocean.init_contracts()\n```\nIf you do not pass the config_path the wrapper will use the default values. \nAfter that you have to init the contracts. And you can start to use the methods in the different contracts.\n\nYou will find as well two methods that allow you to register and consume an asset.\n```python\nfrom ocean_web3.consumer import register, consume\nregister(publisher_account=ocean.web3.eth.accounts[1],\n provider_account=ocean.web3.eth.accounts[0],\n price=10,\n ocean_contracts_wrapper=ocean,\n json_metadata=json_consume\n )\nconsume(resource=resouce_id,\n consumer_account=ocean.web3.eth.accounts[1],\n provider_account=ocean.web3.eth.accounts[0],\n ocean_contracts_wrapper=ocean,\n json_metadata=json_request_consume)\n\n```\n\n## Code style\n\nThe information about code style in python is documented in this two links [python-developer-guide](https://github.com/oceanprotocol/dev-ocean/blob/master/doc/development/python-developer-guide.md)\nand [python-style-guide](https://github.com/oceanprotocol/dev-ocean/blob/master/doc/development/python-style-guide.md).\n\n## Testing\n\nAutomatic tests are setup via Travis, executing `tox`.\nOur test use pytest framework.\n\n## New Version\n\nThe `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.\n\n## License\n\n```\nCopyright 2018 Ocean Protocol Foundation Ltd.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/oceanprotocol/ocean-web3", "keywords": "ocean-web3", "license": "Apache Software License 2.0", "maintainer": "", "maintainer_email": "", "name": "ocean-web3", "package_url": "https://pypi.org/project/ocean-web3/", "platform": "", "project_url": "https://pypi.org/project/ocean-web3/", "project_urls": { "Homepage": "https://github.com/oceanprotocol/ocean-web3" }, "release_url": "https://pypi.org/project/ocean-web3/0.1.2/", "requires_dist": [ "keeper-contracts" ], "requires_python": "", "summary": "\ud83d\udc33 Ocean/Web3py wrapper.", "version": "0.1.2" }, "last_serial": 4234687, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "4e44c919136f3a4c1b003b79c170fb9c", "sha256": "291716e12725d743deec5bda58925c9a15953bbd2a609adb848f9864a5a4675a" }, "downloads": -1, "filename": "ocean_web3-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "4e44c919136f3a4c1b003b79c170fb9c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7828, "upload_time": "2018-08-21T13:22:31", "url": "https://files.pythonhosted.org/packages/dc/91/f47a31aa40123c200c128facc3c9a3e53ab7da9d493023eeb7b15718406e/ocean_web3-0.1.0-py2.py3-none-any.whl" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "47a6c94cc82917dfe9381ee85a6bc9c4", "sha256": "3f5e3ee09a11f089210b2fdced44d9328811bf54a08b2076a8d8b6b0c4eedfac" }, "downloads": -1, "filename": "ocean_web3-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "47a6c94cc82917dfe9381ee85a6bc9c4", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7838, "upload_time": "2018-08-22T07:33:49", "url": "https://files.pythonhosted.org/packages/4c/cc/948eab3af901ae3f2d34fbf47cde4e43e146b0a57f94ed76528780119a69/ocean_web3-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b77c2dfa484b4adc9721fee9909bc9b8", "sha256": "f4c180e3350f420889434e576a96e67fbd7c210ec107bc21b2921dbd642c9aff" }, "downloads": -1, "filename": "ocean-web3-0.1.1.tar.gz", "has_sig": false, "md5_digest": "b77c2dfa484b4adc9721fee9909bc9b8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 95745, "upload_time": "2018-08-22T07:33:51", "url": "https://files.pythonhosted.org/packages/d2/7b/1bca765311430af74e1ef40adb30cd23bfd417e53df6f41c5af7741f5c80/ocean-web3-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "c67ab8553bc76d08073a6fb06820765b", "sha256": "1a5190c537e656b75d4dff5c7dabd49bf132e7c0fabafece6f7acd16fc6cb63d" }, "downloads": -1, "filename": "ocean_web3-0.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c67ab8553bc76d08073a6fb06820765b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7962, "upload_time": "2018-09-03T15:06:40", "url": "https://files.pythonhosted.org/packages/bf/e3/fd89fe1853bb9bef795c86c8f717fe98fc0c998f47a612a670d09dcf3e10/ocean_web3-0.1.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6a28fea55d2cf59908286e6d05b702dd", "sha256": "5a7021ff0a60d3b47807b592c124ea92a691babcbe32cf10878882e72b9bdaa1" }, "downloads": -1, "filename": "ocean-web3-0.1.2.tar.gz", "has_sig": false, "md5_digest": "6a28fea55d2cf59908286e6d05b702dd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13197, "upload_time": "2018-09-03T15:06:41", "url": "https://files.pythonhosted.org/packages/4b/c7/0cc24aa381f304879b6964ac35d50616f69a53b3126e68fb186c40574c3a/ocean-web3-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c67ab8553bc76d08073a6fb06820765b", "sha256": "1a5190c537e656b75d4dff5c7dabd49bf132e7c0fabafece6f7acd16fc6cb63d" }, "downloads": -1, "filename": "ocean_web3-0.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c67ab8553bc76d08073a6fb06820765b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7962, "upload_time": "2018-09-03T15:06:40", "url": "https://files.pythonhosted.org/packages/bf/e3/fd89fe1853bb9bef795c86c8f717fe98fc0c998f47a612a670d09dcf3e10/ocean_web3-0.1.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6a28fea55d2cf59908286e6d05b702dd", "sha256": "5a7021ff0a60d3b47807b592c124ea92a691babcbe32cf10878882e72b9bdaa1" }, "downloads": -1, "filename": "ocean-web3-0.1.2.tar.gz", "has_sig": false, "md5_digest": "6a28fea55d2cf59908286e6d05b702dd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13197, "upload_time": "2018-09-03T15:06:41", "url": "https://files.pythonhosted.org/packages/4b/c7/0cc24aa381f304879b6964ac35d50616f69a53b3126e68fb186c40574c3a/ocean-web3-0.1.2.tar.gz" } ] }