Create, Package & Publish your OWN Python Library

Поделиться
HTML-код
  • Опубликовано: 24 ноя 2024

Комментарии • 157

  • @willemdafoe9646
    @willemdafoe9646 3 года назад +163

    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 года назад +22

      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 года назад +5

      To be honest, the older folks tend to overcomplicate the process. I find my classmates explaining better than the professor.

    • @krisculin9679
      @krisculin9679 3 года назад +2

      @@mikloslorinczi227 I got both of you beat. I just turned 43 yo.

    • @bmuraaz6024
      @bmuraaz6024 3 года назад +1

      He's in sixth form, probably

  • @atrumluminarium
    @atrumluminarium 3 года назад +6

    This is genuinely one of the best videos about packaging python modules on RUclips

  • @varunnagrare4912
    @varunnagrare4912 4 года назад +11

    You sir are amazing! I've been searching about this for 4 months and here it is simple and easy

  • @mohajeramir
    @mohajeramir 4 года назад +21

    It was excellent. Thank you so much, but I could not help noticing the low ceiling. I would not survive that.

  • @agator2660
    @agator2660 3 года назад +4

    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.

  • @عالمالبرمجةالعربي
    @عالمالبرمجةالعربي 2 года назад +1

    Thank you a lot to support the community by an information
    All Regards

  • @raymundoescobar9872
    @raymundoescobar9872 3 года назад

    all my respect and admiration man, from an older brother of a guy being bully for born different

  • @xeoplay1955
    @xeoplay1955 4 года назад +1

    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

  • @papiangelus
    @papiangelus 4 года назад +5

    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?

  • @mohajeramir
    @mohajeramir 4 года назад +16

    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 🥺🥺😭

  • @python_by_abhishek
    @python_by_abhishek 3 года назад

    Subscribed instantly as the video ended.

  • @trerobinson5987
    @trerobinson5987 2 года назад +1

    This was very helpful and informative. Thank you for creating the easy-to-follow content!

  • @datasciencesagemode5691
    @datasciencesagemode5691 4 года назад +4

    Superb explanation !!! I would love to have more videos like this. Thanks a lot.

  • @coolperson213
    @coolperson213 2 года назад

    Thanks a bunch dude! I'm learning python right now and can't wait to show this to my friends :D

  • @shivan2418
    @shivan2418 4 года назад +2

    Great video. I made my own package today!

  • @coolperson213
    @coolperson213 2 года назад

    Yo im ur 1 thousandth sub!! congrats

  • @santiagobmx1000
    @santiagobmx1000 4 года назад +2

    Mad chill video. Well done man. thank you!

  • @ihssancanmturk3842
    @ihssancanmturk3842 4 года назад +4

    Me think: wonderful this super wonderful that video tutorial, thanks for presenting and sharing! ;)

  • @jamestang1737
    @jamestang1737 4 года назад +6

    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 3 года назад +1

      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

  • @alaahoussen2914
    @alaahoussen2914 3 года назад +1

    Thanks very much for your tutorial Please Keep it up

  • @alwayscubing8200
    @alwayscubing8200 3 года назад

    Wow! it really helped me in many ways while making large programs...impressed my friends

  • @WysockiD
    @WysockiD 3 года назад +1

    amazing video, how would i go about updating a library afterwards?

  • @DefaultGamingChannel
    @DefaultGamingChannel 3 года назад +2

    One word: AMAZING!!!!!

    • @Atomx1j
      @Atomx1j 3 года назад

      acually its 3 words:
      One word: AMAZING!!!!!
      1 2 3
      but YEA IT IS AMAZING

  • @debjyotibanerjee7750
    @debjyotibanerjee7750 2 года назад

    Really interesting man. Thanks for the video...

  • @bhoopendragupta4782
    @bhoopendragupta4782 2 года назад

    Simple and easy to understand, keep up the good work 👍.

  • @chetana9802
    @chetana9802 2 года назад

    this is so cool
    now can you help package a PyQT5 application the same way and make it QT license ?

  • @d3vboi
    @d3vboi 2 года назад

    btw if the twine part isnt working for you, do python3 -m twine instead of just twine

  • @NicolasMichel-be
    @NicolasMichel-be 3 года назад

    Very good tuto in all aspects. Thanks.

  • @gunjanshah3467
    @gunjanshah3467 4 года назад +1

    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??

  • @strike6621
    @strike6621 3 года назад +1

    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?

  • @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

  • @-DR1FT.
    @-DR1FT. 4 года назад +1

    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

  • @bionicman285
    @bionicman285 4 года назад +2

    Thank you so much, you saved my live :)

  • @DevOpsJourney
    @DevOpsJourney 3 года назад

    How are you getting the nice colorful font in VSCode? Thanks!

  • @neildatt9128
    @neildatt9128 3 года назад +1

    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 года назад +1

      The theme is called SynthWave '84

  • @akkaraponchaiyana6520
    @akkaraponchaiyana6520 3 года назад

    I cannot file a module after I imported the package. Can anyone help me?

  • @virencablenet9546
    @virencablenet9546 2 года назад

    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

  • @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

  • @giorgikuchava5623
    @giorgikuchava5623 2 года назад

    Thank you very much for good explanation!

  • @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

  • @athcubesprogrammer6509
    @athcubesprogrammer6509 4 года назад

    Published the Module, but when installing in cmd and import in python script, I get ModuleNotFoundError

  • @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?

  • @Boxing0715
    @Boxing0715 3 года назад

    We Need More Content!!!

  • @servercraft17
    @servercraft17 2 года назад

    what if you dont have a documents folder?

  • @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

  • @aaroldaaroldson708
    @aaroldaaroldson708 3 года назад

    After I type my username in the command prompt it is not asking for password and hangs

  • @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.

  • @yantogaming1848
    @yantogaming1848 2 года назад

    Why are all the functions written in the __init__ file instead of their own files????

  • @eshaangupta4101
    @eshaangupta4101 4 года назад

    Great video, thanks a lot Josh!

  • @kkrolley
    @kkrolley 3 года назад +2

    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=['']
    )

  • @sunandsujai
    @sunandsujai 3 года назад

    why am i getting an error that twine is not defined

  • @gabrielegatti2322
    @gabrielegatti2322 3 года назад

    Very useful!!
    Thank you for this great tutorial!!

  • @gabot1983
    @gabot1983 4 года назад

    Like a boss, clean, easy

  • @jarvistestingtutorials9746
    @jarvistestingtutorials9746 4 года назад +1

    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

  • @codinglemon5768
    @codinglemon5768 3 года назад

    when I tried to installed it it showed me a ton of errors. Is there a way to fix it?

  • @basasairam1784
    @basasairam1784 2 года назад

    im getting an http connection error while uploading the package

  • @PawanMishra-zt3vb
    @PawanMishra-zt3vb 3 года назад

    Its showing, -) Invalid or non-existent authentication information,
    While uploading the dist*

  • @__shadow__
    @__shadow__ 4 года назад +3

    what about updating our library?

    • @joshualowe1002
      @joshualowe1002  4 года назад +3

      Make your changes, add to changelog, change version in setup & run the upload command again :)

    • @xeoplay1955
      @xeoplay1955 4 года назад +2

      @@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

  • @jerrylin0312
    @jerrylin0312 2 года назад

    How do you import it? I can’t seem to find a way

  • @AmalMathewTech
    @AmalMathewTech 3 года назад

    Helpful tutorial ,Thank you

  • @keshavsingh4522
    @keshavsingh4522 4 года назад +1

    awesome video

  • @darshikaverma9170
    @darshikaverma9170 3 года назад

    you saved my day !!

  • @_vuk.
    @_vuk. 4 года назад

    I cant find the library in the import list. Can someone help me?

  • @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

  • @tempura_edward4330
    @tempura_edward4330 3 года назад

    great video! thank you so much!!

  • @mrfrozen97-despicable
    @mrfrozen97-despicable 3 года назад

    Plz also tell, how to update those libraries?

  • @MohAmuza
    @MohAmuza 2 года назад

    thank you so much very useful.

  • @darkjohny232
    @darkjohny232 2 года назад

    Really useful video thanks! :))))

  • @databridgeconsultants9163
    @databridgeconsultants9163 4 года назад

    very good work mate.

  • @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

  • @tmb2313
    @tmb2313 3 года назад

    Can u share ur color theme pls :) And nice video too

  • @leniedor733
    @leniedor733 3 года назад

    good video man, keep goin' !

  • @learncomputersciencewithfaisal
    @learncomputersciencewithfaisal 4 года назад

    good tutorial explanation

  • @nathanbenton2051
    @nathanbenton2051 2 года назад

    great job!

  • @brianrivers6052
    @brianrivers6052 3 года назад

    Great video!

  • @jeffreycuadros1685
    @jeffreycuadros1685 4 года назад

    Thanks! Great video

  • @shanvantharunmozhi
    @shanvantharunmozhi 4 года назад

    Thank you SO MUCH It was very useful

  • @michelmerheb1882
    @michelmerheb1882 3 года назад +1

    I haven’t even started learning Python. Idk why i’m here.

  • @gedeonmuhawenayo8429
    @gedeonmuhawenayo8429 4 года назад

    Well done man

  • @radeshf
    @radeshf 3 года назад

    that was very useful
    thank you

  • @bigbrainer9691
    @bigbrainer9691 4 года назад

    How do u import the module

  • @way2ml
    @way2ml 4 года назад +1

    Thank you so much.

  • @M.I.S
    @M.I.S 3 года назад

    thank you ....! very good

  • @dr.dundun
    @dr.dundun 3 года назад

    good tutorial, thanks

  • @EduardoGarcia-tv2fc
    @EduardoGarcia-tv2fc 4 года назад

    great video man, keep up with the awesome content!

  • @Major7Sharp5
    @Major7Sharp5 3 года назад

    Very nice, thank you

  • @mattiarigiroli
    @mattiarigiroli 3 года назад

    Thanks man, very usefull!

  • @serkratos1216
    @serkratos1216 3 года назад

    I prefer the WTFPL license :)

  • @afroyed3295
    @afroyed3295 4 года назад +1

    what VS Code theme are u using ???

  • @automave7514
    @automave7514 3 года назад

    Great mate!

  • @shreyasb.s3819
    @shreyasb.s3819 3 года назад

    This is awesome

  • @shahriyardx
    @shahriyardx 4 года назад

    Awesome video.

  • @bobbydeng4932
    @bobbydeng4932 4 года назад

    Really helpful!

  • @yogitamisal2650
    @yogitamisal2650 4 года назад +1

    Amazing 🔥👍

  • @raghucharan5213
    @raghucharan5213 4 года назад

    can make a video how to develop api using django-python

  • @denysstepanyshchenko631
    @denysstepanyshchenko631 4 года назад +1

    Thank you!!!

  • @JosephChancey
    @JosephChancey 2 года назад

    Thank you

  • @alaahoussen2914
    @alaahoussen2914 3 года назад +1

    Thanks Thanks

  • @BS-jw7nf
    @BS-jw7nf 4 года назад

    cheers mate

  • @nishantgarg3688
    @nishantgarg3688 2 года назад +1

    Thanks yr