Appendix E. Preparing your package for public distribution

E.1 Selecting PyPI as the distribution target

One major reason for Python’s popularity is its vast repository of tools for various specialties, including data science and machine learning. Most of these tools are contributed by regular Python developers. The most common way to share the tools is to pack your code into a package and upload it to the Python Package Index (PyPI; https://pypi.org). After you upload it, any Python users in the world can download your package easily by using the pip tool (appendix B online). In this appendix, I’ll show you how to publish a package using the task management app that we’ve built (chapter 14).

E.2 Preparing the files

Before we can publish our ...

Get Python How-To now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.