
Learn why Python packages matter, from using Python in ML and backends to packaging code for distribution on PyPI with pip, and the importance of documentation and maintenance.
Explore the anatomy of a Python package, from .gitignore and license to setup.py and wheel creation, and learn how these files shape packaging, distribution, and PyPI publishing.
Create a simple python package using a setup.py with setup tools to define the name, version, and author. Document the package and prepare it for uploading.
Explore how to configure setup.py for a Python package using setup tools, including long description, classifiers, keywords, install requires, and dependencies for packaging and distribution.
Define an entry point by creating the __init__.py file to initialize the package and start execution, then add an MIT license file to clarify usage terms.
Develop a Python package by creating an entry point and linking a calculator module, then define two functions to compute the square and the cube of a number.
Develop and test math functions in a Python package by implementing calculate square and calculate cube, and build a test architecture while verifying that square of 3 equals 9.
Learn to document a Python package with markdown, using simple syntax and readme markdown as the long description, while noting markdown’s security advantages over HTML.
Practice basic markdown syntax for software documentation, including headings, lists, links, horizontal rules, and code blocks, and learn how to structure a single-page readme.
Develop a markdown documentation file for the nominator package, covering installation, sample usage, use cases, and verification through code blocks, headings, links, and a scoring assignment.
Set up the package by placing core files inside a data folder, install locally via the setup workflow, and verify imports and a calculation from 5 to 25 works.
Upgrade setup tools, then build a wheel from your package to enable deployment and distribution on platforms.
Learn how to upload a Python package to the BYOB site using twine, including creating accounts, verifying emails, preparing the distribution directory, and executing the upload with the repository path.
This course deals with the complete workflow related with Python packages:
Building: The structure of a python package along with PYPI guidelines will be discussed in detail in this course.
Documenting: Documentation is a very important stage in the software development cycle in order to help an end user understand your product. We will be building documentation for our package using Markdown. The syntax of Markdown will be explained in detail as well.
Testing: We will be testing the build of our package locally and soon be writing tests to make sure that runtime errors are reduced.
Deploying: The built package will be uploaded to the PYPI and PYPI-Test website to be available to the world to install by a single pip command.
Maintaining: The process of updating is also discussed in this course along with the basics of how to assign version names to your packages
With most of the aspects covered related to a software development lifecycle, this becomes a comprehensive course for python packages.