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.9.2.tar.gz
(40.0 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.9.2.tar.gz.
File metadata
- Download URL: python_ort-0.9.2.tar.gz
- Upload date:
- Size: 40.0 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
996acec1a8c698378a0439b2c443f1f351624d22e7a19d37f005a3be7230b3ea
|
|
| MD5 |
eee02151f3fc34e0a08a802be08052f6
|
|
| BLAKE2b-256 |
24caf49e7affe4bcd83ccd21620df9aeaf4eb892681b2468dd52f507e61b2181
|
File details
Details for the file python_ort-0.9.2-py3-none-any.whl.
File metadata
- Download URL: python_ort-0.9.2-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08c6bde1bc5bea74cf4a58a95d787598c013a38cc2ec95af8e304733a385ec99
|
|
| MD5 |
712428f24631e0a5c7c6420f453a536c
|
|
| BLAKE2b-256 |
48040ffeaeeacae445d5c8b8c8ae987c4d01f7489b5aa8d220c218523b6566c0
|