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.2.tar.gz (38.5 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.2-py3-none-any.whl (86.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: python_ort-0.8.2.tar.gz
  • Upload date:
  • Size: 38.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","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.2.tar.gz
Algorithm Hash digest
SHA256 0baf2b4617a7c999cad9758b86fd1852cde03e1ca2cb185f1df94a838067c566
MD5 389dc7d2acfdd89226632beeb0fea2d7
BLAKE2b-256 80b045f1341ec332956aafd71e576e07c4ce375365874c1bf74566e4399daa97

See more details on using hashes here.

File details

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

File metadata

  • Download URL: python_ort-0.8.2-py3-none-any.whl
  • Upload date:
  • Size: 86.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1fb259f537a40534d03fbbd482ea2cf4de119f5aaa0447280f5c81ab7f52e8ba
MD5 62660a348ca23739d8e0537b4094a308
BLAKE2b-256 96bc312cd9b7870bdc1c9f79eb888ad84a3751db622fcbec167a19998d003940

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