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.8.5.tar.gz (38.6 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.8.5-py3-none-any.whl (86.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: python_ort-0.8.5.tar.gz
  • Upload date:
  • Size: 38.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","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.8.5.tar.gz
Algorithm Hash digest
SHA256 ccead7274932a1163d3c704ec5ef31a63ff6a05af0f90b78be3f8dcafef1675f
MD5 561312207f838cf260dfa55356116867
BLAKE2b-256 36bcae3399be7158f50e9257b74614ee31c2f876fd6fe9fde781b084d02b4455

See more details on using hashes here.

File details

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

File metadata

  • Download URL: python_ort-0.8.5-py3-none-any.whl
  • Upload date:
  • Size: 86.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","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.8.5-py3-none-any.whl
Algorithm Hash digest
SHA256 1878528b9057637eeb66a1729c7878abdb7804007e236512174f18cab4df3fe2
MD5 35bcd1857862faa8a74aeb05dc87a582
BLAKE2b-256 7e9247c26b433e6b8ec091dc434f44060fa6a5eb09c76181544fad178b79dbe2

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