Skip to main content

Cineon Format

Latest Release Coverage Status Code complexity

This package contains a definition of a common data format to be used across Cineon repositories.

The CineonData format is a class that inherits from pydantic's BaseModel class, and as such the data validation is performed on class instantiation. If the data being ingested has a problem then class instantiation will fail. Simple. This is useful because downstream processing tasks can make valid assumptions about the data and therefore do not have to perform any explicit checks. This means that lots of downstream data-validation code can be deleted.

Prerequisites

To use the example script in the package you need to install uv, but you do not need uv in order to use the package in other Python code.

Usage

Add the cineon_format package into your project, with either:

poetry add git+https://github.com/cineon-ai/cineon_format.git
uv add git+https://github.com/cineon-ai/cineon_format.git

Then:

from cineon_format import CineonData

# Load from CSV
cineon_data = CineonData.from_csv("path/to/csv")

# Alternatively, load from JSON
cineon_data = CineonData.from_json("path/to/json")

Examples

Running the example script with either:

uv run scripts/example.py --csv=data/good.csv
uv run scripts/example.py --json=data/good.json

will load a file, convert that file into the CineonData format and then spit out a dictionary representation and a DataFrame representation to the terminal.

If you run the script with either:

uv run scripts/example.py --csv=data/bad.csv
uv run scripts/example.py --json=data/bad.json

you can see examples of data that does not conform to the format, and therefore errors out with helpful error messages printed to the terminal.

"Random" CineonData can be generated via the script:

uv run scripts/generate.py

This will print a summary of the CineonData to the terminal.

Metadata

Release files for cineon-format 3.11.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cineon-format 3.11.0
File Size Uploaded Provenance Actions
cineon_format-3.11.0.tar.gz 293.9 kB Without provenance Details for cineon_format-3.11.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cineon-format 3.11.0
File Interpreter ABI Platform Actions
cineon_format-3.11.0-py3-none-any.whl Python 3 none any Details for cineon_format-3.11.0-py3-none-any.whl

Total release size: 313.9 kB

Release files / cineon_format-3.11.0.tar.gz

Download URL cineon_format-3.11.0.tar.gz
Size 293.9 kB
Tags Source
SHA-256 checksum
How to use checksums
96c46c602fdf54013771bf0ddc7b5cbad32a12f62a5b036effe1244d9ae2b389
BLAKE2b-256 checksum
How to use checksums
6cd158a82cdf7b2bc754cec72f91403bd9fc6cff1089f9777f19cfe0d6ee09fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.3 {"installer":{"name":"uv","version":"0.13.3","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}

Release files / cineon_format-3.11.0-py3-none-any.whl

Download URL cineon_format-3.11.0-py3-none-any.whl
Size 20.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
996a275b3d86d9be65e5d94abb46cec738b5d6a6a73eba20474dce319882067d
BLAKE2b-256 checksum
How to use checksums
80535c718e720ec7fffbcf61f77b421bd90284bc6307df64eae8717b97a6c77f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.3 {"installer":{"name":"uv","version":"0.13.3","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}

Security for cineon-format 3.11.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page