Skip to main content

A Python Ort model serialization library

Project description

Python-Ort

Python-Ort is a pydantic v2 based library to serialize OSS Review Toolkit generated reports using the default models.

Install

pip install python-ort

Simple usage example based on a report in yml format:

from pprint import pprint
from pathlib import Path
from pydantic import ValidationError

from ort import OrtResult, ort_yaml_load


try:
    with Path("some-result.yml").open() as fd:
        data = ort_yaml_load(fd)
    parsed = OrtResult(**data)
    pprint(parsed)
except ValidationError as e:
    print(e)

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

python_ort-0.9.0.tar.gz (39.4 kB view details)

Uploaded Source

Built Distribution

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

python_ort-0.9.0-py3-none-any.whl (89.2 kB view details)

Uploaded Python 3

File details

Details for the file python_ort-0.9.0.tar.gz.

File metadata

  • Download URL: python_ort-0.9.0.tar.gz
  • Upload date:
  • Size: 39.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for python_ort-0.9.0.tar.gz
Algorithm Hash digest
SHA256 4837fb72b9db39aefe15793029c3d046e55e3010a7735be7ff14f71c3d18fe17
MD5 3f6382f516e07619206b2c2f1c96a23a
BLAKE2b-256 d77d30e6b3624cdeb088a5b04b0329e4045f32e8eef4730f800df645b6c731fb

See more details on using hashes here.

File details

Details for the file python_ort-0.9.0-py3-none-any.whl.

File metadata

  • Download URL: python_ort-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 89.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for python_ort-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a59e5332ba63557de0beda7efc30814f334bc49affa7e2b361a691a61f3cdd66
MD5 2c65e45f70f26a813cd2e340be7c228f
BLAKE2b-256 c16351a6b862ec8bdbd4b1f701093ab7fef004fd7770c78fe5adbedd257035b3

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