{"id":1381,"date":"2025-02-27T15:36:10","date_gmt":"2025-02-27T13:36:10","guid":{"rendered":"https:\/\/geckich.site\/?p=1381"},"modified":"2025-02-27T15:36:23","modified_gmt":"2025-02-27T13:36:23","slug":"share-folder-via-http-using-python-command","status":"publish","type":"post","link":"https:\/\/geckich.space\/?p=1381","title":{"rendered":"Share folder via HTTP using Python command"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">If we need to quickly make folder content available via HTTP, we can use a quick Python command. It&#8217;s easier than configuring FTP or Apache.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Navigate to folder you wish to share:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>cd \/folder\/to\/share<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">And execute python command:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For python versions before 3 (2.6, 2.7):<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>python -m SimpleHTTPServer 8088<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">(8088 &#8211; any free port)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For python3:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>python3 -m http.server 8088 <\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then open in web browser: http:\/\/your_server_ip:8088<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To cancel sharing just hit Ctrl+c in server console.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If we need to quickly make folder content available via HTTP, we can use a quick Python command. It&#8217;s easier than configuring FTP or Apache. Navigate to folder you wish to share: cd \/folder\/to\/share And execute python command: For python versions before 3 (2.6, 2.7): python -m SimpleHTTPServer 8088 (8088 &#8211; any free port) For &hellip; <a href=\"https:\/\/geckich.space\/?p=1381\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Share folder via HTTP using Python command<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[10,7,1],"tags":[192,48,116],"class_list":["post-1381","post","type-post","status-publish","format-standard","hentry","category-linux","category-sysadmin","category-uncategorized","tag-https","tag-linux","tag-python"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/geckich.space\/index.php?rest_route=\/wp\/v2\/posts\/1381","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/geckich.space\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/geckich.space\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/geckich.space\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/geckich.space\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1381"}],"version-history":[{"count":3,"href":"https:\/\/geckich.space\/index.php?rest_route=\/wp\/v2\/posts\/1381\/revisions"}],"predecessor-version":[{"id":1386,"href":"https:\/\/geckich.space\/index.php?rest_route=\/wp\/v2\/posts\/1381\/revisions\/1386"}],"wp:attachment":[{"href":"https:\/\/geckich.space\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1381"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/geckich.space\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1381"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/geckich.space\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}