Core types and enums for ODS (Optikka Design System) - Python implementation
Project description
ods-types-py
Core types and enums for the ODS (Optikka Design System) renderer - Python implementation.
This is the Python equivalent of the @optikka/ods-types npm package, providing shared type definitions and enumerations used across ODS rendering services.
Installation
pip install ods-types-py
Usage
from ods_types import (
Kind,
TargetKind,
AspectMode,
ScaleMode,
Box,
Target,
)
# Use enums
kind = Kind.CANVAS
aspect = AspectMode.CONTAIN
# Use type definitions
box: Box = {"x": 0, "y": 0, "w": 100, "h": 100}
target: Target = {"kind": TargetKind.LAYER, "id": "layer-1"}
Package Contents
Enums
Kind- Canvas or layer typesTargetKind- Target reference types (canvas, layer, guide, self)AspectMode- Aspect ratio modes (contain, cover, fitWidth, fitHeight)ScaleMode- Scaling modes for images and layersAlignX,AlignY- Alignment optionsDropZoneMode- Drop zone fit modesStackDir,StackAlign- Stack layout optionsFadeKind,SlideKind- Animation typesEasing- Animation easing functions- And more...
Common Types
Box- Rectangular region with x, y, w, hTarget- Target reference with kind, id, and layerIdDrawImageParams- Canvas drawImage parameters
Development
# Install dev dependencies
pip install -e ".[dev]"
# Run tests
pytest
# Format code
black src/ tests/
# Lint
ruff check src/ tests/
License
PROPRIETARY - Optikka
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 ods_types_py-0.1.4.tar.gz.
File metadata
- Download URL: ods_types_py-0.1.4.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d9295272e77b05368ed0293f6506e1fe0b4d9d510348b17af157793920779ed
|
|
| MD5 |
67251cbdb8a63f8d511d152b3294a541
|
|
| BLAKE2b-256 |
cc78eae4b363c79adfa6e79a7cb9783926f8f0936c6cd8feb0ac75bc233dd878
|
Provenance
The following attestation bundles were made for ods_types_py-0.1.4.tar.gz:
Publisher:
python-publish.yml on OptikkaCorp/design-models-package
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ods_types_py-0.1.4.tar.gz -
Subject digest:
4d9295272e77b05368ed0293f6506e1fe0b4d9d510348b17af157793920779ed - Sigstore transparency entry: 810337222
- Sigstore integration time:
-
Permalink:
OptikkaCorp/design-models-package@9d19933fe764d5c39cafe3ea9c5a74160c592fd9 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/OptikkaCorp
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@9d19933fe764d5c39cafe3ea9c5a74160c592fd9 -
Trigger Event:
push
-
Statement type:
File details
Details for the file ods_types_py-0.1.4-py3-none-any.whl.
File metadata
- Download URL: ods_types_py-0.1.4-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33d7d27d005fba35472a0f04b24eac53f870b438be3686342d27d95f261afc4c
|
|
| MD5 |
73b0180bc7483bf4ff727d3b8a407975
|
|
| BLAKE2b-256 |
78fb3e8c9c693662598e360b7f209d1ed486c55c99e8f8575db6d8bbfc980e99
|
Provenance
The following attestation bundles were made for ods_types_py-0.1.4-py3-none-any.whl:
Publisher:
python-publish.yml on OptikkaCorp/design-models-package
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ods_types_py-0.1.4-py3-none-any.whl -
Subject digest:
33d7d27d005fba35472a0f04b24eac53f870b438be3686342d27d95f261afc4c - Sigstore transparency entry: 810337229
- Sigstore integration time:
-
Permalink:
OptikkaCorp/design-models-package@9d19933fe764d5c39cafe3ea9c5a74160c592fd9 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/OptikkaCorp
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@9d19933fe764d5c39cafe3ea9c5a74160c592fd9 -
Trigger Event:
push
-
Statement type: