Skip to main content

A Python package to get details from OceanProtocol jobs

Project description

A Python package to get details from OceanProtocol jobs


Installation

pip install oceanprotocol-job-details

Usage

As a simple library, we only need to import the main object and use it once:

from oceanprotocol_job_details.job_details import OceanProtocolJobDetails

# Using default parameters
job_details = OceanProtocolJobDetails().load()

Advanced Usage (not recommended)

If instead of the environment variables, we want to use another kind of mapping, can pass it as a parameter and it will work as long as it has the same key values (Can be implemented in a more generic way, but there is no need right now).

from oceanprotocol_job_details.job_details import OceanProtocolJobDetails
from oceanprotocol_job_details.loaders.impl.environment import Keys

# Fill in with values that will be used instead of env
custom_mapper = {
    Keys.ALGORITHM: " ... ",
    Keys.DIDS: " ... ",
    Keys.ROOT: " ... ",
    Keys.SECRET: " ... ",
}

job_details = OceanProtocolJobDetails(mapper=custom_mapper).load()

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

oceanprotocol_job_details-0.0.6.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

oceanprotocol_job_details-0.0.6-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file oceanprotocol_job_details-0.0.6.tar.gz.

File metadata

File hashes

Hashes for oceanprotocol_job_details-0.0.6.tar.gz
Algorithm Hash digest
SHA256 af4cc203940c58d10d93cc895fff248637565da858f215394442911f58b63667
MD5 d36c7c1f7515a66d689b1b4820997d57
BLAKE2b-256 a4f7527e8f9eab5f48beb41a8355777445d1f5fb9dd22081f11a14e74bddb47f

See more details on using hashes here.

File details

Details for the file oceanprotocol_job_details-0.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for oceanprotocol_job_details-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 c2b4dda4d369c7396c038fbf88829c32d7140247399f185eb959c3087ab5b210
MD5 0c934e29a9f79b551c04dc46d2044937
BLAKE2b-256 e36ddcc66471c5f1ffd8a079762ec019b8ecf9c346d3d92187833201604218c1

See more details on using hashes here.

Supported by

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