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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file oceanprotocol_job_details-0.0.4.tar.gz.
File metadata
- Download URL: oceanprotocol_job_details-0.0.4.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
279f2b18aa677ced024e24565edd3c130d465c881672cad961eb48b3baa639e3
|
|
| MD5 |
dbe1a9baa269828d170a8d541634e1ad
|
|
| BLAKE2b-256 |
b04bb31a969aecccafa4003fb7db0893e7170364f743b83b8a109e2e9835afc9
|
File details
Details for the file oceanprotocol_job_details-0.0.4-py3-none-any.whl.
File metadata
- Download URL: oceanprotocol_job_details-0.0.4-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3fe0b07a13b7fba0e56e7f3885958a26d5d5e2e7928389d7b66263699eac7331
|
|
| MD5 |
b48f8dfd1fd7d791654332aead65c65f
|
|
| BLAKE2b-256 |
fe4b4739022e8c92a7a34e27449472d3ae529ce483c04ea12ea4ec26fd30af0e
|