{"id":14800,"date":"2020-10-14T20:54:18","date_gmt":"2020-10-14T20:54:18","guid":{"rendered":"https:\/\/holypython.com\/?p=14800"},"modified":"2021-03-28T13:25:58","modified_gmt":"2021-03-28T13:25:58","slug":"python-packaging-hosting-code-at-github","status":"publish","type":"post","link":"https:\/\/holypython.com\/python-packaging-hosting-code-at-github\/","title":{"rendered":"Python Packaging: Hosting Code at Github"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"14800\" class=\"elementor elementor-14800\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-e31d1ab elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"e31d1ab\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6387486\" data-id=\"6387486\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-e168399 elementor-widget__width-auto elementor-widget elementor-widget-heading\" data-id=\"e168399\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Github Code Sharing and Development Platform<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3e7a183 elementor-widget elementor-widget-text-editor\" data-id=\"3e7a183\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Github is a great platform for open source software. It grew so much in recent years as the interest in computer programming grew but it&#8217;s also such a great platform for sharing, collaborating and contributing.<\/p><p>A lot of people even create repos (or repositories) as archiving their information in an open environment.\u00a0<\/p><p><b>It&#8217;s common to see lists of links, books, movies, knowledge sources etc although it&#8217;s mainly developed as a platform to share code.<\/b><\/p><p>So, our advice is don&#8217;t be shy, jump on the wagon if you don&#8217;t have a Github account yet, you will soon discover it offers so many amazing synergies and it&#8217;s not that complicated either.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c556434 elementor-widget elementor-widget-image\" data-id=\"c556434\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t<figure class=\"wp-caption\">\n\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"646\" height=\"259\" src=\"https:\/\/holypython.com\/wp-content\/uploads\/2020\/09\/github_logo2.png\" class=\"attachment-full size-full wp-image-15235\" alt=\"\" srcset=\"https:\/\/holypython.com\/wp-content\/uploads\/2020\/09\/github_logo2.png 646w, https:\/\/holypython.com\/wp-content\/uploads\/2020\/09\/github_logo2-300x120.png 300w\" sizes=\"(max-width: 646px) 100vw, 646px\" \/>\t\t\t\t\t\t\t\t\t\t\t<figcaption class=\"widget-image-caption wp-caption-text\">Github Logo<\/figcaption>\n\t\t\t\t\t\t\t\t\t\t<\/figure>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-702d6fb elementor-widget elementor-widget-text-editor\" data-id=\"702d6fb\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>So, in a nutshell, you host and share code on Github, no matter how advanced or basic it is. There is no such criteria as your code must be extraordinary so don&#8217;t be intimidated. You can start with something like:<\/p><p><code>msg = \"Hello World!\"<br \/>print(msg)<\/code><\/p><p>just to test the waters&#8230;<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-9d80581 elementor-widget__width-auto elementor-widget elementor-widget-heading\" data-id=\"9d80581\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Creating a Github Account<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-f9cfb72 elementor-widget elementor-widget-text-editor\" data-id=\"f9cfb72\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>You can sign up for Github from the top right corner.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1eead4b elementor-widget elementor-widget-text-editor\" data-id=\"1eead4b\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Creating a Github Account is simple. Just go to <a href=\"https:\/\/github.com\/join\" target=\"_blank\" rel=\"noopener\"><b>Github Signup Page<\/b><\/a>. Just pick s unique username, set your password and game is on!<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a3ea5c0 elementor-widget elementor-widget-image\" data-id=\"a3ea5c0\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t<figure class=\"wp-caption\">\n\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"976\" height=\"433\" src=\"https:\/\/holypython.com\/wp-content\/uploads\/2020\/09\/github-signup-Custom.png\" class=\"attachment-full size-full wp-image-15604\" alt=\"\" srcset=\"https:\/\/holypython.com\/wp-content\/uploads\/2020\/09\/github-signup-Custom.png 976w, https:\/\/holypython.com\/wp-content\/uploads\/2020\/09\/github-signup-Custom-300x133.png 300w, https:\/\/holypython.com\/wp-content\/uploads\/2020\/09\/github-signup-Custom-768x341.png 768w\" sizes=\"(max-width: 976px) 100vw, 976px\" \/>\t\t\t\t\t\t\t\t\t\t\t<figcaption class=\"widget-image-caption wp-caption-text\">Github Sign Up Page<\/figcaption>\n\t\t\t\t\t\t\t\t\t\t<\/figure>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-eebc36b elementor-widget elementor-widget-text-editor\" data-id=\"eebc36b\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Once you sign up, you can start a repo. Think of repositories as individual projects, libraries, software, notebooks or products.<\/p><p>You can have any amount of repository in your Github account.<\/p><p>Just click New Repository and it will take you to repository initialization page.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5ba5aa2 elementor-widget elementor-widget-image\" data-id=\"5ba5aa2\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t<figure class=\"wp-caption\">\n\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"749\" height=\"398\" src=\"https:\/\/holypython.com\/wp-content\/uploads\/2020\/09\/github-create-repository-Custom.png\" class=\"attachment-full size-full wp-image-15601\" alt=\"\" srcset=\"https:\/\/holypython.com\/wp-content\/uploads\/2020\/09\/github-create-repository-Custom.png 749w, https:\/\/holypython.com\/wp-content\/uploads\/2020\/09\/github-create-repository-Custom-300x159.png 300w\" sizes=\"(max-width: 749px) 100vw, 749px\" \/>\t\t\t\t\t\t\t\t\t\t\t<figcaption class=\"widget-image-caption wp-caption-text\">Github New Repository Menu<\/figcaption>\n\t\t\t\t\t\t\t\t\t\t<\/figure>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-437d38d elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"437d38d\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-20ea1e9\" data-id=\"20ea1e9\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-e3abbf1 elementor-widget__width-auto elementor-widget elementor-widget-heading\" data-id=\"e3abbf1\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Creating a Github Repository<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8d2a96a elementor-widget elementor-widget-text-editor\" data-id=\"8d2a96a\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Creating a repository is also easy. Just pick up a unique name. This name only has to be unique in your account. It doesn&#8217;t have to be globally unique. It will let you know with a green or red pop up message anyway.<\/p><p>You can also write a short description, why not. Although it&#8217;s optional it makes sense to at least jot a couple of words.<\/p><p>Recommended Reading:<\/p><ul><li><a href=\"https:\/\/holypython.com\/python-packaging-software-licenses-open-source-licensing-and-more\/\">Open Source Software Licenses<\/a><\/li><li><a href=\"https:\/\/holypython.com\/python-packaging-getting-ready\/\">Getting Ready for Packaging a Python Library<\/a><\/li><li><a href=\"https:\/\/holypython.com\/python-packaging-quick-tutorial-checklist\/\">Python Packaging Quick Tutorial and Checklist<\/a><\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5913dd2 elementor-widget elementor-widget-image\" data-id=\"5913dd2\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t<figure class=\"wp-caption\">\n\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"926\" height=\"750\" src=\"https:\/\/holypython.com\/wp-content\/uploads\/2020\/09\/github-create-repository2-Custom.png\" class=\"attachment-full size-full wp-image-15602\" alt=\"\" srcset=\"https:\/\/holypython.com\/wp-content\/uploads\/2020\/09\/github-create-repository2-Custom.png 926w, https:\/\/holypython.com\/wp-content\/uploads\/2020\/09\/github-create-repository2-Custom-300x243.png 300w, https:\/\/holypython.com\/wp-content\/uploads\/2020\/09\/github-create-repository2-Custom-768x622.png 768w\" sizes=\"(max-width: 926px) 100vw, 926px\" \/>\t\t\t\t\t\t\t\t\t\t\t<figcaption class=\"widget-image-caption wp-caption-text\">Steps for Creating a Github Repository<\/figcaption>\n\t\t\t\t\t\t\t\t\t\t<\/figure>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4f68fe9 elementor-widget elementor-widget-text-editor\" data-id=\"4f68fe9\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Some important criteria to consider are:<\/p><ul><li><ul><li><b>Public vs Private<\/b>: This option is straightforward. If you&#8217;d like to keep your repo as private no one will be able to see it except you and people you assign it to. Public repos are open to public view and contribution. You can also change it later.<\/li><li><b>Adding a README file<\/b>: Checking this option almost always makes sense. It&#8217;s great to have a Readme file, content of which also shows up on the main page of your repository. You can always delete it later if you don&#8217;t want it or you can change it as well.<\/li><li><b>Adding a gitignore file:\u00a0<\/b>This file tells setup file which files not to include in a setup. So, it&#8217;s an ignore template. This is genius because there can be lots of irrelevant files like temp files from your IDE or from Python itself that you actually want to avoid in software development.<\/li><li><b>Adding a licence<\/b>: Adding license can be more serious than it sometimes seems. If you&#8217;re in a rush you can always uncheck this option and add a license you choose later.<\/li><\/ul><\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-5b539c2 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"5b539c2\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-15b6b4f\" data-id=\"15b6b4f\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-f513b5a elementor-widget elementor-widget-text-editor\" data-id=\"f513b5a\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Thank you for checking out Github component of the Python packaging series. When you are ready you can also consider <a href=\"https:\/\/holypython.com\/python-packaging-uploading-a-python-library-to-pypi\/\">uploading your unique Python library to PyPI<\/a>.<\/p><p>If you need some inspiration check out this post:<\/p><p><a class=\"row-title\" href=\"https:\/\/holypython.com\/whats-next-python\/\" aria-label=\"\u201cI\u2019ve been learning coding. What\u2019s next? (Python Edition)\u201d (Edit)\">I\u2019ve been learning coding. What\u2019s next? (Python Edition)<\/a><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Github Code Sharing and Development Platform Github is a great platform for open source software. It grew so much in recent years as the interest in computer programming grew but it&#8217;s also such a great platform for sharing, collaborating and contributing. A lot of people even create repos (or repositories) as archiving their information in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":15609,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[67,52],"tags":[],"class_list":["post-14800","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-packaging","category-tutorials"],"acf":[],"_links":{"self":[{"href":"https:\/\/holypython.com\/wp-json\/wp\/v2\/posts\/14800","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/holypython.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/holypython.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/holypython.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/holypython.com\/wp-json\/wp\/v2\/comments?post=14800"}],"version-history":[{"count":0,"href":"https:\/\/holypython.com\/wp-json\/wp\/v2\/posts\/14800\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/holypython.com\/wp-json\/wp\/v2\/media\/15609"}],"wp:attachment":[{"href":"https:\/\/holypython.com\/wp-json\/wp\/v2\/media?parent=14800"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/holypython.com\/wp-json\/wp\/v2\/categories?post=14800"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/holypython.com\/wp-json\/wp\/v2\/tags?post=14800"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}