Thank you for the Guidance. I was able to create the package without much googling!!
@pixegami
3 ай бұрын
Awesome, glad to hear that!
@b1gfreakn678
7 күн бұрын
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!
@2dapoint424
3 ай бұрын
The best video!! Short and concise!! Thank you sharing this!
@pythonantole9892
11 ай бұрын
I'm surprised at how easy this is. I'm motivated to bundle some of my scripts into packages.
@danielvega646
10 ай бұрын
actually npm is way better and straightforward. This part of creating a token on pypi was a whole issue for me
@pixegami
9 ай бұрын
Sometimes I do wish Python's package management/environment was as integrated as Node :)
@pixegami
9 ай бұрын
Yup! This can be useful if you if you need to re-use scripts or to share them with your team.
@ojaswanibakshi5314
16 күн бұрын
bro seriously you are a life saviour
@rafaelfonseca7942
7 ай бұрын
Helpful video... came in handy for me here! Thanks!
@pixegami
6 ай бұрын
Thank you! I'm glad to hear that :)
@muhammadqaisarali
9 ай бұрын
Thanks man, it was straight forward
@DamoOne
8 ай бұрын
Really well explained, thanks!
@pixegami
7 ай бұрын
Glad it was helpful!
@helloanshu4080
4 күн бұрын
mate thanks for the tutorial , it came in handy 😊
@stefanrankovic2514
23 күн бұрын
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
@mrpizzakingman4604
7 ай бұрын
just what i need :D
@pixegami
6 ай бұрын
Glad to hear that :)
@luishenriquelopesteodoro1921
6 ай бұрын
Excellent
@typehint
2 ай бұрын
This is an absolutely fantastic tutorial. Thanks for this!
@bgd_surf
9 ай бұрын
awesome!!
@pablomunsey
5 ай бұрын
Concise and to the point. I keep revisiting it as I progress. Would like to see a compatible one usng a pyproject.toml.
@pixegami
4 ай бұрын
Thank you, glad it's helpful! I need to take a look at using the toml format, I haven't used it before.
@TaerimYoon
Ай бұрын
Best video! Thank you!
@prajganesh
11 ай бұрын
Great one. side topic. Can you tell us which tool you use to create the youtube thumbnail? thanks.
@pixegami
9 ай бұрын
Thanks! I use Photoshop for the thumbnails.
@paloha
2 ай бұрын
Very well made video. Thanks
@marsbars1105
4 ай бұрын
This is such a great video! Thankyou very much!
@pixegami
4 ай бұрын
Glad it was helpful!
@Valer_100
2 ай бұрын
Really useful tutorial! It was very easy to understand.
@sg8nj
Ай бұрын
Great work
@EvanRickettsUk
4 ай бұрын
This was great, thank you!
@pixegami
4 ай бұрын
Glad you enjoyed it!
@ZhanCaitao
Ай бұрын
Nice video, really helped.
@_aade
7 ай бұрын
Will there be a problem if I delete previous versions?
@pixegami
6 ай бұрын
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).
@_aade
7 ай бұрын
Is there a way to change the version number automatically?
@pixegami
6 ай бұрын
Yeah, I'd recommend implementing this as something like a Git hook maybe for minor/patch version number.
@tarangsuri8932
2 ай бұрын
Great tutorial, Thanks!
@_aade
7 ай бұрын
Why do we have to use twine?
@pixegami
6 ай бұрын
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.
@_aade
6 ай бұрын
Thank you, my friend, I am grateful to you for answering all three of my questions :)@@pixegami
@paradoxial7665
4 ай бұрын
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??
@Tcrrxzz
9 ай бұрын
But the entry_points isn't a setup parameter? please explain it!! thanks
@HashtagTiluda
4 ай бұрын
A quick question, what if I want to pass a string to the hello function?
@pixegami
4 ай бұрын
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
@HashtagTiluda
4 ай бұрын
@@pixegami thank you!
@slipthetrap
5 ай бұрын
Is this all that is needed to also do: pipx install pixegami-hello ... for example? Thanks for the videos.
@pranav_arya
3 ай бұрын
which plugin or app you are using for VS Code terminal autocomplete suggestions?
@pixegami
3 ай бұрын
It's GitHub Co-Pilot.
@pranav_arya
3 ай бұрын
@@pixegami Thanks for responding. Are you using the fish terminal?
@lookingoffswitch4344
2 ай бұрын
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!
@xsamueljr
10 ай бұрын
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?
@Chuukwudi
Ай бұрын
Important question. Have you found an answer?
@xsamueljr
Ай бұрын
@@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
@niklyons9674
Ай бұрын
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?
@Happyendrew
3 ай бұрын
Thanks a lot!
@shreyansen1132
Ай бұрын
thanks!
@tellezgerardoruben5202
Ай бұрын
Is possible to make this work with extensions made in another language like C?
@cristiandiaz3551
5 ай бұрын
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 ?
@pixegami
5 ай бұрын
Have you tried adding them to `install_requires`? See here: python-packaging.readthedocs.io/en/latest/dependencies.html
@shubhamshastri7409
7 ай бұрын
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
@pixegami
6 ай бұрын
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.
@gokulyc
11 ай бұрын
can you make using hatch package manager
@TechnicalLodhiOfficial
4 ай бұрын
Bro I can't understand how setup environment variable ( 8:14 ) Can you please clarify that?
@pixegami
4 ай бұрын
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.
@TechnicalLodhiOfficial
4 ай бұрын
@@pixegami I googled it and found out the results Thanks!
@prashantmeti7986
4 ай бұрын
I didn't get how and where to export the token and api key please tell me
@pixegami
4 ай бұрын
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!
@richardalphonse2680
7 ай бұрын
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
@pixegami
6 ай бұрын
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.
@AbtinDar
5 ай бұрын
String library is not installed
@therealone0777
6 күн бұрын
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
@artofworkk
2 ай бұрын
I can't install twine
@anirbansom6682
3 ай бұрын
How to create a CLI Command which will accept arguments ? Like, pixegami-hello --file_name /file/path/
@pixegami
2 ай бұрын
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
@Investmentpunk1
Ай бұрын
Can you please redo that video with the pyproject.toml and poetry, since it is the industry standard nowadays. Thank you :)
@ishanoshada
9 ай бұрын
How to totp verification do???
@pixegami
9 ай бұрын
Hmm, is this part of the package publishing workflow, or is this for something different?
@ishanoshada
9 ай бұрын
@@pixegami pypi verification
@thetaomegatheta
Ай бұрын
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'.
@seesmof
2 ай бұрын
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 ✝💞
Пікірлер: 86