Wrap-up

Developing Python Packages

James Fulton

Climate informatics researcher

Small beginnings

  • NumPy - started by Travis Oliphant
  • Pandas - started by Wes McKinney
Developing Python Packages

Recap

  • Modules vs subpackages vs packages
  • Package structure and __init__.py
  • Absolute and relative imports
  • Documentation with pyment
  • Code style with flake8
  • Making your package installable with setup.py
  • Dependencies with install_requires and requirements.txt
  • Supporting files like LICENSE, README.md, CONTRIBUTING.md and HISTORY.md
  • Building and uploading distributions to PyPI with twine
  • Testing with pytest and tox
  • Using package templates with cookiecutter
  • Efficient package care with Makefiles
Developing Python Packages

Further topics

Package website

ReadtheDocs and Sphinx

Developing Python Packages

Well done!

Developing Python Packages

Preparing Video For Download...