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

Uploaded Python 3

File details

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

File metadata

  • Download URL: python_ort-0.8.8.tar.gz
  • Upload date:
  • Size: 37.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","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.8.tar.gz
Algorithm Hash digest
SHA256 26fc135d701156ede3210a1e77b96bf555c27524da10a96fcf4220897c0b9f53
MD5 86b8b0322e308ba0d7f40ecd7424dd1a
BLAKE2b-256 d2b71475cf08535b96b1b9de4b9a4cf31ae9da592e8f6a7947083189a5f40d9e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: python_ort-0.8.8-py3-none-any.whl
  • Upload date:
  • Size: 85.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 d547e70adbcbc4621545bf1f2c473755f2d99c3322ef0f7af52df3109b253e00
MD5 42fe674ca9934b6158a6ddfde20f7b17
BLAKE2b-256 dc9e1df42252faf9a8f7f940ee192431a90c3ec4e780f9d0d636039d407c9339

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