{"id":159,"date":"2023-10-13T07:12:00","date_gmt":"2023-10-13T10:12:00","guid":{"rendered":"https:\/\/difusao.tech\/blog\/?p=159"},"modified":"2023-10-10T22:19:24","modified_gmt":"2023-10-11T01:19:24","slug":"criar-servidor-web-com-python","status":"publish","type":"post","link":"https:\/\/difusao.tech\/blog\/criar-servidor-web-com-python\/","title":{"rendered":"Criar servidor web com Python"},"content":{"rendered":"\n<p>Criar servidor web com Python de forma r\u00e1pida para transfer\u00eancia de arquivos.<\/p>\n\n\n\n<p>Na maquina a qual voc\u00ea deseja compartilhar os arquivos, abra o poweshell na pasta que est\u00e3o os arquivos e digite o seguinte comando:<\/p>\n\n\n\n<p><mark style=\"background-color:#abb8c3\" class=\"has-inline-color\">python -m http.server 8080<\/mark><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"709\" height=\"170\" src=\"https:\/\/difusao.tech\/blog\/wp-content\/uploads\/2023\/10\/image-1.png\" alt=\"\" class=\"wp-image-160\" srcset=\"https:\/\/difusao.tech\/blog\/wp-content\/uploads\/2023\/10\/image-1.png 709w, https:\/\/difusao.tech\/blog\/wp-content\/uploads\/2023\/10\/image-1-300x72.png 300w\" sizes=\"auto, (max-width: 709px) 100vw, 709px\" \/><\/figure>\n\n\n\n<p>Como mostrado na imagem o servidor esta ativo e aceitando conex\u00f5es.<\/p>\n\n\n\n<p>Em qualquer esta\u00e7\u00e3o de sua rede digite no navegador o ip da maquina com o servidor Python rodando seguido da porta.<\/p>\n\n\n\n<p>Ser\u00e1 listado todos os arquivos da pasta a qual o server esta rodando.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Criar servidor web com Python de forma r\u00e1pida para transfer\u00eancia de arquivos. Na maquina a qual voc\u00ea deseja<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30,157,1],"tags":[192,158,191],"class_list":["post-159","post","type-post","status-publish","format-standard","hentry","category-programacao-e-desenvolvimento","category-python","category-redes","tag-http-server","tag-python","tag-redes"],"_links":{"self":[{"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/posts\/159","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/comments?post=159"}],"version-history":[{"count":1,"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/posts\/159\/revisions"}],"predecessor-version":[{"id":161,"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/posts\/159\/revisions\/161"}],"wp:attachment":[{"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/media?parent=159"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/categories?post=159"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/tags?post=159"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}