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.
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
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?
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'
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 🥺🥺😭
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
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??
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?
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
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
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?
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.
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() + '
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?
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/
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
@@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
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
Here I am, 24 y/o engineer watching a packaging tutorial by a middle schooler :D
Keep the good work up bro, you rock!
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.
hah same 20 here
To be honest, the older folks tend to overcomplicate the process. I find my classmates explaining better than the professor.
@@mikloslorinczi227 I got both of you beat. I just turned 43 yo.
He's in sixth form, probably
This is genuinely one of the best videos about packaging python modules on RUclips
You sir are amazing! I've been searching about this for 4 months and here it is simple and easy
It was excellent. Thank you so much, but I could not help noticing the low ceiling. I would not survive that.
It's his bed
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.
Thank you a lot to support the community by an information
All Regards
all my respect and admiration man, from an older brother of a guy being bully for born different
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
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?
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'
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 🥺🥺😭
Subscribed instantly as the video ended.
This was very helpful and informative. Thank you for creating the easy-to-follow content!
Superb explanation !!! I would love to have more videos like this. Thanks a lot.
Thanks a bunch dude! I'm learning python right now and can't wait to show this to my friends :D
Great video. I made my own package today!
Yo im ur 1 thousandth sub!! congrats
Mad chill video. Well done man. thank you!
Appreciate it!
Me think: wonderful this super wonderful that video tutorial, thanks for presenting and sharing! ;)
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
James did you get this figured out?
install it?
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
Thanks very much for your tutorial Please Keep it up
Wow! it really helped me in many ways while making large programs...impressed my friends
amazing video, how would i go about updating a library afterwards?
One word: AMAZING!!!!!
acually its 3 words:
One word: AMAZING!!!!!
1 2 3
but YEA IT IS AMAZING
Really interesting man. Thanks for the video...
Simple and easy to understand, keep up the good work 👍.
this is so cool
now can you help package a PyQT5 application the same way and make it QT license ?
btw if the twine part isnt working for you, do python3 -m twine instead of just twine
Very good tuto in all aspects. Thanks.
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??
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?
you need to put a space before dist (/ dist/*)
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
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
Check your spelling for License :-)
Its "MIT License" not "MIT Licence"
TYPO:-)
Thank you so much, you saved my live :)
How are you getting the nice colorful font in VSCode? Thanks!
You are making such cool vids, you deserve more subscribers! BTW, can you please tell the VS code theme you are using
The theme is called SynthWave '84
I cannot file a module after I imported the package. Can anyone help me?
Awesome
I have code written but to use that code some modules are mandatory how to allow user to install it before they can make use my pypi module
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
Thank you very much for good explanation!
Great video for beginners ...but when I tried to upload my lib there was an error plz help me to solve this
Published the Module, but when installing in cmd and import in python script, I get ModuleNotFoundError
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?
We Need More Content!!!
what if you dont have a documents folder?
Hey i published my package but accidently gave it another name how to create new release/update the package already published
After I type my username in the command prompt it is not asking for password and hangs
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.
Can you please send GitHub link
Why are all the functions written in the __init__ file instead of their own files????
Great video, thanks a lot Josh!
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=['']
)
Thanks
why am i getting an error that twine is not defined
Very useful!!
Thank you for this great tutorial!!
Like a boss, clean, easy
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?
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/
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
when I tried to installed it it showed me a ton of errors. Is there a way to fix it?
im getting an http connection error while uploading the package
Its showing, -) Invalid or non-existent authentication information,
While uploading the dist*
what about updating our library?
Make your changes, add to changelog, change version in setup & run the upload command again :)
@@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
How do you import it? I can’t seem to find a way
Helpful tutorial ,Thank you
awesome video
you saved my day !!
I cant find the library in the import list. Can someone help me?
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
great video! thank you so much!!
Plz also tell, how to update those libraries?
thank you so much very useful.
Really useful video thanks! :))))
very good work mate.
dude your color theme is amazing for vscode
can u share the name so that I can have it too
Can u share ur color theme pls :) And nice video too
good video man, keep goin' !
good tutorial explanation
great job!
Great video!
Thanks! Great video
Thank you SO MUCH It was very useful
AWESOME
I haven’t even started learning Python. Idk why i’m here.
L E A R N I T N O W
Well done man
that was very useful
thank you
How do u import the module
Thank you so much.
thank you ....! very good
good tutorial, thanks
great video man, keep up with the awesome content!
Thanks, will do!
Very nice, thank you
Thanks man, very usefull!
I prefer the WTFPL license :)
what VS Code theme are u using ???
love the colors under the tab
Synth wave 84
@@joshualowe1002 thnx
Great mate!
This is awesome
Awesome video.
Thanks!
Really helpful!
Amazing 🔥👍
can make a video how to develop api using django-python
Thank you!!!
Thank you
Thanks Thanks
cheers mate
Thanks yr