curifactory


Namecurifactory JSON
Version 0.16.1 PyPI version JSON
download
home_pagehttps://github.com/ORNL/curifactory
SummaryAn experiment workflow and organization tool
upload_time2023-10-23 21:03:32
maintainer
docs_urlNone
authorNathan Martindale, Jason Hite, Scott L. Stewart, Mark Adams
requires_python>=3.9
license
keywords research experiment workflow
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Curifactory

[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![PyPI version](https://badge.fury.io/py/curifactory.svg)](https://badge.fury.io/py/curifactory)
[![Conda Version](https://img.shields.io/conda/vn/conda-forge/curifactory.svg)](https://anaconda.org/conda-forge/curifactory)
[![status](https://joss.theoj.org/papers/e6ace365c4f632391a289ddea5bbfd1c/status.svg)](https://joss.theoj.org/papers/e6ace365c4f632391a289ddea5bbfd1c)
[![tests](https://github.com/ORNL/curifactory/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/ORNL/curifactory/actions/workflows/tests.yml)
[![Python versions](https://img.shields.io/pypi/pyversions/curifactory.svg)](https://github.com/ORNL/curifactory)
[![License](https://img.shields.io/pypi/l/curifactory)](https://github.com/ORNL/curifactory/blob/main/LICENSE)

Curifactory is a library and CLI tool designed to help organize and manage
research experiments in python.

![screenshot flow](https://raw.githubusercontent.com/ORNL/curifactory/main/sphinx/source/images/diagram.png)

Experiment management must fulfill several tasks, including experiment orchestration,
parameterization, caching, reproducibility, reporting, and parallelization.
Existing projects such as MLFlow, MetaFlow, Luigi, and Pachyderm
support these tasks in several different ways and to various degrees.
Curifactory provides a different opinion, with a heavier focus on supporting general
research experiment workflows for individuals or small teams working primarily
in python.

You can read more about these design principles in our paper in the [SciPy 2022
proceedings](https://conference.scipy.org/proceedings/scipy2022/nathan_martindale.html).

## Features

* Adds a CLI layer on top of your codebase, a single entrypoint for running experiments
* Automatic caching of intermediate data and lazy loading of stored objects
* Jupyter notebook output for further exploration of an experiment run
* Docker container output with copy of codebase, conda environment, full experiment run cache, and jupyter run notebook
* HTML report output from each run with graphviz-rendered diagram of experiment
* Easily report plots and values to HTML report
* Configuration files are python scripts, allowing programmatic definition, parameter composition, and parameter inheritance
* Output logs from every run
* Run experiments directly from CLI or other python code, notebooks, etc.


## Installation

```python
pip install curifactory
```

Graphviz is required for certain features and can be installed through conda
via:

```python
conda install python-graphviz
```

### Tab completion

For tab-completion in bash/zsh, install the `argcomplete` package (if using curifactory inside
a conda environment, you'll need to install this in your system python.)

```python
pip install argcomplete
```

To enable, you can either use argcomplete's global hook `activate-global-python-argcomplete`, which
will enable tab complete on all argcomplete-enabled python packages (e.g. pytest), or you can add
`eval "$(register-python-argcomplete experiment)"` to your shell's rc file. Curifactory can add
this line for you automatically with:

```bash
curifactory completion [--bash|--zsh]  # use the shell flag appropriate
```

Once enabled, the `experiment` command will provide tab complete for experiment names, parameter names, and flags.

## Requirements

**OS**: We primarily develop and test Curifactory on Linux, but it runs on Windows and MacOS as well.

**Python**: 3.9-3.11

**Optional**:

* Conda/Mamba
* Graphviz
* Docker
* Jupyter notebook/lab


## Documentation

The documentation for the latest version of Curifactory can be found at:
[https://ornl.github.io/curifactory/latest/index.html](https://ornl.github.io/curifactory/latest/index.html).


## Examples

Several small example can be found in the `examples` folder.
`examples/notebooks` includes walkthroughs demonstrating usage of curifactory
solely in Jupyter.


## Citation

Please see the following DOI if citing this project:
[10.11578/dc.20220208.1](https://doi.org/10.11578/dc.20220208.1)


## Similar Projects

Curifactory is one tool and one opinion among many, other projects that have similar goals and/or approaches:

* [Kedro](https://github.com/kedro-org/kedro)
* [Tango](https://github.com/allenai/tango)
* [Sacred](https://github.com/IDSIA/sacred)
* [MLFlow](https://github.com/mlflow/mlflow)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ORNL/curifactory",
    "name": "curifactory",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "",
    "keywords": "research,experiment,workflow",
    "author": "Nathan Martindale, Jason Hite, Scott L. Stewart, Mark Adams",
    "author_email": "curifactory-help@ornl.gov",
    "download_url": "https://files.pythonhosted.org/packages/13/a3/78042485cf38a70ab0116080f849b82c9d562efe22e899b75d105e14fa20/curifactory-0.16.1.tar.gz",
    "platform": null,
    "description": "# Curifactory\n\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n[![PyPI version](https://badge.fury.io/py/curifactory.svg)](https://badge.fury.io/py/curifactory)\n[![Conda Version](https://img.shields.io/conda/vn/conda-forge/curifactory.svg)](https://anaconda.org/conda-forge/curifactory)\n[![status](https://joss.theoj.org/papers/e6ace365c4f632391a289ddea5bbfd1c/status.svg)](https://joss.theoj.org/papers/e6ace365c4f632391a289ddea5bbfd1c)\n[![tests](https://github.com/ORNL/curifactory/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/ORNL/curifactory/actions/workflows/tests.yml)\n[![Python versions](https://img.shields.io/pypi/pyversions/curifactory.svg)](https://github.com/ORNL/curifactory)\n[![License](https://img.shields.io/pypi/l/curifactory)](https://github.com/ORNL/curifactory/blob/main/LICENSE)\n\nCurifactory is a library and CLI tool designed to help organize and manage\nresearch experiments in python.\n\n![screenshot flow](https://raw.githubusercontent.com/ORNL/curifactory/main/sphinx/source/images/diagram.png)\n\nExperiment management must fulfill several tasks, including experiment orchestration,\nparameterization, caching, reproducibility, reporting, and parallelization.\nExisting projects such as MLFlow, MetaFlow, Luigi, and Pachyderm\nsupport these tasks in several different ways and to various degrees.\nCurifactory provides a different opinion, with a heavier focus on supporting general\nresearch experiment workflows for individuals or small teams working primarily\nin python.\n\nYou can read more about these design principles in our paper in the [SciPy 2022\nproceedings](https://conference.scipy.org/proceedings/scipy2022/nathan_martindale.html).\n\n## Features\n\n* Adds a CLI layer on top of your codebase, a single entrypoint for running experiments\n* Automatic caching of intermediate data and lazy loading of stored objects\n* Jupyter notebook output for further exploration of an experiment run\n* Docker container output with copy of codebase, conda environment, full experiment run cache, and jupyter run notebook\n* HTML report output from each run with graphviz-rendered diagram of experiment\n* Easily report plots and values to HTML report\n* Configuration files are python scripts, allowing programmatic definition, parameter composition, and parameter inheritance\n* Output logs from every run\n* Run experiments directly from CLI or other python code, notebooks, etc.\n\n\n## Installation\n\n```python\npip install curifactory\n```\n\nGraphviz is required for certain features and can be installed through conda\nvia:\n\n```python\nconda install python-graphviz\n```\n\n### Tab completion\n\nFor tab-completion in bash/zsh, install the `argcomplete` package (if using curifactory inside\na conda environment, you'll need to install this in your system python.)\n\n```python\npip install argcomplete\n```\n\nTo enable, you can either use argcomplete's global hook `activate-global-python-argcomplete`, which\nwill enable tab complete on all argcomplete-enabled python packages (e.g. pytest), or you can add\n`eval \"$(register-python-argcomplete experiment)\"` to your shell's rc file. Curifactory can add\nthis line for you automatically with:\n\n```bash\ncurifactory completion [--bash|--zsh]  # use the shell flag appropriate\n```\n\nOnce enabled, the `experiment` command will provide tab complete for experiment names, parameter names, and flags.\n\n## Requirements\n\n**OS**: We primarily develop and test Curifactory on Linux, but it runs on Windows and MacOS as well.\n\n**Python**: 3.9-3.11\n\n**Optional**:\n\n* Conda/Mamba\n* Graphviz\n* Docker\n* Jupyter notebook/lab\n\n\n## Documentation\n\nThe documentation for the latest version of Curifactory can be found at:\n[https://ornl.github.io/curifactory/latest/index.html](https://ornl.github.io/curifactory/latest/index.html).\n\n\n## Examples\n\nSeveral small example can be found in the `examples` folder.\n`examples/notebooks` includes walkthroughs demonstrating usage of curifactory\nsolely in Jupyter.\n\n\n## Citation\n\nPlease see the following DOI if citing this project:\n[10.11578/dc.20220208.1](https://doi.org/10.11578/dc.20220208.1)\n\n\n## Similar Projects\n\nCurifactory is one tool and one opinion among many, other projects that have similar goals and/or approaches:\n\n* [Kedro](https://github.com/kedro-org/kedro)\n* [Tango](https://github.com/allenai/tango)\n* [Sacred](https://github.com/IDSIA/sacred)\n* [MLFlow](https://github.com/mlflow/mlflow)\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "An experiment workflow and organization tool",
    "version": "0.16.1",
    "project_urls": {
        "Documentation": "https://ornl.github.io/curifactory/latest/index.html",
        "Homepage": "https://github.com/ORNL/curifactory"
    },
    "split_keywords": [
        "research",
        "experiment",
        "workflow"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e3c70fdc79a506d15f86d2cb2bde3989e694224ac311f0f222eafe2db0417b5c",
                "md5": "cc4b6f87c00fe01cf4525ce307a0b90d",
                "sha256": "2ebfd185083ec07fd1301f7ae514a9adf41c1a5115aea2fb5194ce4a46260b5a"
            },
            "downloads": -1,
            "filename": "curifactory-0.16.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "cc4b6f87c00fe01cf4525ce307a0b90d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 94104,
            "upload_time": "2023-10-23T21:03:31",
            "upload_time_iso_8601": "2023-10-23T21:03:31.100073Z",
            "url": "https://files.pythonhosted.org/packages/e3/c7/0fdc79a506d15f86d2cb2bde3989e694224ac311f0f222eafe2db0417b5c/curifactory-0.16.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "13a378042485cf38a70ab0116080f849b82c9d562efe22e899b75d105e14fa20",
                "md5": "6c9e253dbbb3cc1b047d8d04daf079bd",
                "sha256": "9c0961d331c4a44ca288fe0ac172f492a001ca888b7fc1dd91987cf54989bc79"
            },
            "downloads": -1,
            "filename": "curifactory-0.16.1.tar.gz",
            "has_sig": false,
            "md5_digest": "6c9e253dbbb3cc1b047d8d04daf079bd",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 116225,
            "upload_time": "2023-10-23T21:03:32",
            "upload_time_iso_8601": "2023-10-23T21:03:32.472384Z",
            "url": "https://files.pythonhosted.org/packages/13/a3/78042485cf38a70ab0116080f849b82c9d562efe22e899b75d105e14fa20/curifactory-0.16.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-23 21:03:32",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ORNL",
    "github_project": "curifactory",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "curifactory"
}
        
Elapsed time: 0.12624s