Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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.9.2b1

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.9.2b1
File Size Uploaded
cineon_format-3.9.2b1.tar.gz 293.9 kB Details

Built distribution (wheel)

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

Total release size: 313.4 kB

Release files / cineon_format-3.9.2b1.tar.gz

Download URL cineon_format-3.9.2b1.tar.gz
Size 293.9 kB
Tags Source
SHA-256 checksum
How to use checksums
90bcd679d3cfd5ece148b0091c874bf5246e43b3c398dde5236411bb0ea88565
BLAKE2b-256 checksum
How to use checksums
17aa725fda9e26011109913c4a83dbe09e83516490b5dc06656e3730769ee4c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.15 {"installer":{"name":"uv","version":"0.12.15","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.9.2b1-py3-none-any.whl

Download URL cineon_format-3.9.2b1-py3-none-any.whl
Size 19.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1849f94ac6307ed16548c7cead9541b77da20d34cae1e377af9c3c91d848a01d
BLAKE2b-256 checksum
How to use checksums
ed76b7cec6f52a7857c780dae0b8efdc82de22f7a7d2189dac35ce25e648fc1a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.15 {"installer":{"name":"uv","version":"0.12.15","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 history Release notifications | RSS feed

3.9.2

2 release files

This release

3.9.2b1 This release

2 release files

3.9.0

2 release files

3.8.0

2 release files

3.7.0

2 release files

3.6.0

2 release files

3.5.2

2 release files

3.5.0

2 release files

3.4.2

2 release files

3.4.1

2 release files

3.2.0

2 release files

3.1.0

2 release files

3.0.7

2 release files

3.0.1

2 release files

3.0.0

2 release files

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