Skip to main content

conda-project

GitHub Release Date GitHub Release

PyPI PyPI - Downloads

Conda-Forge Conda Downloads

Docs

GitHub Actions Workflow Status Codecov pre-commit.ci status

Tool for encapsulating, running, and reproducing projects with conda environments.

Why?

Sharing your work is more than sharing your code in a script file or notebook. To make your work properly reproducible, it is necessary to include the list of required third-party dependencies, specifications for how to run your code, and any other files that it may need.

See 8 Levels of Reproduciblity for an in-depth discussion of the differences between "It works for me." to "I've made sure that anyone can reliably execute my work." Conda Project is a framework that aims to help you to ensure a high degree of reproducibility in the projects you create.

How is this different from Anaconda Project?

This package is intended as a successor to Anaconda Project. We chose to create Conda Project to foster community involvement, adopt newer standards like conda-lock, and provide a conda-native workflow. A standalone conversion script is provided in this repo at scripts/ap-to-cp.py. You can run it as follows. By default it will write Conda Project files into your current working directory. You can read anaconda-project.yml file from any other directory or output Conda Project files to any other directory.

You'll need pydantic and ruamel.yaml installed.

python ap-to-cp.py /path/to/anaconda-project.yml [/output/directory]

Installation

You can install conda-project using the conda package manager:

conda install -c conda-forge conda-project

Quick start

Let's start a new project using Python, Pandas, and Jupyter Notebooks. The commands below will work on terminals in Mac, Linux, and Windows. For Windows you can use either cmd.exe or Powershell.

We first create a directory and initialize a new project, which will create a new conda environment and lock the dependencies:

(base) > conda project init --directory my-project python=3.9 notebook pandas
Locking dependencies for environment default on platforms osx-64, osx-arm64, linux-64, win-64: done
Project created at /Users/adefusco/Development/conda-incubator/conda-project/examples/my-project

The goal of Conda Project is to maintain a conda enviroment specifically for the new my-project directory. You'll see that this directory contains it's own environment.yml file a Conda Lock file and a conda-project.yml file. You can learn more about these files in the User Guide

(base) > tree ./
├── conda-project.yml
├── default.conda-lock.yml
├── environment.yml

You can activate the environment, which will install packages locally to this project according to the lock file. Notice that after running conda project activate the shell prompt switches to (default), which is the name of the local environment for this project.

(base) > cd my-project
(base) > conda project activate

Downloading and Extracting Packages


Downloading and Extracting Packages

Preparing transaction: done
Verifying transaction: done
Executing transaction: done
environment created at /Users/adefusco/Development/conda-incubator/conda-project/examples/my-project/envs/default
## Project environment default activated in a new shell.
## Exit this shell to de-activate.

And in the activated environment you can launch editors or run commands. For example, since we included the notebook package we can launch Jupyter Notebook from the activated environment:

(default) > jupyter notebook
[I 12:23:03.632 NotebookApp] Serving notebooks from local directory: /Users/adefusco/Development/conda-incubator/conda-project/examples/my-project
[I 12:23:03.632 NotebookApp] Jupyter Notebook 6.5.2 is running at:
[I 12:23:03.632 NotebookApp] http://localhost:8888/?token=1208a3441039526c03b44c233f07436321ad4fd3cced443d
[I 12:23:03.632 NotebookApp]  or http://127.0.0.1:8888/?token=1208a3441039526c03b44c233f07436321ad4fd3cced443d
[I 12:23:03.632 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 12:23:03.635 NotebookApp]

Continue reading the User Guide to learn more.

Metadata

Release files for conda-project 0.5.4

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

Source distribution (sdist)

Source distribution for conda-project 0.5.4
File Size Uploaded
conda_project-0.5.4.tar.gz 25.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for conda-project 0.5.4
File Interpreter ABI Platform
conda_project-0.5.4-py3-none-any.whl Python 3 none any Details

Total release size: 55.5 kB

Release files / conda_project-0.5.4.tar.gz

Download URL conda_project-0.5.4.tar.gz
Size 25.7 kB
Tags Source
SHA-256 checksum
How to use checksums
787474eb84547cacf51b854bfc5c5fe079f38c77a4e24f33432fbce2b5cf0bd5
BLAKE2b-256 checksum
How to use checksums
816bf0cd6fa9d20d0a4996ea9462eeb7ca7da5544ea87d6ec922eb497a4cf296
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 12, 2025.

Transparency log

Release files / conda_project-0.5.4-py3-none-any.whl

Download URL conda_project-0.5.4-py3-none-any.whl
Size 29.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
870eb6b6d13e06a7dde40655e0248955a661ca11129713306c6c53839ce008a6
BLAKE2b-256 checksum
How to use checksums
7e42b13aef6587de2072878879f4eab9922226be46f90f595c4f8bfe1f32e0bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 12, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.5.4 This release

2 release files

0.5.0

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.2.1

1 release file

0.2.0

1 release file

0.1.1

1 release file

0.1.0

1 release file

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