{"id":22636039,"url":"https://github.com/justwaitfor-me/pypi-tutorial","last_synced_at":"2025-03-29T04:46:07.462Z","repository":{"id":231580811,"uuid":"696504836","full_name":"justwaitfor-me/PyPi-Tutorial","owner":"justwaitfor-me","description":"How to upload your Python Package","archived":false,"fork":false,"pushed_at":"2024-04-04T17:40:33.000Z","size":596,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-03T14:41:43.660Z","etag":null,"topics":["package","pip","pypi","pypi-package","pypi-upload","python"],"latest_commit_sha":null,"homepage":"https://www.pypi.org/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/justwaitfor-me.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-09-25T22:02:13.000Z","updated_at":"2023-09-25T22:09:13.000Z","dependencies_parsed_at":"2024-04-04T18:46:28.551Z","dependency_job_id":"a91ae330-0e1b-4d99-8710-d6b650012108","html_url":"https://github.com/justwaitfor-me/PyPi-Tutorial","commit_stats":null,"previous_names":["justwaitfor-me/pypi-tutorial"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justwaitfor-me%2FPyPi-Tutorial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justwaitfor-me%2FPyPi-Tutorial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justwaitfor-me%2FPyPi-Tutorial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justwaitfor-me%2FPyPi-Tutorial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justwaitfor-me","download_url":"https://codeload.github.com/justwaitfor-me/PyPi-Tutorial/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246140544,"owners_count":20729797,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["package","pip","pypi","pypi-package","pypi-upload","python"],"created_at":"2024-12-09T03:17:44.981Z","updated_at":"2025-03-29T04:46:07.444Z","avatar_url":"https://github.com/justwaitfor-me.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv\u003e\n        \u003ch1\u003e\u003cspan style=\"font-weight:normal\"\u003eHow to upload a Python package to Pypi?\u003c/span\u003e\u003c/h1\u003e\n        \u003cdiv style=\"display: flex; align-items: center;\"\u003e\n            \u003cp\u003e\n                The Python Package Index, abbreviated as PyPI, is the official repository of software for the Python\n                programming language. By default, pip — which is the most popular Python package manager — uses PyPI as\n                the\n                source for retrieving package dependencies.\n            \u003c/p\u003e\n            \u003cimg src=\"https://pypi.org/static/images/logo-large.9f732b5f.svg\" alt=\"PyPI logo\"\n                style=\"width: 200px; height: 200px; margin-left: 20px;\"\u003e\n        \u003c/div\u003e\n        \u003ch2\u003e\u003cspan style=\"font-weight:normal; font-style:normal\"\u003e1. PyPi Account\u003c/span\u003e\u003c/h2\u003e\n        \u003ch4\u003e\u003cspan style=\"font-weight:normal\"\u003e1. Create an account with PyPi \u003c/span\u003e\u003ca\n                href=\"https://pypi.org/account/register/\" style=\"text-decoration:none\"\u003e\u003cspan\n                    class=\"Hyperlink\"\u003ehere\u003c/span\u003e\u003c/a\u003e\u003cspan style=\"font-weight:normal\"\u003e and verify your email\n                address\u003c/span\u003e\u003c/h4\u003e\n        \u003ch4\u003e\u003cspan style=\"font-weight:normal\"\u003e2. In your \u003c/span\u003e\u003ca href=\"https://pypi.org/manage/account/\"\n                style=\"text-decoration:none\"\u003e\u003cspan class=\"Hyperlink\"\u003eaccount settings\u003c/span\u003e\u003c/a\u003e\u003cspan\n                style=\"font-weight:normal\"\u003e, scroll down and enable two-factor authentication (2FA)\u003c/span\u003e\u003c/h4\u003e\n        \u003cp class=\"IndentedCode\"\u003e\u003cspan\u003e1. Enable *PyPI-Recovery-Codes* and save them in a File\u003c/span\u003e\u003cbr /\u003e\u003cspan\u003e2.\n                Acivate 2FA and scan the QR Code with an Authenticator\u003c/span\u003e\u003cbr /\u003e\u003cbr /\u003e\u003cspan\n                style=\"-aw-import:spaces\"\u003e\u0026#xa0;\u0026#xa0;\u0026#xa0; \u003c/span\u003e\u003cspan\u003e- Botan (programming\n                library)\u003c/span\u003e\u003cbr /\u003e\u003cspan style=\"-aw-import:spaces\"\u003e\u0026#xa0;\u0026#xa0;\u0026#xa0; \u003c/span\u003e\u003cspan\u003e-\n                FreeOTP\u003c/span\u003e\u003cbr /\u003e\u003cspan style=\"-aw-import:spaces\"\u003e\u0026#xa0;\u0026#xa0;\u0026#xa0; \u003c/span\u003e\u003cspan\u003e- Google\n                Authenticator\u003c/span\u003e\u003cbr /\u003e\u003cspan style=\"-aw-import:spaces\"\u003e\u0026#xa0;\u0026#xa0;\u0026#xa0; \u003c/span\u003e\u003cspan\u003e-\n                multiOTP\u003c/span\u003e\u003cbr /\u003e\u003cspan style=\"-aw-import:spaces\"\u003e\u0026#xa0;\u0026#xa0;\u0026#xa0; \u003c/span\u003e\u003cspan\u003e- Comparison of\n                TOTP applications\u003c/span\u003e\u003c/p\u003e\n        \u003ch4\u003e\u003cspan style=\"font-weight:normal\"\u003e3. Finally, you have to generate an API Token at the bottom of your\n                account\n                settings. You will need the Token later!\u003c/span\u003e\u003c/h4\u003e\n        \u003ch2\u003e\u003cspan style=\"font-weight:normal; font-style:normal\"\u003e2. Python Package\u003c/span\u003e\u003c/h2\u003e\n        \u003ch4\u003e\u003cspan style=\"font-weight:normal\"\u003e1. create a new Folder (package_name) and open it in your favourite\n            \u003c/span\u003e\u003ca href=\"https://code.visualstudio.com/download\" style=\"text-decoration:none\"\u003e\u003cspan\n                    class=\"Hyperlink\"\u003ecode editor\u003c/span\u003e\u003c/a\u003e\u003c/h4\u003e\n        \u003ch4\u003e\u003cspan style=\"font-weight:normal\"\u003e2. create the Files and Folders in your Folder by using the templates\n                listed below. Replace the [] with your own names\u003c/span\u003e\u003c/h4\u003e\n        \u003cp\u003e\u003cspan style=\"font-weight:bold\"\u003eNOTE:\u003c/span\u003e\u003cspan\u003e You have to change the Information in every File to\n                your\n                Information\u003c/span\u003e\u003c/p\u003e\n        \u003cp class=\"IndentedCode\"\u003e\n            \u003cspan\u003eLICENSE\u003c/span\u003e\u003cbr /\u003e\u003cspan\u003eMANIFEST.in\u003c/span\u003e\u003cbr /\u003e\u003cspan\u003epyproject.toml\u003c/span\u003e\u003cbr /\u003e\u003cspan\u003eREADME.md\u003c/span\u003e\u003cbr /\u003e\u003cspan\u003erequirements.txt\u003c/span\u003e\u003cbr /\u003e\u003cspan\u003esetup.py\u003c/span\u003e\u003cbr /\u003e\u003cspan\u003e/src\u003c/span\u003e\u003cbr /\u003e\u003cspan\n                style=\"-aw-import:spaces\"\u003e\u0026#xa0;\u0026#xa0;\u0026#xa0; \u003c/span\u003e\u003cspan\u003e/[package_name]\u003c/span\u003e\u003cbr /\u003e\u003cspan\n                style=\"-aw-import:spaces\"\u003e\u0026#xa0;\u0026#xa0;\u0026#xa0;\u0026#xa0;\u0026#xa0;\u0026#xa0;\u0026#xa0;\n            \u003c/span\u003e\u003cspan\u003esrc/__init__.py\u003c/span\u003e\u003cspan style=\"-aw-import:spaces\"\u003e\u0026#xa0;\u0026#xa0;\u0026#xa0;\u0026#xa0;\n            \u003c/span\u003e\u003cspan\u003e(empty file)\u003c/span\u003e\u003cbr /\u003e\u003cspan\n                style=\"-aw-import:spaces\"\u003e\u0026#xa0;\u0026#xa0;\u0026#xa0;\u0026#xa0;\u0026#xa0;\u0026#xa0;\u0026#xa0;\n            \u003c/span\u003e\u003cspan\u003e[Modul_1].py\u003c/span\u003e\u003cspan style=\"-aw-import:spaces\"\u003e\u0026#xa0;\u0026#xa0;\u0026#xa0;\u0026#xa0;\u0026#xa0;\u0026#xa0;\u0026#xa0;\n            \u003c/span\u003e\u003cspan\u003e(your code)\u003c/span\u003e\u003cbr /\u003e\u003cspan\n                style=\"-aw-import:spaces\"\u003e\u0026#xa0;\u0026#xa0;\u0026#xa0;\u0026#xa0;\u0026#xa0;\u0026#xa0;\u0026#xa0;\n            \u003c/span\u003e\u003cspan\u003e[Modul_2].py\u003c/span\u003e\u003cspan style=\"-aw-import:spaces\"\u003e\u0026#xa0;\u0026#xa0;\u0026#xa0;\u0026#xa0;\u0026#xa0;\u0026#xa0;\u0026#xa0;\n            \u003c/span\u003e\u003cspan\u003e(your code)\u003c/span\u003e\u003cbr /\u003e\u003cspan\n                style=\"-aw-import:spaces\"\u003e\u0026#xa0;\u0026#xa0;\u0026#xa0;\u0026#xa0;\u0026#xa0;\u0026#xa0;\u0026#xa0;\n            \u003c/span\u003e\u003cspan\u003eyou can add more\n                Moduls\u003c/span\u003e\n        \u003c/p\u003e\n        \u003cp\u003e\u003cspan\u003eIt should look like this:\u003c/span\u003e\u003c/p\u003e\n        \u003cp\u003e\u003ca href=\"https://iili.io/JJS1lRI.png\" style=\"text-decoration:none\"\u003e\u003cimg\n                    src=\"https://raw.githubusercontent.com/justwaitfor-me/PyPi-Tutorial/main/images/Aspose.Words.84ff4c03-616d-4aac-b6a5-47737d38c75e.001.png\" width=\"235\" height=\"291\"\n                    alt=\"Data.png\"\n                    style=\"border-style:none; -aw-left-pos:0pt; -aw-rel-hpos:column; -aw-rel-vpos:paragraph; -aw-top-pos:0pt; -aw-wrap-type:inline\" /\u003e\u003c/a\u003e\n        \u003c/p\u003e\n        \u003ch2\u003e\u003cspan style=\"font-weight:normal; font-style:normal\"\u003e3. PyPi Package\u003c/span\u003e\u003c/h2\u003e\n        \u003ch4\u003e\u003cspan style=\"font-weight:normal\"\u003e0. install build and twine\u003c/span\u003e\u003c/h4\u003e\n        \u003cp\u003e\u003cspan style=\"font-weight:bold\"\u003eNOTE:\u003c/span\u003e\u003cspan\u003e Make shure that you have \u003c/span\u003e\u003cspan\n                class=\"InlineCode2\"\u003epip\u003c/span\u003e\u003cspan\u003e installed\u003c/span\u003e\u003c/p\u003e\n        \u003cp class=\"FencedCode\"\u003e\u003cspan\u003epip install twine\u003c/span\u003e\u003cbr /\u003e\u003cspan\u003epip install build\u003c/span\u003e\u003c/p\u003e\n        \u003ch4\u003e\u003cspan style=\"font-weight:normal\"\u003e1. install the Package locally:\u003c/span\u003e\u003c/h4\u003e\n        \u003cp class=\"FencedCode\"\u003e\u003cspan\u003ecd [package_name]\u003c/span\u003e\u003cbr /\u003e\u003cspan\u003epip install .\u003c/span\u003e\u003c/p\u003e\n        \u003cp\u003e\u003ca href=\"https://iili.io/JJSwbLB.png\" style=\"text-decoration:none\"\u003e\u003cimg\n                    src=\"https://raw.githubusercontent.com/justwaitfor-me/PyPi-Tutorial/main/images/Aspose.Words.84ff4c03-616d-4aac-b6a5-47737d38c75e.002.png\" width=\"1598\" height=\"514\"\n                    alt=\"JJSwbLB.md.png\"\n                    style=\"border-style:none; -aw-left-pos:0pt; -aw-rel-hpos:column; -aw-rel-vpos:paragraph; -aw-top-pos:0pt; -aw-wrap-type:inline\" /\u003e\u003c/a\u003e\n        \u003c/p\u003e\n        \u003cp\u003e\u003cspan\u003eNow your Repo should look like this:\u003c/span\u003e\u003c/p\u003e\n        \u003cp\u003e\u003ca href=\"https://iili.io/JJSNKIR.png\" style=\"text-decoration:none\"\u003e\u003cimg\n                    src=\"https://raw.githubusercontent.com/justwaitfor-me/PyPi-Tutorial/main/images/Aspose.Words.84ff4c03-616d-4aac-b6a5-47737d38c75e.003.png\" width=\"246\" height=\"537\"\n                    alt=\"JJSNKIR.png\"\n                    style=\"border-style:none; -aw-left-pos:0pt; -aw-rel-hpos:column; -aw-rel-vpos:paragraph; -aw-top-pos:0pt; -aw-wrap-type:inline\" /\u003e\u003c/a\u003e\n        \u003c/p\u003e\n        \u003cp\u003e\u003cspan style=\"font-weight:bold\"\u003eNOTE:\u003c/span\u003e\u003cspan\u003e You can Test your Package localy before deploying\n                it\u003c/span\u003e\n        \u003c/p\u003e\n        \u003ch4\u003e\u003cspan style=\"font-weight:normal\"\u003e2. building the Package (this Step can take some time)\u003c/span\u003e\u003c/h4\u003e\n        \u003cp class=\"FencedCode\"\u003e\u003cspan\u003epython -m build\u003c/span\u003e\u003c/p\u003e\n        \u003cp\u003e\u003cspan\u003eoutput (end):\u003c/span\u003e\u003c/p\u003e\n        \u003cp class=\"FencedCode\"\u003e\u003cspan\u003eSuccessfully built Package_Name-0.0.1.tar.gz and\n                Package_Name-0.0.1-py3-none-any.whl\u003c/span\u003e\u003c/p\u003e\n        \u003cp\u003e\u003cspan\u003eNow you should have the /dist direcory:\u003c/span\u003e\u003c/p\u003e\n        \u003cp\u003e\u003ca href=\"https://iili.io/JJSPva4.png\" style=\"text-decoration:none\"\u003e\u003cimg\n                    src=\"https://raw.githubusercontent.com/justwaitfor-me/PyPi-Tutorial/main/images/Aspose.Words.84ff4c03-616d-4aac-b6a5-47737d38c75e.004.png\" width=\"252\" height=\"641\"\n                    alt=\"JJSPva4.png\"\n                    style=\"border-style:none; -aw-left-pos:0pt; -aw-rel-hpos:column; -aw-rel-vpos:paragraph; -aw-top-pos:0pt; -aw-wrap-type:inline\" /\u003e\u003c/a\u003e\n        \u003c/p\u003e\n        \u003ch4\u003e\u003cspan style=\"font-weight:normal\"\u003e3. deploying the Package\u003c/span\u003e\u003c/h4\u003e\n        \u003cp\u003e\u003cspan style=\"font-weight:bold\"\u003eNOTE:\u003c/span\u003e\u003cspan\u003e \u003c/span\u003e\u003cspan class=\"InlineCode2\"\u003eThe user 'username'\n                isn't\n                allowed to upload to project 'package_name'.\u003c/span\u003e\u003cspan\u003e means that the Package Name ist allready\n                taken.\u003c/span\u003e\u003c/p\u003e\n        \u003cp class=\"FencedCode\"\u003e\u003cspan\u003epython -m twine upload dist/*\u003c/span\u003e\u003c/p\u003e\n        \u003cp\u003e\u003cspan\u003eUsername = \u003c/span\u003e\u003cspan class=\"InlineCode2\"\u003e__token__\u003c/span\u003e\u003c/p\u003e\n        \u003cp\u003e\u003cspan\u003ePassword = \u003c/span\u003e\u003cspan class=\"InlineCode2\"\u003e[your Token]\u003c/span\u003e\u003c/p\u003e\n        \u003cp\u003e\u003ca href=\"https://iili.io/JJSLU9R.md.png\" style=\"text-decoration:none\"\u003e\u003cimg\n                    src=\"https://raw.githubusercontent.com/justwaitfor-me/PyPi-Tutorial/main/images/Aspose.Words.84ff4c03-616d-4aac-b6a5-47737d38c75e.005.png\" width=\"667\" height=\"207\"\n                    alt=\"JJSLU9R.md.png\"\n                    style=\"border-style:none; -aw-left-pos:0pt; -aw-rel-hpos:column; -aw-rel-vpos:paragraph; -aw-top-pos:0pt; -aw-wrap-type:inline\" /\u003e\u003c/a\u003e\n        \u003c/p\u003e\n        \u003ch4\u003e\u003cspan style=\"font-weight:normal\"\u003eYour Package is now online on PyPi and can be used by downloading it\n                with\n                pip\u003c/span\u003e\u003c/h4\u003e\n        \u003cp class=\"FencedCode\"\u003e\u003cspan\u003epip install [package_name]\u003c/span\u003e\u003c/p\u003e\n        \u003ch2\u003e\u003cspan style=\"font-weight:normal; font-style:normal\"\u003e4. Updating the Package\u003c/span\u003e\u003c/h2\u003e\n        \u003cp\u003e\u003cspan\u003eTo update your Package you have to change the version in the \u003c/span\u003e\u003cspan\n                class=\"InlineCode2\"\u003epyproject.toml\u003c/span\u003e\u003cspan\u003e file.\u003c/span\u003e\u003c/p\u003e\n        \u003cp class=\"FencedCode\"\u003e\u003cspan\u003epython -m build\u003c/span\u003e\u003cbr /\u003e\u003cspan\u003epython -m twine upload --skip-existing\n                dist/*\u003c/span\u003e\u003c/p\u003e\n        \u003cp\u003e\u003ca href=\"https://iili.io/JJSml6P.md.png\" style=\"text-decoration:none\"\u003e\u003cimg\n                    src=\"https://raw.githubusercontent.com/justwaitfor-me/PyPi-Tutorial/main/images/Aspose.Words.84ff4c03-616d-4aac-b6a5-47737d38c75e.006.png\" width=\"667\" height=\"187\"\n                    alt=\"JJSml6P.md.png\"\n                    style=\"border-style:none; -aw-left-pos:0pt; -aw-rel-hpos:column; -aw-rel-vpos:paragraph; -aw-top-pos:0pt; -aw-wrap-type:inline\" /\u003e\u003c/a\u003e\n        \u003c/p\u003e\n        \u003cp\u003e\u003cspan\u003eTo install the new Version:\u003c/span\u003e\u003c/p\u003e\n        \u003cp class=\"FencedCode\"\u003e\u003cspan\u003epip uninstall Package_Name\u003c/span\u003e\u003cbr /\u003e\u003cspan\u003epip install Package_Name\u003c/span\u003e\u003c/p\u003e\n    \u003c/div\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustwaitfor-me%2Fpypi-tutorial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustwaitfor-me%2Fpypi-tutorial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustwaitfor-me%2Fpypi-tutorial/lists"}