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

Uploaded Python 3

File details

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

File metadata

  • Download URL: python_ort-0.8.11.tar.gz
  • Upload date:
  • Size: 37.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","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.11.tar.gz
Algorithm Hash digest
SHA256 4032e4e8566a07285769c8197b3fb22a767dd333313512f25001f8f786f9bfd2
MD5 16ee1316bd9d17168c1f8f8721d5dab4
BLAKE2b-256 f5bb2db83df04de0358e639aec1c4c6f75ad836224257d02465d34e4752754d4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: python_ort-0.8.11-py3-none-any.whl
  • Upload date:
  • Size: 85.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","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.11-py3-none-any.whl
Algorithm Hash digest
SHA256 c37c9753b414681baf5ba2b4a06b521e92cd0aec0e215954a66660e3f5f323f8
MD5 9b1e8ded7dcc05f96a0e856f55562926
BLAKE2b-256 e712f3d671fab4f6dcc4e6698e5555c14561221fafa662a73700f1aa5f3ec384

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