cookiecutter-data-science
데이터 과학 업무를 수행하고 공유하기 위한, 논리적이고 합리적으로 표준화되었으며 유연한 프로젝트 구조.
파일 탐색기
- 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
# 설치 가이드
python설치 및 실행 절차
pipx install cookiecutter-data-science
pipx를 이용하여 cookiecutter-data-science를 설치합니다.
ccds
새로운 데이터 사이언스 프로젝트를 생성합니다.
핵심 명령어
pipx install cookiecutter-data-science
CCDS 패키지를 시스템에 전역으로 설치합니다.
ccds
새로운 데이터 과학 프로젝트 템플릿을 초기화합니다.
ccds -c master
특정 브랜치 또는 버전의 프로젝트 템플릿을 사용하여 생성합니다.
pytest tests
프로젝트의 테스트를 실행합니다.
# CDN으로 사용하기
jsDelivrjsDelivr는 공개 GitHub 리포지토리를 별도 설정 없이 CDN으로 즉시 서빙합니다. 버전과 파일을 고르면 웹페이지에 바로 붙일 수 있는 링크와 예시 코드가 만들어집니다.
명령어 용어집
이 문서에서 사용된 명령어를 모아봤습니다. 낯선 명령어가 있다면 펼쳐서 확인해보세요.
pip freeze
설명 보기 ▼
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
설명 보기 ▼
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
설명 보기 ▼
pipx
Python 애플리케이션을 격리된 환경에서 설치하고 실행.
더 많은 정보: <https://manned.org/pipx>.
pipx run {{pycowsay}} {{moo}}
임시 가상 환경에서 앱 실행:
pipx install {{package}}
가상 환경에 패키지 설치 및 진입점을 경로에 추가:
pipx uninstall {{package}}
설치된 패키지 나열:
pytest
설명 보기 ▼
pytest
Python 테스트 실행.
더 많은 정보: <https://docs.pytest.org/en/latest/how-to/usage.html>.
pytest {{path/to/test_file1.py path/to/test_file2.py ...}}
특정 파일에서 테스트 실행:
pytest -k {{expression}}
특정 [k]eyword 표현식과 일치하는 테스트 실행:
pytest {{[-x|--exitfirst]}}
테스트가 실패하거나 오류가 발생하면 즉시 종료:
