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.
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 🥺🥺😭
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?
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
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
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?
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
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
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??
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.
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?
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
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() + '
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
Thank you a lot to support the community by an information
All Regards
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.
This was very helpful and informative. Thank you for creating the easy-to-follow content!
all my respect and admiration man, from an older brother of a guy being bully for born different
Superb explanation !!! I would love to have more videos like this. Thanks a lot.
Subscribed instantly as the video ended.
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 🥺🥺😭
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?
Thanks a bunch dude! I'm learning python right now and can't wait to show this to my friends :D
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. I made my own package today!
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
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
Really interesting man. Thanks for the video...
Simple and easy to understand, keep up the good work 👍.
Very good tuto in all aspects. Thanks.
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
One word: AMAZING!!!!!
acually its 3 words:
One word: AMAZING!!!!!
1 2 3
but YEA IT IS AMAZING
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/*)
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
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!
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
Yo im ur 1 thousandth sub!! congrats
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??
Thank you very much for good explanation!
amazing video, how would i go about updating a library afterwards?
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
Great video, thanks a lot Josh!
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?
Very useful!!
Thank you for this great tutorial!!
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
this is so cool
now can you help package a PyQT5 application the same way and make it QT license ?
Hey i published my package but accidently gave it another name how to create new release/update the package already published
Great video for beginners ...but when I tried to upload my lib there was an error plz help me to solve this
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
good video man, keep goin' !
Really useful video thanks! :))))
you saved my day !!
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
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 so much very useful.
Published the Module, but when installing in cmd and import in python script, I get ModuleNotFoundError
Like a boss, clean, easy
I haven’t even started learning Python. Idk why i’m here.
L E A R N I T N O W
hi how do i actually use the add_numbers function?
Great Video
We Need More Content!!!
btw if the twine part isnt working for you, do python3 -m twine instead of just twine
I cannot file a module after I imported the package. Can anyone help me?
Helpful tutorial ,Thank you
Thank you SO MUCH It was very useful
AWESOME
very good work mate.
great video! thank you so much!!
After I type my username in the command prompt it is not asking for password and hangs
Plz also tell, how to update those libraries?
How do you import it? I can’t seem to find a way
great job!
Great video!
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
I cant find the library in the import list. Can someone help me?
when I tried to installed it it showed me a ton of errors. Is there a way to fix it?
what if you dont have a documents folder?
Thanks! Great video
that was very useful
thank you
Well done man
Its showing, -) Invalid or non-existent authentication information,
While uploading the dist*
great video man, keep up with the awesome content!
Thanks, will do!
Thanks man, very usefull!
im getting an http connection error while uploading the package
why am i getting an error that twine is not defined
Why are all the functions written in the __init__ file instead of their own files????
thank you ....! very good
good tutorial explanation
Awesome video.
Thanks!
Great mate!
Very nice, thank you
what VS Code theme are u using ???
love the colors under the tab
Synth wave 84
@@joshualowe1002 thnx
This is awesome
good tutorial, thanks
dude your color theme is amazing for vscode
can u share the name so that I can have it too
I prefer the WTFPL license :)
Thank you so much.
Can u share ur color theme pls :) And nice video too
Really helpful!
Amazing 🔥👍
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
nice, guy!
can make a video how to develop api using django-python
Thanks Thanks
Thank you!!!
cheers mate
Thank you