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

Uploaded Python 3

File details

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

File metadata

  • Download URL: python_ort-0.8.1.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.1.tar.gz
Algorithm Hash digest
SHA256 e0ba6d9aa6c49fa5fa3b8225d50f53a35adf5ad4744faa60269a6235adf5a1de
MD5 cc60377eb902fc36a4cf1b6db2cbeca0
BLAKE2b-256 024f4c2d40004ad693a419345f6ede521703ffb7123afff1876ad69832a62a7e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: python_ort-0.8.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b93af0d92db1b5a26ce14de275a0e7873bf0722cde6515c3df4b219107ff25dc
MD5 44579e0c97c3217a40686403f12ba182
BLAKE2b-256 9e8d2992e123e1f0326ab7b97b060acfb314f2f5ebf7b206d3b2bc9ecefba3a1

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