Create Python PIP Package

Veröffentlicht am: 03 Januar 2025
auf dem Kanal: Python Simplified
23,454
1k

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/b...
⭐ 03:45 - General Public License Version 3:
https://www.gnu.org/licenses/gpl-3.0....
⭐ 04:38 - pyproject.toml:
https://github.com/MariyaSha/humans/b...
⭐ 05:44 - PyPi classifiers:
https://pypi.org/classifiers
⭐ 09:24 - What is API (explained at minute 03:11 in the time stamps):
   • NVIDIA NIM Beginners Tutorial - Create Dat...  
⭐ 11:42 - Test PyPi Index and Instructions:
https://packaging.python.org/en/lates...
⭐ 13:23 - Anaconda Tutorial:
   • Anaconda Beginners Guide for Linux and Win...  

⏰ 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:
  / mariyasha888  
🔗 Blog:
https://www.pythonsimplified.org
🔗 Discord:
  / discord  

💳 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


Auf dieser Seite können Sie das Online-Video Create Python PIP Package mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Python Simplified 03 Januar 2025 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 23,454 Mal angesehen und es wurde von 1 tausend den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!