Skip to main content

ohi SDK for Python

Search ontologies on ohi.dev, inspect their metadata, download selected files and save file selections.

Install on Python 3.10 or later:

python -m pip install ohi-sdk

Search, inspect the first hit and download its first file:

from ohi import CatalogClient, SearchRequest

client = CatalogClient()
page = client.search(SearchRequest(q="sensors", page=1, per_page=10))
if page.hits:
    publication = client.inspect(page.hits[0].base_url)
    artifact = publication.artifacts[0]
    content = client.get(artifact.url)

get returns the file's bytes.

See the SDK documentation for configuration, file selections, metadata and errors.

Metadata

Release files for ohi-sdk 0.18.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ohi-sdk 0.18.2
File Size Uploaded Provenance Actions
ohi_sdk-0.18.2.tar.gz 25.8 kB With provenance Details for ohi_sdk-0.18.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ohi-sdk 0.18.2
File Interpreter ABI Platform Actions
ohi_sdk-0.18.2-py3-none-any.whl Python 3 none any Details for ohi_sdk-0.18.2-py3-none-any.whl

Total release size: 48.3 kB

Release files / ohi_sdk-0.18.2.tar.gz

Download URL ohi_sdk-0.18.2.tar.gz
Size 25.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8828c1219248278fe82c2f9f65e0ca1ce0124a62f3f4aaa983f725845502b05a
BLAKE2b-256 checksum
How to use checksums
38ddb144d97a8a3ad9f87f439db5874892d11647409ca361d8ef3a5486a8d3a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

Release files / ohi_sdk-0.18.2-py3-none-any.whl

Download URL ohi_sdk-0.18.2-py3-none-any.whl
Size 22.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
be4de7be8fc8440476614d838971422c1e66017548950dd4d2a9da5c9ad85ef3
BLAKE2b-256 checksum
How to use checksums
700cbe3886dc576c8aedab6ebd2eccd49cde0aee31eb60f9b540490dd8f38a2d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

Security for ohi-sdk 0.18.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ohi_sdk-0.18.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page