Skip to main content

A Python library for reading, manipulating, and writing Color Exchange Format (CxF) files.

About

Colour CxF provides tools for working with CxF files, which are XML-based files used for exchanging color information between different applications and devices. The library allows you to:

  • Read CxF files from strings or files

  • Access and manipulate color data in various formats (RGB, CIELab, spectral)

  • Create CxF objects programmatically

  • Write CxF objects to XML strings

Installation

Primary Dependencies

Colour - CxF requires some dependencies in order to run:

Pypi

Once the dependencies are satisfied, Colour - CxF can be installed from the Python Package Index by issuing this command in a shell:

pip install --user colour-cxf

The overall development dependencies are installed as follows:

pip install --user 'colour-cxf[development]'

UV

Using uv you can simply install Colour - CxF via:

uv add colour-cxf

Quick Start

import colour_cxf

# Reading from a string
xml_string = """<?xml version="1.0" encoding="UTF-8"?>
<cc:CxF xmlns:cc="http://colorexchangeformat.com/CxF3-core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <cc:FileInformation>
        <cc:Creator>Colour Developers</cc:Creator>
        <cc:Description>Simple CxF Example</cc:Description>
    </cc:FileInformation>
</cc:CxF>"""

# Parse the XML string
cxf = colour_cxf.read_cxf(xml_string.encode("utf-8"))

# Access file information
print(f"Creator: {cxf.file_information.creator}")
print(f"Description: {cxf.file_information.description}")

Documentation

For more detailed information and examples, see the tutorial.

License

Colour CxF is licensed under the BSD-3-Clause license.

Metadata

Release files for colour-cxf 0.1.1

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

Source distribution (sdist)

Source distribution for colour-cxf 0.1.1
File Size Uploaded Provenance
colour_cxf-0.1.1.tar.gz 171.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for colour-cxf 0.1.1
File Interpreter ABI Platform
colour_cxf-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 280.5 kB

Release files / colour_cxf-0.1.1.tar.gz

Download URL colour_cxf-0.1.1.tar.gz
Size 171.9 kB
Tags Source
SHA-256 checksum
How to use checksums
bb413ad9b7d15a5d1105193bb821c0f07a3d4e8a045a58223610eedef67fe1e3
BLAKE2b-256 checksum
How to use checksums
ff4c45892ef0d85e2837cd9e305727417ae9759fd105e9ba9c5550c59d4428d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release files / colour_cxf-0.1.1-py3-none-any.whl

Download URL colour_cxf-0.1.1-py3-none-any.whl
Size 108.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e6ae6d9e5c31c41a6c623ed7b7ab1bfa1475523c002836b339978cce3afd5aa9
BLAKE2b-256 checksum
How to use checksums
13a3abfa7237c8a09ae584f235624f4d4c8d2f0c14a16953a1763c9e6e10f756
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Security for colour-cxf 0.1.1

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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