Annotell OpenLABEL Datamodel
Project description
Annotell OpenLABEL
Installation
Install the Annotell OpenLABEL package from pip with
pip install annotell-openlabel
Serialization and deserialization
Since all models inherit from pydantic's BaseModel, serialization and deserialization from dicts or json strings are relatively straight forward.
data = {
"openlabel": {
"metadata": {
"schema_version": "1.0.0"
}
}
}
import annotell.openlabel.models as OLM
# Deserialize dict
openlabel_annotation = OLM.OpenLabelAnnotation.parse_obj(data)
# Serialize to json
json_data = openlabel_annotation.json(exclude_none=True)
# Deserialize json
openlabel_annotation = OLM.OpenLabelAnnotation.parse_raw(json_data)
# Serialize to dict
dict_data = openlabel_annotation.dict(exclude_none=True)
Further reading
https://www.asam.net/project-detail/asam-openlabel-v100/
Changelog
[0.1.0] - 2021-11-18
- Updated json schema and model to be true to the 1.0.0 release of openlabel. Previously it was based on the release-candidate
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
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 annotell-openlabel-0.1.0.tar.gz.
File metadata
- Download URL: annotell-openlabel-0.1.0.tar.gz
- Upload date:
- Size: 12.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de0dbbb188644b2bf2503efb21efa87b4fca5a691e0d2a812267321af2550992
|
|
| MD5 |
0bd8aed0ab116846dd4935ca7219ce88
|
|
| BLAKE2b-256 |
f0d2c19ffd202636ca258aeae13411433d481172576ed8a5c500e059fd30d49a
|
File details
Details for the file annotell_openlabel-0.1.0-py2.py3-none-any.whl.
File metadata
- Download URL: annotell_openlabel-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 30.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50a830bf29d6ffdef97f87c444175d0a415df01b90bfd594fd97c6342d847971
|
|
| MD5 |
bb73464af0e5ee1cfa0bbf8bd89139e8
|
|
| BLAKE2b-256 |
fd329185254c40fd5dad3030763ef94fc4c2f169c494ced68bb532e2da73dc82
|