Cosmos Xenna

raw JSON →
0.4.0 verified Fri May 01 auth: no python

A framework for building and running distributed, AI-powered data pipelines using Ray. As of version 0.4.0, it supports Python >=3.12. Early stage library with active development.

pip install cosmos-xenna
error ModuleNotFoundError: No module named 'cosmos'
cause Trying to import 'cosmos' instead of 'cosmos_xenna'.
fix
Use 'from cosmos_xenna import Pipeline' (note underscore).
error ModuleNotFoundError: No module named 'cosmos_xenna'
cause Package not installed or installed incorrectly.
fix
Run 'pip install cosmos-xenna' and ensure Python >=3.12.
gotcha The package name uses a hyphen 'cosmos-xenna', but the import path uses an underscore 'cosmos_xenna'. Trying 'import cosmos' or 'import cosmos_xenna' incorrectly will fail.
fix Use 'from cosmos_xenna import ...'
breaking Python 3.11 and below are not supported (requires >=3.12). Installing on older Python will fail or cause runtime errors.
fix Upgrade to Python 3.12 or later.

Creates a simple pipeline, adds a step, and runs it with input data.

from cosmos_xenna import Pipeline

pipeline = Pipeline("example")
pipeline.add_step(lambda x: x * 2)
result = pipeline.run([1, 2, 3])
print(result)