Skip to content

Creating a Package

Estimated time to read: 1 minute

What are Python packages?

Before explaining how to create a Python package, it is important to define what a package is in Python, what it represents, what it consists of, and why it is important.

How to create a Python package?

There are several ways to create a Python package, depending on the tool you want to configure and the one you are using within your project.

In this guide, we will mainly see 2 methods (with various approaches):

  • Using pip
  • Using poetry