Learning how to package your code can seem overwhelming. This complete 52 minute conversation takes you through the steps one at a time, using modern best practices.
In this Code Conversation, you’ll follow a chat between Ian and Geir Arne demonstrating the relatively new, officially sanctioned way of setting up your Python projects using a pyproject.toml file and installing your package with pip. This offers nice benefits, such as:
Being able to call your project from anywhere
Playing on the same team as the import system
Allowing for consistent imports
Having one file that’ll work for many build systems
This is the complete conversation but the course is hosted here, if you want to learn more or find additional resources:
realpython.com...
And you'll learn how to:
Structure files and folders in your project
Understand different ways to run your script
Explore how the import system works
Explore the Python packaging world
Write a pyproject.toml file to configure your package
Install your pacakge with pip
5 окт 2024