Skip to main content

pixtreme-transport-sequence

pixtreme.transport.sequence reads and writes numbered image sequences through pixtreme's format-specific Readers and Writers. Its SequenceEntrance and SequenceExit factories create pixtreme.transport sessions with the module name sequence, using buffers owned by the caller. Input preserves the source colour and alpha; output performs only image conversions explicitly allowed by the caller through pixtreme.

Installation and requirements

Install from PyPI:

python -m pip install pixtreme-transport-sequence

The release platforms are Linux x86_64 (glibc 2.28 or later) and native Windows x86_64. Install a wheel for your platform from the selected release; a platform is available only when that release provides its wheel. The supported Python versions are standard CPython 3.12 and 3.13; wheels use the CPython 3.12 stable ABI. Image I/O uses an NVIDIA GPU and requires the CUDA-compatible driver specified by the installed pixtreme release.

The only direct runtime dependencies are pixtreme>=2.31.1 and pixtreme-transport>=0.53.0. Python installation resolves these packages and their own dependencies. Image formats are those supported by the installed pixtreme Readers and Writers, selected by the filename extension.

Python sessions

Create input and output sessions through sequence:

from fractions import Fraction

from pixtreme.transport import sequence
from pixtreme.transport.session import ExitSettings, FrameBuffer, Pacing

device = 0  # Ordinal after CUDA_VISIBLE_DEVICES filtering.
input_buffer = FrameBuffer(2, mode="blocking")
source = sequence.SequenceEntrance(
    device,
    input_buffer,
    {
        "path": "input/frame_%04d.exr",
        "sequence.frame_rate": "24000/1001",
        "sequence.start_frame": "1",
    },
)

output_buffer = FrameBuffer(2, mode="blocking")
settings = ExitSettings(Fraction(1001, 24000))  # Frame period, in seconds.
settings.pacing = Pacing.NONE
settings.audio.enabled = False
target = sequence.SequenceExit(
    device,
    output_buffer,
    settings,
    {"path": "output/frame_%04d.exr", "sequence.start_frame": "1"},
)

Creation returns unopened sessions. Call source.open(), read with source.next() until it returns None, and close the source in a finally block. Each returned item's frame contains the image and timing. To write, put the processed transport frames into output_buffer, open the target, close the buffer after the last frame, and call target.join() to wait for all writes. Close the target in a finally block. Run the producer and consumer concurrently when filling a blocking buffer beyond its capacity. Create the output directory before opening the target.

Input reads in display order as quickly as its blocking buffer accepts images. It does not pace reads by the OS clock or attach receipt timestamps. For a file pipeline, Pacing.NONE and FIFO selection write every accepted image once and wait while the output buffer is empty and open. Closing and draining the buffer finishes output. Pacing.CORE_CLOCK with FIFO selection is also accepted; it writes the images and repeats supplied by the core at its output cadence.

Sequence options

Options are strings, supplied as a mapping or an iterable of name/value pairs.

Option Input Output
path Required image filename pattern Required image filename pattern
sequence.frame_rate Required positive rational, such as 24000/1001 Not accepted; use the core output frame period
sequence.start_frame Optional decimal integer; otherwise find the first existing file among numbers 0–4 Optional decimal integer; default 1

A path must contain exactly one printf-style %0Nd number field, with N >= 1: frame_%04d.exr produces names such as frame_0001.exr. Use %% for a literal percent sign. Glob patterns, ####, explicit filename lists and sequence seek are not supported.

Input advances through consecutive numbers and ends at the first missing file. A missing first image or an existing unreadable or undecodable image is an error. Output numbers each received image consecutively from its start number. Sequence input supplies images without audio, motion vectors or residuals; output rejects enabled audio before writing an image. Unknown, duplicate, missing or inapplicable settings fail with the setting name and reason.

C and C++ SDK

