In this Code Conversation, you’ve learned that packaging is about more than just publishing a project on PyPI. In fact, it can be helpful for your own personal projects. You had the world of packaging demystified and got to know the new, officially sanctioned way of setting up your Python projects using a pyproject.toml
file and installing your package with pip
. With this, you get the following benefits:
- 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
Along the way, you:
- Structured files and folders in your project
- Understood different ways to run your script
- Explored how the import system works
- Explored the Python packaging world
- Wrote a
pyproject.toml
file to configure your package - Installed your pacakge with
pip
Here are some further resources that you might find useful:
- Python import: Advanced Techniques and Tips
- How to Publish an Open-Source Python Package to PyPI
- How to Publish Your Own Python Package to PyPI - Video Course
- What Are Python Wheels and Why Should You Care?
Which of your projects will you package next? Share your ideas in the comments below!
Congratulations, you made it to the end of the course! What’s your #1 takeaway or favorite thing you learned? How are you going to put your newfound skills to use? Leave a comment in the discussion section and let us know.
Diego de Pablos on Dec. 12, 2022
This was really helpful. It’s good to learn how to do these things once and for all!