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.12.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.12-py3-none-any.whl (85.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: python_ort-0.8.12.tar.gz
  • Upload date:
  • Size: 37.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","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.12.tar.gz
Algorithm Hash digest
SHA256 345acb6d698ad61c9f7f5eabdf476f4cb499dbbf83ed9945df863745803becb6
MD5 12159460aa9527b87acd1c4e31d4c0ed
BLAKE2b-256 d2f4c9a9fd44beb11cc4f67de275c3a6b7455763571376feb1eeff3296b682c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: python_ort-0.8.12-py3-none-any.whl
  • Upload date:
  • Size: 85.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","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.12-py3-none-any.whl
Algorithm Hash digest
SHA256 74a219a66c84b5ceaa48f8cf3fe6b3a6bb40c080d9de8f219da2e49f640789f5
MD5 a478d3ac79d4bbb499caf57d347aa8ed
BLAKE2b-256 ddb91b6ca7a51d061a225dfc19be72650670bd266d76f825e6f8d0cb9588083d

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