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.6.tar.gz
(38.7 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.6.tar.gz.
File metadata
- Download URL: python_ort-0.8.6.tar.gz
- Upload date:
- Size: 38.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","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 |
10cdfa49094da91df43f1c735926b9dc16a62409b18f34266f8a2f536db7ba1b
|
|
| MD5 |
899e3ff3bbc7b512552f96cb9dbf5e90
|
|
| BLAKE2b-256 |
22337195846283071a9e47ec17e1e7a8f5b5b27d2ab24ba5aa3d545cc0600662
|
File details
Details for the file python_ort-0.8.6-py3-none-any.whl.
File metadata
- Download URL: python_ort-0.8.6-py3-none-any.whl
- Upload date:
- Size: 86.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","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 |
6b1511345afa1820395af3c02bf35f60599d506902dcf8cee9861485e12f8e94
|
|
| MD5 |
fdb4d7a3e79de675d48364bff424fb0e
|
|
| BLAKE2b-256 |
440af0c30b97acd67d4fc2bf0ee229a85590738f2a200e0bd978bc2ad04a1c7f
|