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.9.3.tar.gz (40.1 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.9.3-py3-none-any.whl (90.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: python_ort-0.9.3.tar.gz
  • Upload date:
  • Size: 40.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","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.9.3.tar.gz
Algorithm Hash digest
SHA256 5709c94aa6a75a982c7e3e978ea12d54bee6a8d138a78f14a784f7742f8a9bda
MD5 1f81a8174a4aba09055d525d2676dd0a
BLAKE2b-256 dd33fb8f68ae72c1b5fa1bed3d2ddf754f1e9151ab61ac13611eaaaf59f65534

See more details on using hashes here.

File details

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

File metadata

  • Download URL: python_ort-0.9.3-py3-none-any.whl
  • Upload date:
  • Size: 90.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","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.9.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a690dc10c4e0f0612d12eea4503ccf601c9ed2c829ec5db4988242ad3c9f412c
MD5 7d10baa80af7412b47c47854a2e9b240
BLAKE2b-256 02c7eed547b72c9efd2388e116751ea58f97c372ef4c4595250bb81fbf025383

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