Saravanan666/pypi-org huggingface dataset:
Package: ocean-events-handler
events-handlerProvider's events handler agent dealing with Keeper Contract eventsFeaturesMonitors ServiceExecutionAgreement events and act as a provider agent to
grant access and release reward for the publisher/provider. This is a critical
part in the process of consuming data sets in the Ocean Protocol network.
Every provider in the network must run some sort of an events-handler to
be able to fulfill the access condition of anAccessservice in anSEA.This release only supports theAccessservice type that is defined in an
OceanDDO. More service types will be supported in the events-handler when
they're added to the Ocean services.PrerequisitesPython 3.6Running LocallyFirst, clone this repository:gitclonegit@github.com:oceanprotocol/events-handler.gitcdevents-handler/Start a keeper node and other services of the ocean network:gitclonegit@github.com:oceanprotocol/barge.gitcdbarge
bashstart_ocean.sh--no-events-handler--no-commons--local-spree-nodeBarge is the repository where all the Ocean Docker Compose files are located.
We are running the scriptstart_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, visitthe Barge repository.Note that it runs an Aquarius instance and an Elasticsearch instance but Aquarius can
also work with BigchainDB or MongoDB.Export environment variablesPROVIDER_ADDRESS,PROVIDER_PASSWORDandPROVIDER_KEYFILE(orPROVIDER_ENCRYPTED_KEY). Use the values from thetox.inifile, or use
your own.
Instead of using keyfile and password, you can use the private key directly
by setting the env varPROVIDER_KEY.The most simple way to start is:pipinstall-rrequirements_dev.txtexportCONFIG_FILE=config.ini
./scripts/wait_for_migration_and_extract_keeper_artifacts.sh
./start_events_monitor.shOnce the events-handler is running, you can use the Ocean API (Squid library available in python, node,
and java implementation) to publish an asset and start a consume request. For more details on using theOcean ecosystem please refer toOcean APITo run the events-handler as a provider, you can either run it from source as described above or
use a docker imagedocker pull oceanprotocol/events-handler:latest. To run the docker image
please refer to the docker-compose file in bargeevents_handler.ymlCode styleThe information about code style in python is documented in this two linkspython-developer-guideandpython-style-guide.TestingAutomatic tests are setup via Travis, executingtox.
Our test use pytest framework.LicenseCopyright 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.
Package: oceanex-py3
oceanex_py3 is a Python SDK to query, trade and manage funds on Oceanex.Installationpip3installoceanex_py3Source Codehttps://github.com/laalaguer/oceanex_py3DocumentationSee/docsfor detailed APIs.ExamplesGet all trading pairs supported on Oceanex.fromoceanex_py3importpublicmarkets=public.get_markets()foreachinmarkets:print(each.identifier,each.left,each.right)# etcusdt ETC USDT# ltcusdt LTC USDT# dashusdt DASH USDTGet current buy/sell orderbook status on the market.fromoceanex_py3importpublicasks,bids,timestamp=public.get_orderbook('btcusdt',10)# limit result to 10 orders.Post an order to the market on behalf of user.fromoceanex_py3importpersonaltest_config={'uid':'IDxxxxx','apikey_id':'Kxxxxxxx','private_key_location':'/xxx/xxx/xxx/key.pem'}p=personal.Personal(test_config['uid'],test_config['apikey_id'],test_config['private_key_location'])order=p.new_sell_limit_order('vet','btc',600000,10000)Cancel all the orders.fromoceanex_py3importpersonaltest_config={'uid':'IDxxxxx','apikey_id':'Kxxxxxxx','private_key_location':'/xxx/xxx/xxx/key.pem'}p=personal.Personal(test_config['uid'],test_config['apikey_id'],test_config['private_key_location'])p.cancel_all_orders()
Package: oceanho-dj-share-lib
oceanho-dj-share-lib 是个人(OceanHo)的 django 通用 library, 包括 model, utils, middleware, validators 等等.Quick startDefine your models like this:import django.db.models
from oceanho.dj.share.models import BigPkModel
from oceanho.dj.share.models import HasCreationState
from oceanho.dj.share.models import HasModificationState
from oceanho.dj.share.models import HasSoftDeletionState
from oceanho.dj.share.models import HasTenantIdState
from oceanho.dj.share.models import HasActivationState

