MENU

Fun & Interesting

Create Your Own Python PIP Package

Python Simplified 16,854 4 months ago
Video Not Working? Fix It Now

Hi Everyone! Today we will create our very own Python library, and we will deploy it to the Python Package Index, also known as PIP. We will learn how to generate the required files, how to turn them into a Python wheel, and how to publish your wheel on the official Python module repository. Additionally, once the package is public, we will update it to a new version and we will learn how to split it into different modules such that: from my_package import module1 from my_package import module2 The best part is, by the end of this video, everyone on Earth will be able to pip install your beautiful, organized and super useful code!! 🤩🤩🤩 🐍 TUTORIAL LINKS 🐍 ⭐ 01:13 - Humans library: https://github.com/MariyaSha/humans/blob/main/src/humans/__init__.py ⭐ 03:45 - General Public License Version 3: https://www.gnu.org/licenses/gpl-3.0.html ⭐ 04:38 - pyproject.toml: https://github.com/MariyaSha/humans/blob/main/pyproject.toml ⭐ 05:44 - PyPi classifiers: https://pypi.org/classifiers ⭐ 09:24 - What is API (explained at minute 03:11 in the time stamps): https://youtu.be/vE80SLk-4PM ⭐ 11:42 - Test PyPi Index and Instructions: https://packaging.python.org/en/latest/tutorials/packaging-projects/ ⭐ 13:23 - Anaconda Tutorial: https://youtu.be/MUZtVEDKXsk ⏰ TIME STAMPS ⏰ 00:48 - local Python file overview 02:37 - src directory and __init__ 03:22 - LICENSE 04:02 - README 04:25 - pyproject.toml 04:46 - Build backend 05:35 - PyPi classifiers 06:24 - Create Python wheel 08:04 - Install Python wheel 08:53 - Generate a PyPI API key 09:54 - Upload Python wheel into PyPI 10:39 - HTTPError: The user isn't allowed to upload to project 13:10 - Behavior of packages with "_" within their name 14:41 - Update Public Package 15:47 - Split Package Into Modules 17:54 - Thanks for Watching! 🤝 LET'S CONNECT 🤝 🔗 Github: https://github.com/mariyasha 🔗 X: https://x.com/MariyaSha888 🔗 LinkedIn: https://ca.linkedin.com/in/mariyasha888 🔗 Blog: https://www.pythonsimplified.org 🔗 Discord: https://discord.com/invite/wgTTmsWmXA 💳 Credits 💳 ⭐ Beautiful titles, transitions, sound FX: mixkit.co ⭐ Icons and Graphics: flaticon.com #python #pythonprogramming #pip #python3 #pythonforbeginners #pythontutorial #pypi #programming #programmingtutorial #tutorial #module #package #coding #github #learning #learnpython #beginner #beginners #twine

Comment