Skip to main content

Composable Configuration Flow

Project description

ccflow

Build Status GitHub issues PyPI Version License

ccflow 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.0.1.tar.gz (149.6 kB view details)

Uploaded Source

Built Distribution

ccflow-0.0.1-py3-none-any.whl (178.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ccflow-0.0.1.tar.gz
  • Upload date:
  • Size: 149.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.10

File hashes

Hashes for ccflow-0.0.1.tar.gz
Algorithm Hash digest
SHA256 b7f5af5c0897bf09df15969aa8535ea0af718818fd8fdfc1a2893803a5871dfe
MD5 65fc1dde5b701227f50f445fa80e1cb9
BLAKE2b-256 1b9f3a24c469895c0967fa9168d07a7b412a14007cf226e7b5563182b1c70333

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ccflow-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 178.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.10

File hashes

Hashes for ccflow-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fc868cae2f89b729744d00049bab563c8d11ccc6601bbabeb3f27a9081c9158b
MD5 1583326d4f721eae054b5ff8b34fcd64
BLAKE2b-256 b4bff30dd51ea14de392ee5c62944cc6074ed60de6831c27c2249ce9c165e6d0

See more details on using hashes here.

Supported by

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