Quick Start
Usage
Install cookiecutter
:
pip install cookiecutter
Generate a Python package structure using pyio-cookiecutter
:
cookiecutter https://github.com/beam-pyio/pyio-cookiecutter
pkg
├── .github ┐
│ └── workflows │
│ ├── doc.yml │ GitHub Actions workflow
│ ├── release.yml │
│ └── test.yml ┘
├── .gitignore ┐
├── CHANGELOG.md │
├── CONDUCT.md │
├── CONTRIBUTING.md │
├── LICENSE │
├── README.md ┘
├── docs ┐
│ ├── Makefile │
│ ├── changelog.md │
│ ├── conduct.md │ Package documentation
│ ├── conf.py │
│ ├── contributing.md │
│ ├── index.md │
│ └── requirements.txt ┘
├── pyproject.toml ┐
├── src │
│ └── pkg │ Package source code, metadata,
│ ├── __init__.py │ and build instructions
│ └── pkg.py ┘
└── tests ┐
└── test_pkg.py ┘ Package tests
Parameters
When generating a Python package structure using pyio-cookiecutter
, you will be prompted for the input parameters shown below.
Parameters |
Default value |
Description |
---|---|---|
|
Monty Python |
Your name. |
|
mypkg |
Package name (check if your name |
|
A package for building |
Brief description of your project. |
|
0.1.0 |
Initial package version. In semantic |
|
3.10 |
Defalt Python version |
|
MIT |
License to use for your package. |
Features
pyio-cookiecutter
includes the following core features:
pytest testing: Setup to easily test for multiple Python versions on Ubuntu
GitHub Actions: Ready for GitHub Actions Continuous Integration testing & Deployment
codecov: Code coverage report and badge using codecov and GitHub Actions
Sphinx docs: Documentation ready for generation with, for example, GitHub Pages
Publish to PyPI upon creating a tag