cookiecutter-data-science
A logical, reasonably standardized, but flexible project structure for doing and sharing data science work.
File Explorer
- release.yml
- tests.yml
- __init__.py
- custom_config.py
- dependencies.py
- __init__.py
- __main__.py
- monkey_patch.py
- extra.css
- extra.js
- all-options.md
- ccds.png
- contributing.md
- favicon.ico
- index.md
- logo.svg
- opinions.md
- related.md
- using-the-template.md
- v1.md
- why.md
- nav.html
- main.html
- configuration-table.py
- generate-termynal.py
- mkdocs.yml
- README.md
- post_gen_project.py
- pre_prompt.py
- conda_harness.sh
- conftest.py
- pipenv_harness.sh
- pixi_harness.sh
- poetry_harness.sh
- test_creation.py
- test_functions.sh
- uv_harness.sh
- virtualenv_harness.sh
- .gitkeep
- .gitkeep
- .gitkeep
- .gitkeep
- getting-started.md
- index.md
- mkdocs.yml
- README.md
- .gitkeep
- .gitkeep
- .gitkeep
- .gitkeep
- .gitkeep
- .gitkeep
- test_data.py
- test_data.py
- __init__.py
- predict.py
- train.py
- __init__.py
- config.py
- dataset.py
- features.py
- plots.py
- .env
- .gitignore
- LICENSE
- Makefile
- pyproject.toml
- README.md
- setup.cfg
- .gitattributes
- .gitignore
- ccds-help.json
- ccds.json
- cookiecutter.json
- dev-requirements.txt
- HISTORY.md
- LICENSE
- Makefile
- pyproject.toml
- README.md
- RELEASING.md
- setup.cfg
# Installation Guide
pythonSetup Steps
pipx install cookiecutter-data-science
Install cookiecutter-data-science using pipx.
ccds
Create a new data science project.
Key Commands
pipx install cookiecutter-data-science
Install the CCDS package globally on the system.
ccds
Initialize a new data science project template.
ccds -c master
Create a project using a specific branch or version of the template.
pytest tests
Run the project tests.
# Use via CDN
jsDelivrjsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.
Command Glossary
Commands referenced in this DOCs, explained below.
pip freeze
View Details ▼
pip freeze
List installed packages in requirements format.
pip freeze
List installed packages:
pip freeze > requirements.txt
Write installed packages to the `requirements.txt` file:
pip freeze {{[-l|--local]}}
List installed packages in a virtual environment, excluding globally installed packages:
pip install
View Details ▼
pip install
Install Python packages.
pip install {{package1 package2 ...}}
Install one or more packages:
pip install {{package1 package2 ...}} {{[-U|--upgrade]}}
Upgrade all specified packages to the latest version, installing any that are not already present:
pip install {{package}}=={{version}}
Install a specific version of a package:
pipx
View Details ▼
pipx
Install and run Python applications in isolated environments.
pipx run {{pycowsay}} {{moo}}
Run an app in a temporary virtual environment:
pipx install {{package}}
Install a package in a virtual environment and add entry points to path:
pipx uninstall {{package}}
Uninstall a package:
pytest
View Details ▼
pytest
Run Python tests.
pytest {{path/to/test_file1.py path/to/test_file2.py ...}}
Run tests from specific files:
pytest -k {{expression}}
Run tests with names matching a specific [k]eyword expression:
pytest {{[-x|--exitfirst]}}
Exit as soon as a test fails or encounters an error:
