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.16.tar.gz (37.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.16-py3-none-any.whl (86.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: python_ort-0.8.16.tar.gz
  • Upload date:
  • Size: 37.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.13 {"installer":{"name":"uv","version":"0.11.13","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.16.tar.gz
Algorithm Hash digest
SHA256 1b772a3683c8b3752e25bb0790afaa988d205e9344315f98c2e3ca71f2552bac
MD5 d8706e40ac74ee8317b0ad822688ffca
BLAKE2b-256 4a10ef344e1426ac42fba1470d3e971ab4911cc953e4659cf735c4673870c53b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: python_ort-0.8.16-py3-none-any.whl
  • Upload date:
  • Size: 86.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.13 {"installer":{"name":"uv","version":"0.11.13","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.16-py3-none-any.whl
Algorithm Hash digest
SHA256 554689c8b45c596ff1ccdbc919f1e28c5b07f54cc85c948b0bc0a28fa63dafb4
MD5 0e6b0e5c0f1f360c6491b24db921a092
BLAKE2b-256 8c6ebb7dd497f17948a3d1db06a63f58265e46819324d6afd2cfa7c84d06e99f

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