Create, Package & Publish your OWN Python Library

  Рет қаралды 96,962

Joshua Lowe

Joshua Lowe

Күн бұрын

Пікірлер: 156
@willemdafoe9646
@willemdafoe9646 3 жыл бұрын
Here I am, 24 y/o engineer watching a packaging tutorial by a middle schooler :D Keep the good work up bro, you rock!
@mikloslorinczi227
@mikloslorinczi227 3 жыл бұрын
Welp I'm a 38 y/o DevOps engineer and I'm here to learn too :) We just need to admit that in the 21th century the know-how is not necessarily comes from the old folks.
@swiveiproduction9192
@swiveiproduction9192 3 жыл бұрын
hah same 20 here
@kestonsmith1354
@kestonsmith1354 3 жыл бұрын
To be honest, the older folks tend to overcomplicate the process. I find my classmates explaining better than the professor.
@krisculin9679
@krisculin9679 3 жыл бұрын
@@mikloslorinczi227 I got both of you beat. I just turned 43 yo.
@bmuraaz6024
@bmuraaz6024 3 жыл бұрын
He's in sixth form, probably
@atrumluminarium
@atrumluminarium 3 жыл бұрын
This is genuinely one of the best videos about packaging python modules on KZbin
@varunnagrare4912
@varunnagrare4912 4 жыл бұрын
You sir are amazing! I've been searching about this for 4 months and here it is simple and easy
@mohajeramir
@mohajeramir 4 жыл бұрын
I followed these steps, and I could pip install the package, but I could not import it in python. The solution I found was to put the __init__.py in a subfolder, and in your setup.py, put packages='name_of_this_folder'
@divyareddy7622
@divyareddy7622 2 жыл бұрын
Hii I really need help :) the import tensorflow and pip install statements aren't working in VS code when I try to convert my ipynb file to .py file to create a Library for it. Can you please help 🥺🥺😭
@عالمالبرمجةالعربي
@عالمالبرمجةالعربي 2 жыл бұрын
Thank you a lot to support the community by an information All Regards
@mohajeramir
@mohajeramir 4 жыл бұрын
It was excellent. Thank you so much, but I could not help noticing the low ceiling. I would not survive that.
@agoraphobi8004
@agoraphobi8004 3 жыл бұрын
It's his bed
@papiangelus
@papiangelus 4 жыл бұрын
Awesome video! Quick question tho. So I finished the entire process of uploading my package but my package has the version number at the end which is less than ideal if someone wanted to install it. Here is what I'm talking about: "pip3 install twist-web==0.0.1" How would I get rid of the "==0.0.1" at the end of my pkg name?
@agator2660
@agator2660 3 жыл бұрын
Thank you for going full depth into module creation. For some reason this level of explaining is hard to find vs more introductory and basic concepts.
@TonyVu2001
@TonyVu2001 2 жыл бұрын
When I write the command at 13:13 it said 'Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.' Please help me
@raymundoescobar9872
@raymundoescobar9872 3 жыл бұрын
all my respect and admiration man, from an older brother of a guy being bully for born different
@jamestang1737
@jamestang1737 4 жыл бұрын
great video Josh! getting a "modulenotfounderror" when I try to import my sample calculator package from vscode. Not looking to publish to pypi as my aim is for usability to share code within my team
@dentonhess5810
@dentonhess5810 4 жыл бұрын
James did you get this figured out?
@kakeergodt4609
@kakeergodt4609 3 жыл бұрын
install it?
@Elian-to6qq
@Elian-to6qq 3 жыл бұрын
yea I have this same problem, I pip installed it and I see the files in site-packages folder but it still says module not found
@xeoplay1955
@xeoplay1955 4 жыл бұрын
if anyone has problems with using your library after "import modulename" try "from modulename import *" (modulename being the name of your module) that has helped me
@strike6621
@strike6621 4 жыл бұрын
Whenever I try to publish the library it gives me an error saying : InvalidDistribution: Cannot find file (or expand pattern): 'dist/*' how do i fix this?
@gilbertenevoldsen4469
@gilbertenevoldsen4469 3 жыл бұрын
you need to put a space before dist (/ dist/*)
@trerobinson5987
@trerobinson5987 2 жыл бұрын
This was very helpful and informative. Thank you for creating the easy-to-follow content!
@-DR1FT.
@-DR1FT. 4 жыл бұрын
hi when i try doing the last step (publishing it with twine) powershell gives me this error: Invalid value for classifiers. Error: Classifier 'License :: OSI Approved :: MIT Licence' is not a valid classifier. Why in the video you had the same and you didnt get this error please help me
@iimb-inventorsinventingmac4338
@iimb-inventorsinventingmac4338 4 жыл бұрын
Check your spelling for License :-) Its "MIT License" not "MIT Licence" TYPO:-)
@python_by_abhishek
@python_by_abhishek 3 жыл бұрын
Subscribed instantly as the video ended.
@datasciencesagemode5691
@datasciencesagemode5691 4 жыл бұрын
Superb explanation !!! I would love to have more videos like this. Thanks a lot.
@alaahoussen2914
@alaahoussen2914 3 жыл бұрын
Thanks very much for your tutorial Please Keep it up
@jarvistestingtutorials9746
@jarvistestingtutorials9746 4 жыл бұрын
I am new to python, In java we export our project as jar and give it to anyone for reuse of classes, so any similar technique available for python? where we just bind our all classes in single file to share with friends?
@colleagueriley8451
@colleagueriley8451 4 жыл бұрын
java is compiled to jar before run time while python gets interpreted at run time. More on this at www.freecodecamp.org/news/compiled-versus-interpreted-languages/
@gilililili
@gilililili 3 жыл бұрын
I mean yeah I guess you can send someone a py file with some modules and if he puts it in the same folder as his python script he can use those modules For example: Modules.py: def hello_world(): print("hello world") And their python script could be: from Modules.py import hello_world hello_world() Output: hello world That's the idea of how it works
@ihssancanmturk3842
@ihssancanmturk3842 4 жыл бұрын
Me think: wonderful this super wonderful that video tutorial, thanks for presenting and sharing! ;)
@shivan2418
@shivan2418 4 жыл бұрын
Great video. I made my own package today!
@gunjanshah3467
@gunjanshah3467 4 жыл бұрын
Hey, thanks for this video! Now, if I want to make changes, like adding a function of squaring the value may b, so how can I add those additional functions and update my published library??
@coolperson213
@coolperson213 2 жыл бұрын
Thanks a bunch dude! I'm learning python right now and can't wait to show this to my friends :D
@__shadow__
@__shadow__ 4 жыл бұрын
what about updating our library?
@joshualowe1002
@joshualowe1002 4 жыл бұрын
Make your changes, add to changelog, change version in setup & run the upload command again :)
@xeoplay1955
@xeoplay1955 4 жыл бұрын
@@joshualowe1002 so that didn't work for me. luckily i found a solution. i needed to delete the files in the dust folder and run the python setup.py bdist_wheel command and then upload
@WysockiD
@WysockiD 3 жыл бұрын
amazing video, how would i go about updating a library afterwards?
@arshadsameemdeen391
@arshadsameemdeen391 3 жыл бұрын
im getting a error when uploading the package to pypi 'twine' is not recognized as an internal or external command, operable program or batch file. Even though i have installed twine and it says requirement already satisfied. I even drive to add the site-packages path to PATH is environment variables. Can anyone help me with this?
@akkaraponchaiyana6520
@akkaraponchaiyana6520 3 жыл бұрын
I cannot file a module after I imported the package. Can anyone help me?
@DevOpsJourney
@DevOpsJourney 4 жыл бұрын
How are you getting the nice colorful font in VSCode? Thanks!
@debjyotibanerjee7750
@debjyotibanerjee7750 2 жыл бұрын
Really interesting man. Thanks for the video...
@abhijeet.ai_
@abhijeet.ai_ 4 жыл бұрын
Hey i published my package but accidently gave it another name how to create new release/update the package already published
@alwayscubing8200
@alwayscubing8200 3 жыл бұрын
Wow! it really helped me in many ways while making large programs...impressed my friends
@yashyadav7927
@yashyadav7927 3 жыл бұрын
Great video for beginners ...but when I tried to upload my lib there was an error plz help me to solve this
@coolperson213
@coolperson213 2 жыл бұрын
Yo im ur 1 thousandth sub!! congrats
@santiagobmx1000
@santiagobmx1000 4 жыл бұрын
Mad chill video. Well done man. thank you!
@joshualowe1002
@joshualowe1002 4 жыл бұрын
Appreciate it!
@servercraft17
@servercraft17 2 жыл бұрын
what if you dont have a documents folder?
@aaroldaaroldson708
@aaroldaaroldson708 3 жыл бұрын
After I type my username in the command prompt it is not asking for password and hangs
@sunandsujai
@sunandsujai 3 жыл бұрын
why am i getting an error that twine is not defined
@divakarrex9546
@divakarrex9546 4 жыл бұрын
I have created a package and even hosted it but when i try to install it to another PC i'm not able to import the packages, Kindly advice
@d3vboi
@d3vboi 2 жыл бұрын
btw if the twine part isnt working for you, do python3 -m twine instead of just twine
@athcubesprogrammer6509
@athcubesprogrammer6509 4 жыл бұрын
Published the Module, but when installing in cmd and import in python script, I get ModuleNotFoundError
@yantogaming1848
@yantogaming1848 3 жыл бұрын
Why are all the functions written in the __init__ file instead of their own files????
@codinglemon5768
@codinglemon5768 3 жыл бұрын
when I tried to installed it it showed me a ton of errors. Is there a way to fix it?
@chetana9802
@chetana9802 2 жыл бұрын
this is so cool now can you help package a PyQT5 application the same way and make it QT license ?
@NicolasMichel-be
@NicolasMichel-be 3 жыл бұрын
Very good tuto in all aspects. Thanks.
@gilililili
@gilililili 3 жыл бұрын
What if I used the package for this package for example a module that would turn nouns into adjectives in a certain language but I want to know if it's the right language so I use langdetect. Would I make them require installing langdetect beforehand Oh wait nevermind I saw it again 😂 and saw what to do
@jerrylin0312
@jerrylin0312 2 жыл бұрын
How do you import it? I can’t seem to find a way
@basasairam1784
@basasairam1784 2 жыл бұрын
im getting an http connection error while uploading the package
@afroyed3295
@afroyed3295 4 жыл бұрын
what VS Code theme are u using ???
@afroyed3295
@afroyed3295 4 жыл бұрын
love the colors under the tab
@joshualowe1002
@joshualowe1002 4 жыл бұрын
Synth wave 84
@punyashlokpurohit9734
@punyashlokpurohit9734 4 жыл бұрын
@@joshualowe1002 thnx
@bhoopendragupta4782
@bhoopendragupta4782 2 жыл бұрын
Simple and easy to understand, keep up the good work 👍.
@_vuk.
@_vuk. 4 жыл бұрын
I cant find the library in the import list. Can someone help me?
@mrfrozen97-despicable
@mrfrozen97-despicable 3 жыл бұрын
Plz also tell, how to update those libraries?
@PawanMishra-zt3vb
@PawanMishra-zt3vb 3 жыл бұрын
Its showing, -) Invalid or non-existent authentication information, While uploading the dist*
@giorgikuchava5623
@giorgikuchava5623 3 жыл бұрын
Thank you very much for good explanation!
@bigbrainer9691
@bigbrainer9691 4 жыл бұрын
How do u import the module
@bionicman285
@bionicman285 4 жыл бұрын
Thank you so much, you saved my live :)
@python_by_abhishek
@python_by_abhishek 3 жыл бұрын
Please make few more videos. 1. How the created package can work on all platforms (linux, android, etc.) 2. How to manage packages if some changes are done? 3. If I want to make more than 1 function under common package- like from package import * Then how this can be done. Kindly acknowledge.
@Survivor-xs9gv
@Survivor-xs9gv 3 жыл бұрын
Can you please send GitHub link
@gabrielegatti2322
@gabrielegatti2322 3 жыл бұрын
Very useful!! Thank you for this great tutorial!!
@neildatt9128
@neildatt9128 3 жыл бұрын
You are making such cool vids, you deserve more subscribers! BTW, can you please tell the VS code theme you are using
@silkybrain
@silkybrain 3 жыл бұрын
The theme is called SynthWave '84
@siddhant_yadav
@siddhant_yadav 4 жыл бұрын
dude your color theme is amazing for vscode can u share the name so that I can have it too
@eshaangupta4101
@eshaangupta4101 4 жыл бұрын
Great video, thanks a lot Josh!
@shanvantharunmozhi
@shanvantharunmozhi 4 жыл бұрын
Thank you SO MUCH It was very useful
@shanvantharunmozhi
@shanvantharunmozhi 4 жыл бұрын
AWESOME
@kkrolley
@kkrolley 3 жыл бұрын
COPY AND PASTE THE SETUP: from setuptools import setup, find_packages classifiers = [ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Education', 'Operating System :: Microsoft :: Windows :: Windows 10, Linux, Darwin :: MACOSX', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 3' ] setup( name='', version='0.0.1', description='', Long_description=open('README.txt').read() + ' ' + open('CHANGELOG.txt').read(), url='', author='', author_email='', license='MIT', classifiers=classifiers, keywords='ASCII, terminal, output', packages=find_packages(), install_requires=[''] )
@marinaanand6114
@marinaanand6114 3 жыл бұрын
Thanks
@darkjohny232
@darkjohny232 2 жыл бұрын
Really useful video thanks! :))))
@Boxing0715
@Boxing0715 3 жыл бұрын
We Need More Content!!!
@raghucharan5213
@raghucharan5213 4 жыл бұрын
can make a video how to develop api using django-python
@AmalMathewTech
@AmalMathewTech 3 жыл бұрын
Helpful tutorial ,Thank you
@leniedor733
@leniedor733 3 жыл бұрын
good video man, keep goin' !
@EduardoGarcia-tv2fc
@EduardoGarcia-tv2fc 4 жыл бұрын
great video man, keep up with the awesome content!
@joshualowe1002
@joshualowe1002 4 жыл бұрын
Thanks, will do!
@databridgeconsultants9163
@databridgeconsultants9163 4 жыл бұрын
very good work mate.
@tempura_edward4330
@tempura_edward4330 3 жыл бұрын
great video! thank you so much!!
@tmb2313
@tmb2313 3 жыл бұрын
Can u share ur color theme pls :) And nice video too
@MohAmuza
@MohAmuza 2 жыл бұрын
thank you so much very useful.
@DefaultGamingChannel
@DefaultGamingChannel 3 жыл бұрын
One word: AMAZING!!!!!
@Atomx1j
@Atomx1j 3 жыл бұрын
acually its 3 words: One word: AMAZING!!!!! 1 2 3 but YEA IT IS AMAZING
@michelmerheb1882
@michelmerheb1882 3 жыл бұрын
I haven’t even started learning Python. Idk why i’m here.
@Elian-to6qq
@Elian-to6qq 3 жыл бұрын
L E A R N I T N O W
@serkratos1216
@serkratos1216 4 жыл бұрын
I prefer the WTFPL license :)
@learncomputersciencewithfaisal
@learncomputersciencewithfaisal 4 жыл бұрын
good tutorial explanation
@radeshf
@radeshf 3 жыл бұрын
that was very useful thank you
@keshavsingh4522
@keshavsingh4522 4 жыл бұрын
awesome video
@warrenstevens4996
@warrenstevens4996 3 жыл бұрын
this dont work on linux
@tomte2283
@tomte2283 4 жыл бұрын
My powershell doesnt know twine
@abhishekm4996
@abhishekm4996 4 жыл бұрын
Me too
@tracey7936
@tracey7936 4 жыл бұрын
When's next upload?
@joshualowe1002
@joshualowe1002 4 жыл бұрын
Few weeks, need to find time to get back into this.
@tracey7936
@tracey7936 4 жыл бұрын
@@joshualowe1002 alright
@gabot1983
@gabot1983 4 жыл бұрын
Like a boss, clean, easy
@jeffreycuadros1685
@jeffreycuadros1685 4 жыл бұрын
Thanks! Great video
@mattiarigiroli
@mattiarigiroli 4 жыл бұрын
Thanks man, very usefull!
@dr.dundun
@dr.dundun 4 жыл бұрын
good tutorial, thanks
@Thenonspecialist
@Thenonspecialist 2 жыл бұрын
if you need to package and you did not install python from Microsoft then type in python setup.py sdist bdist_wheel
@brianrivers6052
@brianrivers6052 4 жыл бұрын
Great video!
@nathanbenton2051
@nathanbenton2051 3 жыл бұрын
great job!
@darshikaverma9170
@darshikaverma9170 3 жыл бұрын
you saved my day !!
@gedeonmuhawenayo8429
@gedeonmuhawenayo8429 4 жыл бұрын
Well done man
@M.I.S
@M.I.S 3 жыл бұрын
thank you ....! very good
@Major7Sharp5
@Major7Sharp5 3 жыл бұрын
Very nice, thank you
@yogitamisal2650
@yogitamisal2650 4 жыл бұрын
Amazing 🔥👍
@shahriyardx
@shahriyardx 4 жыл бұрын
Awesome video.
@joshualowe1002
@joshualowe1002 4 жыл бұрын
Thanks!
@way2ml
@way2ml 4 жыл бұрын
Thank you so much.
@bobbydeng4932
@bobbydeng4932 4 жыл бұрын
Really helpful!
@sinamobasheri3632
@sinamobasheri3632 4 жыл бұрын
thanks sir 🙏🏻🙏🏻
@automave7514
@automave7514 3 жыл бұрын
Great mate!
@shreyasb.s3819
@shreyasb.s3819 3 жыл бұрын
This is awesome
@DevChancey
@DevChancey 2 жыл бұрын
Thank you
All Top 40 Python Libraries EXPLAINED in 20 minutes
22:04
COMPLETE No-Nonsense VSCode Setup for Python Devs
26:05
ArjanCodes
Рет қаралды 46 М.
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
How to Publish a Python Package to PyPI (pip)
11:38
pixegami
Рет қаралды 24 М.
25 nooby Python habits you need to ditch
9:12
mCoding
Рет қаралды 1,8 МЛН
5 Tips To Organize Python Code
12:16
Tech With Tim
Рет қаралды 251 М.
Top 18 Most Useful Python Modules
10:50
Tech With Tim
Рет қаралды 934 М.
The most important Python script I ever wrote
19:58
John Watson Rooney
Рет қаралды 211 М.
Google’s Quantum Chip: Did We Just Tap Into Parallel Universes?
9:34
Real 10x Programmers Are SLOW To Write Code
14:51
Thriving Technologist
Рет қаралды 68 М.
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН