Skip to main content

ccflow is a collection of tools for workflow configuration, orchestration, and dependency injection

Project description

ccflow logo, 'ccflow' with letters in color

Build Status codecov GitHub issues License PyPI Version

ccflow (Composable Configuration Flow) is a collection of tools for workflow configuration, orchestration, and dependency injection. It is intended to be flexible enough to handle diverse use cases, including data retrieval, validation, transformation, and loading (i.e. ETL workflows), model training, microservice configuration, and automated report generation.

The framework provides:

  • a way to manage hierarchical, strongly typed configurations and the relationships between them through composition
  • a way to associate user-defined functions with configurations, and in doing so, to define and name configurable workflow graphs
  • a way to manage dependency injection and inversion of control for objects in these graphs
  • flexibility in how to interact with configurations and workflows, including files/command line, native python/Jupyter notebook, Airflow/job scheduler, REST API, etc (in progress)

It heavily leverages pydantic, and users are expected to implement their own configuration and workflow building blocks by implementing pydantic models.

It also integrates closely with hydra for file-based configuration and command line interaction, but can also be used natively from Python without it.

This library was partially inspired by this blog post by Suneeta Mall (@suneeta-mall). We have taken these ideas a step further by introducing the concept of the ModelRegistry, which allows for the configs to be managed without hydra, and also allows us to implement dependency injection.

We aim to provide additional (and optional) tools for workflow orchestration on top of the configuration framework.

More information is available in our wiki

Installation

ccflow can be installed via pip or conda, the two primary package managers for the Python ecosystem.

To install ccflow via pip, run this command in your terminal:

pip install ccflow

To install ccflow via conda, run this command in your terminal:

conda install ccflow -c conda-forge

Community

  • Contribute to ccflow and help improve the project

License

This software is licensed under the Apache 2.0 license. See the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ccflow-0.8.5.tar.gz (273.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ccflow-0.8.5-py3-none-any.whl (334.5 kB view details)

Uploaded Python 3

File details

Details for the file ccflow-0.8.5.tar.gz.

File metadata

  • Download URL: ccflow-0.8.5.tar.gz
  • Upload date:
  • Size: 273.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for ccflow-0.8.5.tar.gz
Algorithm Hash digest
SHA256 da632ef7c9078edda27287935ab25b4718ea946645a2d026a0f752d4d842be1c
MD5 aee6127ba0c25dac22f0c6ad5fe9cd36
BLAKE2b-256 64d1107f993c73feeb94ef597382846658093eb9eec06d7038fc2571ac5c5619

See more details on using hashes here.

File details

Details for the file ccflow-0.8.5-py3-none-any.whl.

File metadata

  • Download URL: ccflow-0.8.5-py3-none-any.whl
  • Upload date:
  • Size: 334.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for ccflow-0.8.5-py3-none-any.whl
Algorithm Hash digest
SHA256 1b23dfd77042796c3d247f7275a8bed194e13d4368b838a9be8936e848f49282
MD5 1a0a5d8b92bc427c6c491ae239523e5e
BLAKE2b-256 22e254b75e48c1f6c68b2de12b1a04a51a840f3306833f77ecfee9379206c5de

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page