class MyUser(BigIntPKAbstractModel, HasCreationState):
    email = models.CharField(max_length=200)Execute./manage.py makemigrations && ./mange.py migrate, then go to your db, your tables like this:+------------+--------------+------+-----+---------+----------------+
| Field      | Type         | Null | Key | Default | Extra          |
+------------+--------------+------+-----+---------+----------------+
| id         | bigint       | NO   | PRI | NULL    | auto_increment |
| created_at | datetime(6)  | NO   |     | NULL    |                |
| name       | varchar(200) | NO   |     | NULL    |                |
+------------+--------------+------+-----+---------+----------------+
Package: ocean-jupyter-server
Jupyter ServerThe Jupyter Server provides the backend (i.e. the core services, APIs, and REST endpoints) for Jupyter web applications like Jupyter notebook, JupyterLab, and Voila.For more information, read ourdocumentation here.Installation and Basic usageTo install the latest release locally, make sure you havepip installedand run:pip install jupyter_serverJupyter Server currently supports Python>=3.6 on Linux, OSX and Windows.Versioning and BranchesIf Jupyter Server is a dependency of your project/application, it is important that you pin it to a version that works for your application. Currently, Jupyter Server only has minor and patch versions. Different minor versions likely include API-changes while patch versions do not change API.When a new minor version is released on PyPI, a branch for that version will be created in this repository, and the version of the main branch will be bumped to the next minor version number. That way, the main branch always reflects the latest un-released version.To see the changes between releases, checkout theCHANGELOG.Usage - Running Jupyter ServerRunning in a local installationLaunch with:jupyter serverTestingSeeCONTRIBUTING.ContributingIf you are interested in contributing to the project, seeCONTRIBUTING.rst.Team Meetings and RoadmapWhen: Thursdays8:00am, Pacific timeWhere:Jovyan ZoomWhat:Meeting notesSee our tentativeroadmap here.About the Jupyter Development TeamThe Jupyter Development Team is the set of all contributors to the Jupyter project.
This includes all of the Jupyter subprojects.The core team that coordinates development on GitHub can be found here:https://github.com/jupyter/.Our Copyright PolicyJupyter uses a shared copyright model. Each contributor maintains copyright
over their contributions to Jupyter. But, it is important to note that these
contributions are typically only changes to the repositories. Thus, the Jupyter
source code, in its entirety is not the copyright of any single person or
institution. Instead, it is the collective copyright of the entire Jupyter
Development Team. If individual contributors want to maintain a record of what
changes/contributions they have specific copyright on, they should indicate
their copyright in the commit message of the change, when they commit the
change to one of the Jupyter repositories.With this in mind, the following banner should be used in any source code file
to indicate the copyright and license terms:# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
Package: ocean-keeper
ocean-keeperWraps keeper contracts and web3 functions.How toThe main class isKeeperand all contracts are accessible directly from thekeeperinstance.
Each deployed contract has a python wrapper class exposing the main functions and validating
inputs. It is possible to access the Web3 Contract functions directly by using thecontract_conciseattribute of the wrapper instance.importosfromocean_keeperimportKeeperfromocean_keeper.contract_handlerimportContractHandlerfromocean_keeper.web3_providerimportWeb3Providerfromocean_keeper.utilsimportget_account# Init the web3 instanceWeb3Provider.init_web3('http://localhost:8545')# Assume running with local parity node# set the contract handler path to abi filesContractHandler.set_artifacts_path(os.path.expanduser('~/.ocean/keeper-contracts/artifacts'))# get keeper instancekeeper=Keeper.get_instance()# Do stuff with keeper and it's contractsaccount=get_account(0)keeper.did_registry.register('0x10101010101010101010','','http://localhost:5000/api/v1/assets',account)Account can be specified using the following environment variables:PARITY_ADDRESS: the ethereum addressPARITY_PASSWORD: the password to decrypt key in thePARITY_ENCRYPTED_KEYorPARITY_KEYFILEPARITY_KEY: the private key of this account (matches thePARITY_ADDRESS), password is not required when this is specifiedPARITY_ENCRYPTED_KEY: the encrypted key in a json str (same content of thePARITY_KEYFILE)PARITY_KEYFILE: path to the json file that has the encrypted key specified in json documentNote: The keys are loaded in this order:PARITY_KEY,PARITY_ENCRYPTED_KEY,PARITY_KEYFILE. IfPARITY_KEYis
specified the password and other environment variables are ignored.For more details refer to thekeeper-contractsrepo athttps://github.com/oceanprotocol/keeper-contracts
Package: oceanlab-api-client
OceanLab API Python ClientDescriptionA client library for accessing data from OceanLab's REST API.InstallationAn installer for the Python package is published on thePython Package Index (PyPI).To install the package:pip install oceanlab-api-clientUsageSee the documentation onhttps://oceanlab.pages.sintef.no/e-infrastructure/documentation/for instructions and examples of usage.
Package: ocean-leonid
READMEThis is a project written by Robert Lawrence for the purposes of the Ocean Leonid assessment.DistributionGithubTo get started with the raw code, clone the repo and then run the following commands:pipinstallpoetry
poetryinstall
pythonmain.pyThe dash app is now available on your browser athttp://localhost:8050.DockerTo deploy the dash app using docker use the following commands:dockerbuild.-tocean_leonid
dockercontainerrun-p8050:8050ocean_leonidThe dash app is now available on your browser athttp://localhost:8050.Pip packageI havent been able to create a PyPi account.
But if I had then all that would need to be done is configure the credentials and then:poetrybuild
poetrypublishThen to use the package:pipinstallocean_leonidfromocean_leonidimportshow_vizshow_viz()TestsThe testing is done using pytestThe configuration is in pyproject.toml.To run the tests use:pytestExternal DependenciesThe external dependencies of this solution are the 2 API's that are called to get the data for the graph.
Package: ocean-lib
ocean.py: a Python library to privately & securely publish, exchange, and consume data.Ocean.py helps data scientists earn $ from their AI models, track provenance of data & compute, and get more data. (More detailshere.)Ocean.py makes these tasks easy:Publishdata services: data feeds, REST APIs, downloadable files or compute-to-data. Create an ERC721data NFTfor each service, and ERC20datatokenfor access (1.0 datatokens to access).Selldatatokens via for a fixed price. Sell data NFTs.Transferdata NFTs & datatokens to another owner, andall other ERC721 & ERC20 actionsusingweb3.py.ocean.py is part of theOcean Protocoltoolset.This is in beta state. If you run into problems, please open up anew issue.🏄 QuickstartFollow these steps in sequence to ramp into Ocean.Install OceanSetup:Remote(Win, MacOS, Linux)orLocal(Linux only)Walk through main flow: publish asset, post for free / for sale, dispense it / buy it, and consume itToolsDefine gas strategy- auto-determine gas fee for remote networksSearch & filter data- find assets by tagCustody-light flow- consume a free & a priced asset without custodyUse-case flowsChallenge DF- prize $$ to predict future ETH priceData Farming- curate data assets, earn rewardsOn-chain key-value store via data NFTsSharing public data on-chain- e.g. public AI modelsSharing private data on-chain- e.g. private AI modelsMore types of data assetsEach of the following shows how to publish & consume a particular type of data.C2D- tokenize & monetize AI algorithms via Compute-to-DataREST API- Example on Binance ETH price feedGraphQL- Example on Ocean Data NFTsOn-chain data- Example on Ocean swap feesAdding credentials- Example on publishing an asset with custom credentialsLearn moreUnderstand config parameters- envvars vs filesLearn about off-chain services- Ocean Provider for data services, Aquarius metadata store🦑 DevelopmentDevelopers flow- to further develop ocean.pyRelease process- to do a new release of ocean.py🏛 LicenseCopyright ((C)) 2023 Ocean Protocol Foundation

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.
Package: ocean-ml
OceanEasy ML workflows built on scikit-learnOcean is a package for machine learning workflows that makes it easier to create models. It is made using several tools from scikit-learn, to speed up the machine learning process.FeatureThis package will continue to be developed to add more features, here are some features
which is in package oceanautomlpreprocessingsave and load modelDependencynumpy==1.25.1scikit-learn==1.3.0scipy==1.11.1tabulate==0.9.0xgboost==1.7.6pandas==2.0.3How to InstallYou can install ocean with pip using this command:pip install ocean-mlPypi Linkhttps://pypi.org/project/ocean-ml/Github Linkhttps://github.com/AgufSamudra/oceanOcean
Package: ocean-model-skill-assessor
ocean-model-skill-assessorA package to fully run the comparison between data and model to assess model skill.You can run the analysis as a Python package or with a command-line interface.There are three steps to follow for a set of model-data validation, which is for one variable:Make a catalog for your model output.Make a catalog for your data.Run the comparison.These steps will save files into a user application directory cache. See the demos for more details.Project based on thecookiecutter science project template.InstallationSet up environmentNOTE: Make sure you haveAnaconda or Miniconda installed.Create a conda environment called "omsa" that includes the packageocean-model-skill-assessor:$condacreate-nomsa-cconda-forgeocean-model-skill-assessorNote that installing the packages is faster if you first installmambato your base Python and then use "mamba" in place of all instances of "conda".Activate your new Python environment to use it with$condaactivateomsaAlso installcartopyto be able to plot maps:$ conda install -c conda-forge cartopyInstall into existing environmentFromconda-forge:$ conda install -c conda-forge ocean-model-skill-assessorFrom PyPI:$ pip install ocean-model-skill-assessorTo plot a map of the model domain with data locations, you'll need to additionally installcartopy. If you usedcondaabove:$ conda install -c conda-forge cartopyIf you installed from PyPI, check out the instructions for installingcartopyhere.Extra packages for developmentTo also develop this package, install additional packages with:$condainstall--filerequirements-dev.txtTo then check code before committing and pushing it to github, locally run$pre-commitrun--all-files
Package: oceanograpy
oceanograpyA toolbox for handling ADCP and CTD data. Currently supports data imports from the following instruments
- TRDI Workhorse ADCP (pd0 format)
- Seabird SBE16plus, SBE19plusAuthors[Andy Banks]InstallationInstall oceanograpy with pippipinstalloceanograpyRequirementsnumpypandasxmlprogressbar2cloudpicklematplotlib
Package: ocean-provider
provider-pyREST API for provider of data servicesThis is part of the Ocean Protocol V3 tools.This is feature complete and is a BETA version.Starting the server locallyQuick startUses the rinkeby network with a remote metadatastore instance running athttps://aquarius.marketplace.dev-ocean.comgitclonegit@github.com:oceanprotocol/provider-py.gitcdprovider-py/

