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
Release history Release notifications | RSS feed
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.4.tar.gz
(38.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python_ort-0.8.4.tar.gz.
File metadata
- Download URL: python_ort-0.8.4.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a28e5df89df0b4512518bd52061e17b8d9cd20019a7a16e66f53e12bef7c53c9
|
|
| MD5 |
9c3691cd91900098155b180c2bb7540f
|
|
| BLAKE2b-256 |
2a61b2f0245b2e615a2c12e09f31804c6f42d45b0ed505139c3f400a04c96868
|
File details
Details for the file python_ort-0.8.4-py3-none-any.whl.
File metadata
- Download URL: python_ort-0.8.4-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a428ff69bddb33d7a93369aab0f663669e7cce3146dd6a95ecadd5bbf2061d2c
|
|
| MD5 |
af0701bbdc59c176fb3e1a66fdee67e4
|
|
| BLAKE2b-256 |
d4f3b13d3991acf9b52a4139a5b85f2a6bb3779763ccf2a2b9fcfa15ed898cd1
|