Thank you for the Guidance. I was able to create the package without much googling!!
@pixegami4 ай бұрын
Awesome, glad to hear that!
@2dapoint4244 ай бұрын
The best video!! Short and concise!! Thank you sharing this!
@b1gfreakn67828 күн бұрын
Many thanks for this! I was finally able to create my first package. It's just for personal use, so I didn't upload to pypi, but it's something I wished I understood how to do for a couple years at this point. So awesome to see it working, thanks to your help!
@pythonantole989211 ай бұрын
I'm surprised at how easy this is. I'm motivated to bundle some of my scripts into packages.
@danielvega64611 ай бұрын
actually npm is way better and straightforward. This part of creating a token on pypi was a whole issue for me
@pixegami10 ай бұрын
Sometimes I do wish Python's package management/environment was as integrated as Node :)
@pixegami10 ай бұрын
Yup! This can be useful if you if you need to re-use scripts or to share them with your team.
@rafaelfonseca79428 ай бұрын
Helpful video... came in handy for me here! Thanks!
@pixegami7 ай бұрын
Thank you! I'm glad to hear that :)
@muhammadqaisarali10 ай бұрын
Thanks man, it was straight forward
@helloanshu408026 күн бұрын
mate thanks for the tutorial , it came in handy 😊
@giant30613 күн бұрын
Very neat and informative. Thanks a million
@ojaswanibakshi5314Ай бұрын
bro seriously you are a life saviour
@typehint2 ай бұрын
This is an absolutely fantastic tutorial. Thanks for this!
@DamoOne9 ай бұрын
Really well explained, thanks!
@pixegami8 ай бұрын
Glad it was helpful!
@stefanrankovic2514Ай бұрын
One thing I'd like to mention is that before publishing a new version, go to the dist folder and delete the tar.gz and .whl files of the previous version or you won't be able to upload the new version. Everything else is good and I thank you for that
@TaerimYoon2 ай бұрын
Best video! Thank you!
@ttaylor991613 күн бұрын
Nice writeup ... all worked for me.
@paloha3 ай бұрын
Very well made video. Thanks
@marsbars11055 ай бұрын
This is such a great video! Thankyou very much!
@pixegami4 ай бұрын
Glad it was helpful!
@mrpizzakingman46047 ай бұрын
just what i need :D
@pixegami7 ай бұрын
Glad to hear that :)
@Valer_1002 ай бұрын
Really useful tutorial! It was very easy to understand.
@luishenriquelopesteodoro19217 ай бұрын
Excellent
@EvanRickettsUk4 ай бұрын
This was great, thank you!
@pixegami4 ай бұрын
Glad you enjoyed it!
@bgd_surf10 ай бұрын
awesome!!
@tarangsuri89323 ай бұрын
Great tutorial, Thanks!
@ZhanCaitaoАй бұрын
Nice video, really helped.
@sg8nj2 ай бұрын
Great work
@pablomunsey6 ай бұрын
Concise and to the point. I keep revisiting it as I progress. Would like to see a compatible one usng a pyproject.toml.
@pixegami5 ай бұрын
Thank you, glad it's helpful! I need to take a look at using the toml format, I haven't used it before.
@prajganesh11 ай бұрын
Great one. side topic. Can you tell us which tool you use to create the youtube thumbnail? thanks.
@pixegami10 ай бұрын
Thanks! I use Photoshop for the thumbnails.
@shreyansen1132Ай бұрын
thanks!
@lookingoffswitch43443 ай бұрын
Should "pip install setuptools wheel twice" be done in my project's virtual environment or should these libraries be installed into my global Python environment? TIA!
@Happyendrew4 ай бұрын
Thanks a lot!
@_aade7 ай бұрын
Is there a way to change the version number automatically?
@pixegami7 ай бұрын
Yeah, I'd recommend implementing this as something like a Git hook maybe for minor/patch version number.
@_aade7 ай бұрын
Will there be a problem if I delete previous versions?
@pixegami7 ай бұрын
Generally, I don't think you're meant to delete previous versions, but I'm sure it'll be fine if you have to do it (I haven't tried it out myself though).
@_aade7 ай бұрын
Why do we have to use twine?
@pixegami7 ай бұрын
I don't think we have to use it, but it was just the easiest/recommended way I found online of how to actually upload the local content to the remote repository.
@_aade7 ай бұрын
Thank you, my friend, I am grateful to you for answering all three of my questions :)@@pixegami
@pranav_arya4 ай бұрын
which plugin or app you are using for VS Code terminal autocomplete suggestions?
@pixegami4 ай бұрын
It's GitHub Co-Pilot.
@pranav_arya4 ай бұрын
@@pixegami Thanks for responding. Are you using the fish terminal?
@slipthetrap6 ай бұрын
Is this all that is needed to also do: pipx install pixegami-hello ... for example? Thanks for the videos.
@HashtagTiluda5 ай бұрын
A quick question, what if I want to pass a string to the hello function?
@pixegami5 ай бұрын
If you wanna use it as a library, then it's just a normal function (so you can add an argument to it, and use it after you import it). If you wanna use it like a CLI (from the terminal), you can do it using a library like argparse: docs.python.org/3/library/argparse.html#module-argparse
@HashtagTiluda5 ай бұрын
@@pixegami thank you!
@Tcrrxzz9 ай бұрын
But the entry_points isn't a setup parameter? please explain it!! thanks
@niklyons96742 ай бұрын
This is awesome information. I have a script I'm looking do download on a Windows system and a Linux system. Are you able to run this packages on a CronJob for Linux and task scheduler for Windows Machines?
@tellezgerardoruben52022 ай бұрын
Is possible to make this work with extensions made in another language like C?
@paradoxial76654 ай бұрын
So I installed my library and when I import it to a file to test, everything works fine when I run the code, however Pylance says the module doesn't exist but when the code is ran, it works just fine? I wonder why??
@richardalphonse26808 ай бұрын
Well Explained , thanks I Have doubt in terms of loading json data within folder structure and reading it wihthin a function how it can excuted can you help me with this
@pixegami7 ай бұрын
First, you need to configure your setuptools to include data files like JSON: docs.python.org/3.8/distutils/setupscript.html#installing-additional-files Then it'll be packaged along with your Python scripts, and you can just call/use it from there.
@anirbansom66823 ай бұрын
How to create a CLI Command which will accept arguments ? Like, pixegami-hello --file_name /file/path/
@pixegami3 ай бұрын
This is how you wire up scripts to command: python-packaging.readthedocs.io/en/latest/command-line-scripts.html If you want to parse arguments, use this built-in library: docs.python.org/3/library/argparse.html
@xsamueljr11 ай бұрын
If my package is in a github repository, and I want to use `pip install git+[some link].git`, do I need to commit and push the wheel files?
@Chuukwudi2 ай бұрын
Important question. Have you found an answer?
@xsamueljr2 ай бұрын
@@Chuukwudi I think you don't need to push the wheel files (mainly because I was able to install a package that didn't have them), but I'm not entirely sure
@prashantmeti79864 ай бұрын
I didn't get how and where to export the token and api key please tell me
@pixegami4 ай бұрын
It's just environment variables, so if you're not familair with them, search "how do I set environments in Linux/Mac/Windows?" (or whichever OS you are using) on Google. Good luck!
@therealone077728 күн бұрын
i get this whenever i try to export it: C:\Users\HP User\AppData\Local\Microsoft\WindowsApps\python.exe: can't open file 'C:\\Users\\HP User\\Desktop\\NeuralNetwork\\twine': [Errno 2] No such file or directory i can't even test it
@gokulyc11 ай бұрын
can you make using hatch package manager
@shubhamshastri74097 ай бұрын
i am able to do this but what if i want my package to be uploaded privately , one only with auth can able to install it with pip
@pixegami7 ай бұрын
I think you can upload to your own private repository for that. You'll probably have to look up how to set up your own private PyPI server.
@cristiandiaz35516 ай бұрын
hey men, im do the same but my project have some dependencies, it work localy but but i try to install form pypi it dont install the dependacies, can you help me ?
@pixegami6 ай бұрын
Have you tried adding them to `install_requires`? See here: python-packaging.readthedocs.io/en/latest/dependencies.html
@TechnicalLodhiOfficial5 ай бұрын
Bro I can't understand how setup environment variable ( 8:14 ) Can you please clarify that?
@pixegami4 ай бұрын
There's lots of ways to set an environment variable. It's basically a variable that is set at the OS level, and shared with all processes in that terminal/application context. I'd recommend to Google "how do I set up environment variables on Linux/Mac/Windows? (or whichever OS you are on)" and follow those instructions.
@TechnicalLodhiOfficial4 ай бұрын
@@pixegami I googled it and found out the results Thanks!
@AbtinDar6 ай бұрын
String library is not installed
@Investmentpunk12 ай бұрын
Can you please redo that video with the pyproject.toml and poetry, since it is the industry standard nowadays. Thank you :)
@artofworkk3 ай бұрын
I can't install twine
@ishanoshada10 ай бұрын
How to totp verification do???
@pixegami10 ай бұрын
Hmm, is this part of the package publishing workflow, or is this for something different?
@ishanoshada10 ай бұрын
@@pixegami pypi verification
@tonylovesmusic680613 күн бұрын
unfortunately, i am not able to type in my token this is not your problem, but is know issue and i tried everything it all failed please help it's 2am and i am dying /jk :))))))
@thetaomegatheta2 ай бұрын
5:00 Nope. Does not work. Neither the python CLI, nor other projects can see anything in the package after installation. Furthermore, `__init__.py` even claims that the imports are unused. When trying to import anything from the package after the installation, it throws ModuleNotFoundError: No module named 'my-library'.
@LinseyReill-s6f4 күн бұрын
Klein Shoal
@seesmof3 ай бұрын
Hallelujah thank YOU Jesus Christ our Holy Lord GOD Almighty ✝❣ GOD bless you, great video, very straightforward, may Jesus Christ our Holy Lord GOD Almighty bless you and keep you, may GOD make His face shine upon you and be gracious to you, may King Jesus Christ our Lord lift up His face to you and give you peace in JESUS HOLY Name we pray LORD GOD, AMEN be saved from hell: repent of your sins and put your faith alone in Jesus Christ our Lord ✝💞