virtualenvvenv-ppython3.6sourcevenv/bin/activatepipinstall-rrequirements_dev.txtexportFLASK_APP=ocean_provider/run.pyexportCONFIG_FILE=config.iniexportPROVIDER_ADDRESS="068ed00cf0441e4829d9784fcbe7b9e26d4bd8d0"exportPROVIDER_PASSWORD="secret"exportPROVIDER_KEYFILE="tests/resources/provider_key_file.json"exportAQUARIUS_URL="https://aquarius.marketplace.dev-ocean.com"exportPARITY_ADDRESS1="0x00bd138abd70e2f00903268f3db08f2d25677c9e"exportPARITY_PASSWORD1="node0"exportPARITY_KEYFILE1="tests/resources/consumer_key_file.json"flaskrun--port=8030Detailed steps1. Clone the repogitclonegit@github.com:oceanprotocol/provider-py.gitcdprovider-py/2. Virtual env (optional)Before running it locally we recommend to set up virtual environment:virtualenvvenv-ppython3.6# OR: python -m venv venvsourcevenv/bin/activate3. RequirementsInstall all the requirements:pip install -r requirements_dev.txt4. DependenciesMetadata store (Aquarius).Do one of the following:Run Aquarius locally, seehttps://github.com/oceanprotocol/aquariusPoint to a remote instance such ashttps://aquarius.marketplace.dev-ocean.com.
In this case replace theaquarius.urloption in theconfig.inifile with the appropriate URL.Ethereum network.Do one of the following:Run ganache-cliPoint to rinkeby testnet or any other ethereum networkMake sure that ocean contracts (https://github.com/oceanprotocol/contracts) are deployed to the your network of choice.
Update thenetworkoption in theconfig.inifile with the proper network URL. For now it must be a URL, a simple network name (e.g. mainnet) will be supported in the future.5. Start the provider serverexportFLASK_APP=ocean_provider/run.pyexportCONFIG_FILE=config.iniexportPROVIDER_ADDRESS="your ethereum address goes here"# Set one of the followingexportPROVIDER_KEY="the private key"exportPROVIDER_ENCRYPTED_KEY="The encrypted key json from the keyfile"exportPROVIDER_KEYFILE="path to the keyfile which has the encrypted key"# and set the password if using either PROVIDER_KEYFILE or PROVIDER_ENCRYPTED_KEYexportPROVIDER_PASSWORD="password to allow decrypting the encrypted key"flaskrun--port=8030Refer to theAPI.mdfile for endpoints and payloads.
Package: ocean-provider-plus
provider-pyREST API for provider of data servicesThis is part of the Ocean Protocol V3 tools.This is feature complete and is a BETA version.Starting the server locallyQuick startUses the rinkeby network with a remote metadatastore instance running athttps://aquarius.marketplace.dev-ocean.comgitclonegit@github.com:oceanprotocol/provider-py.gitcdprovider-py/

virtualenvvenv-ppython3.6sourcevenv/bin/activatepipinstall-rrequirements_dev.txtexportFLASK_APP=ocean_provider/run.pyexportCONFIG_FILE=config.iniexportPROVIDER_ADDRESS="068ed00cf0441e4829d9784fcbe7b9e26d4bd8d0"exportPROVIDER_PASSWORD="secret"exportPROVIDER_KEYFILE="tests/resources/provider_key_file.json"exportAQUARIUS_URL="https://aquarius.marketplace.dev-ocean.com"exportPARITY_ADDRESS1="0x00bd138abd70e2f00903268f3db08f2d25677c9e"exportPARITY_PASSWORD1="node0"exportPARITY_KEYFILE1="tests/resources/consumer_key_file.json"flaskrun--port=8030Detailed steps1. Clone the repogitclonegit@github.com:oceanprotocol/provider-py.gitcdprovider-py/2. Virtual env (optional)Before running it locally we recommend to set up virtual environment:virtualenvvenv-ppython3.6# OR: python -m venv venvsourcevenv/bin/activate3. RequirementsInstall all the requirements:pip install -r requirements_dev.txt4. DependenciesMetadata store (Aquarius).Do one of the following:Run Aquarius locally, seehttps://github.com/oceanprotocol/aquariusPoint to a remote instance such ashttps://aquarius.marketplace.dev-ocean.com.
In this case replace theaquarius.urloption in theconfig.inifile with the appropriate URL.Ethereum network.Do one of the following:Run ganache-cliPoint to rinkeby testnet or any other ethereum networkMake sure that ocean contracts (https://github.com/oceanprotocol/contracts) are deployed to the your network of choice.
Update thenetworkoption in theconfig.inifile with the proper network URL. For now it must be a URL, a simple network name (e.g. mainnet) will be supported in the future.5. Start the provider serverexportFLASK_APP=ocean_provider/run.pyexportCONFIG_FILE=config.iniexportPROVIDER_ADDRESS="your ethereum address goes here"# Set one of the followingexportPROVIDER_KEY="the private key"exportPROVIDER_ENCRYPTED_KEY="The encrypted key json from the keyfile"exportPROVIDER_KEYFILE="path to the keyfile which has the encrypted key"# and set the password if using either PROVIDER_KEYFILE or PROVIDER_ENCRYPTED_KEYexportPROVIDER_PASSWORD="password to allow decrypting the encrypted key"flaskrun--port=8030Refer to theAPI.mdfile for endpoints and payloads.
Package: ocean-provider-py-plus
provider-pyREST API for provider of data servicesThis is part of the Ocean Protocol V3 tools.This is feature complete and is a BETA version.Starting the server locallyQuick startUses the rinkeby network with a remote metadatastore instance running athttps://aquarius.marketplace.dev-ocean.comgitclonegit@github.com:oceanprotocol/provider-py.gitcdprovider-py/

virtualenvvenv-ppython3.6sourcevenv/bin/activatepipinstall-rrequirements_dev.txtexportFLASK_APP=ocean_provider/run.pyexportCONFIG_FILE=config.iniexportPROVIDER_ADDRESS="068ed00cf0441e4829d9784fcbe7b9e26d4bd8d0"exportPROVIDER_PASSWORD="secret"exportPROVIDER_KEYFILE="tests/resources/provider_key_file.json"exportAQUARIUS_URL="https://aquarius.marketplace.dev-ocean.com"exportPARITY_ADDRESS1="0x00bd138abd70e2f00903268f3db08f2d25677c9e"exportPARITY_PASSWORD1="node0"exportPARITY_KEYFILE1="tests/resources/consumer_key_file.json"flaskrun--port=8030Detailed steps1. Clone the repogitclonegit@github.com:oceanprotocol/provider-py.gitcdprovider-py/2. Virtual env (optional)Before running it locally we recommend to set up virtual environment:virtualenvvenv-ppython3.6# OR: python -m venv venvsourcevenv/bin/activate3. RequirementsInstall all the requirements:pip install -r requirements_dev.txt4. DependenciesMetadata store (Aquarius).Do one of the following:Run Aquarius locally, seehttps://github.com/oceanprotocol/aquariusPoint to a remote instance such ashttps://aquarius.marketplace.dev-ocean.com.
In this case replace theaquarius.urloption in theconfig.inifile with the appropriate URL.Ethereum network.Do one of the following:Run ganache-cliPoint to rinkeby testnet or any other ethereum networkMake sure that ocean contracts (https://github.com/oceanprotocol/contracts) are deployed to the your network of choice.
Update thenetworkoption in theconfig.inifile with the proper network URL. For now it must be a URL, a simple network name (e.g. mainnet) will be supported in the future.5. Start the provider serverexportFLASK_APP=ocean_provider/run.pyexportCONFIG_FILE=config.iniexportPROVIDER_ADDRESS="your ethereum address goes here"# Set one of the followingexportPROVIDER_KEY="the private key"exportPROVIDER_ENCRYPTED_KEY="The encrypted key json from the keyfile"exportPROVIDER_KEYFILE="path to the keyfile which has the encrypted key"# and set the password if using either PROVIDER_KEYFILE or PROVIDER_ENCRYPTED_KEYexportPROVIDER_PASSWORD="password to allow decrypting the encrypted key"flaskrun--port=8030Refer to theAPI.mdfile for endpoints and payloads.