Create Your Own Python Package on PIP - Step by Step Tutorial

Опубликовано: 03 Январь 2025
на канале: Python Simplified
1,351
200

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):
   • Dataset Generating App with NVIDIA NI...  
⭐ 11:42 - Test PyPi Index and Instructions:
https://packaging.python.org/en/lates...
⭐ 13:23 - Anaconda Tutorial:
   • Anaconda Beginners Guide for Linux an...  

⏰ 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


Смотрите видео Create Your Own Python Package on PIP - Step by Step Tutorial онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Python Simplified 03 Январь 2025, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 1,351 раз и оно понравилось 200 людям.