Download the SDK archive for your platform and version, together with SHA256SUMS, from the GitHub Releases. Verify the archive's SHA256 before extracting it. The SDK provides the same module library as the wheel, public headers, CMake package files and licenses. Obtain compatible shared SDKs for pixtreme and pixtreme-transport separately; their libraries are supplied by those distributions.

Point CMake's pixtreme_DIR, pixtreme_transport_DIR and pixtreme_transport_sequence_DIR to the extracted SDKs' pixtreme/core/cmake, pixtreme/transport/cmake and pixtreme/transport/sequence/cmake directories, respectively. C and C++ consumers can link the module through its imported CMake target:

find_package(pixtreme_transport_sequence CONFIG REQUIRED)
target_link_libraries(application PRIVATE pixtreme::transport_sequence)

C++ consumers use C++20. For creation by name, install the SDK trees under one common prefix so the core can locate pixtreme/transport/sequence/lib/ on Linux or pixtreme/transport/sequence/bin/ on Windows. Configure the platform's shared library search paths for the dependencies and keep one copy of each shared library per process.

Use pixtreme_transport_module_create_entrance and pixtreme_transport_module_create_exit from <pixtreme/transport/c/module.h> in C, or pixtreme::transport::module::create_entrance and create_exit from <pixtreme/transport/module.h> in C++, passing the module name sequence. Supply the device, caller-owned blocking buffer, output settings where needed, and the same sequence options shown above. Check the core ABI before using its operations, open each returned session to begin I/O, and close sessions before releasing their owned handles.

License and third-party notices

The sequence module is licensed under the MIT License. The Python binding incorporates nanobind (BSD-3-Clause) and robin-map (MIT). Their copyright notices and license texts are in nanobind.txt and robin_map.txt; third-party.json records their versions, source checksums and build descriptions. These files are included in the wheel's license directory; the License-File fields in its metadata give the relative paths. The SDK includes the module license and the provenance record in its license materials. It supplies the native module without the Python binding or its embedded third-party implementations. The separately installed pixtreme and pixtreme-transport dependencies carry their own licenses and notices.

Metadata

Release files for pixtreme-transport-sequence 0.1.0

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

Built distributions (wheels)

Table of built distributions (wheels) for pixtreme-transport-sequence 0.1.0
File Interpreter ABI Platform Actions
pixtreme_transport_sequence-0.1.0-cp312-abi3-win_amd64.whl CPython 3.12 abi3 Windows x86-64 Details for pixtreme_transport_sequence-0.1.0-cp312-abi3-win_amd64.whl
pixtreme_transport_sequence-0.1.0-cp312-abi3-manylinux_2_28_x86_64.whl CPython 3.12 abi3 Linux glibc 2.28+ x86-64 Details for pixtreme_transport_sequence-0.1.0-cp312-abi3-manylinux_2_28_x86_64.whl

Total release size: 449.5 kB

Release files / pixtreme_transport_sequence-0.1.0-cp312-abi3-win_amd64.whl

Download URL pixtreme_transport_sequence-0.1.0-cp312-abi3-win_amd64.whl
Size 189.0 kB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
d1e5b897c3d496f3fffb7080e9284cdff24dac36508d2ad01c496f7e5ecd300b
BLAKE2b-256 checksum
How to use checksums
f8f9fccb7660d1d8b9c40403417c3d7225a2f981010506625997ac69df46ae4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","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":null}

Release files / pixtreme_transport_sequence-0.1.0-cp312-abi3-manylinux_2_28_x86_64.whl

Download URL pixtreme_transport_sequence-0.1.0-cp312-abi3-manylinux_2_28_x86_64.whl
Size 260.5 kB
Tags CPython 3.12 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
a9a3620b110545e270ac2bfefcdf4428fc6c92cc8b245509ec901f68e601b730
BLAKE2b-256 checksum
How to use checksums
0e776b3f69c1deeb73b4dddab28086a6925b5b07065393d448534b913f463efb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","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":null}

Security for pixtreme-transport-sequence 0.1.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.

Release history Release notifications | RSS feed

This release

0.1.0 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