{"id":9373,"date":"2022-05-12T22:46:00","date_gmt":"2022-05-12T20:46:00","guid":{"rendered":"https:\/\/monodes.com\/predaelli\/?p=9373"},"modified":"2022-05-12T16:49:41","modified_gmt":"2022-05-12T14:49:41","slug":"one-liner-static-web-server","status":"publish","type":"post","link":"https:\/\/monodes.com\/predaelli\/2022\/05\/12\/one-liner-static-web-server\/","title":{"rendered":"One liner, static web-server"},"content":{"rendered":"\n<p> <a href=\"https:\/\/gist.github.com\/willurd\">willurd<\/a> on <strong><a href=\"https:\/\/gist.github.com\/willurd\/5720255\">web-servers.md<\/a><\/strong> show quite a few one-liner (or mostly) commands  that will run an ad hoc http static server in your current (or specified) directory, available at <a href=\"http:\/\/localhost:8000\">http:\/\/localhost:8000<\/a>. I think I will use only the Python 3.x version which is as simple as <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\" data-line=\"\">python -m http.server 8000<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p class=\"excerpt\">willurd on web-servers.md show quite a few one-liner (or mostly) commands that will run an ad hoc http static server in your current (or specified) directory, available at http:\/\/localhost:8000. I think I will use only the Python 3.x version which is as simple as<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"https:\/\/monodes.com\/predaelli\/2022\/05\/12\/one-liner-static-web-server\/\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[278],"tags":[],"class_list":["post-9373","post","type-post","status-publish","format-standard","hentry","category-tricks"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6daft-2rb","jetpack-related-posts":[{"id":9674,"url":"https:\/\/monodes.com\/predaelli\/2022\/09\/28\/10-powerful-python-one-liners\/","url_meta":{"origin":9373,"position":0},"title":"10 Powerful Python One-Liners.","author":"Paolo Redaelli","date":"2022-09-28","format":false,"excerpt":"I shall Eiffellize those, one day or another: 10 Powerful Python One-Liners. Python one-liners can be just as\u2026 | by Ishaan Gupta | Sep, 2022 | Python in Plain English 10 Powerful Python One-Liners Python one-liners can be just as powerful as a long and tedious program written in another\u2026","rel":"","context":"In &quot;Agenda&quot;","block_context":{"text":"Agenda","link":"https:\/\/monodes.com\/predaelli\/category\/agenda\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2022\/09\/1jLSxNQvNqsYr02VB_wr96A.jpeg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2022\/09\/1jLSxNQvNqsYr02VB_wr96A.jpeg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2022\/09\/1jLSxNQvNqsYr02VB_wr96A.jpeg?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":8194,"url":"https:\/\/monodes.com\/predaelli\/2021\/02\/24\/python-packages-and-one-liners\/","url_meta":{"origin":9373,"position":1},"title":"Python Packages and one-liners","author":"Paolo Redaelli","date":"2021-02-24","format":false,"excerpt":"That Makes You Life Easier 20 Python Packages That You Must Try | by Abhay Parashar | Level Up Coding 25 Useful Python One-Liners That You Should know","rel":"","context":"In &quot;Documentations&quot;","block_context":{"text":"Documentations","link":"https:\/\/monodes.com\/predaelli\/category\/documentations\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":9532,"url":"https:\/\/monodes.com\/predaelli\/2022\/08\/09\/7-python-one-liners-that-will-blow-your-mind\/","url_meta":{"origin":9373,"position":2},"title":"7 Python One-Liners that will Blow Your Mind","author":"Paolo Redaelli","date":"2022-08-09","format":false,"excerpt":"Xiaoxu Gao wrote 7 Python One-Liners that will Blow Your Mind Less is more? Photo by Photos by Lanty from Unsplash The term one-liner comes from comedy where a joke is delivered in a single line. A good one-liner is said to be meaningful and concise. This concept also exists\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/monodes.com\/predaelli\/category\/python\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":12976,"url":"https:\/\/monodes.com\/predaelli\/2025\/03\/15\/codon-high-performance-python-compiler\/","url_meta":{"origin":9373,"position":3},"title":"Codon: high-performance Python compiler","author":"Paolo Redaelli","date":"2025-03-15","format":false,"excerpt":"Codon: high-performance Python compiler Codon is a high-performance Python implementation that compiles to native machine code without any runtime overhead. Typical speedups over vanilla Python are on the order of 10-100x or more, on a single thread. Codon's performance is typically on par with (and sometimes better than) that of\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/monodes.com\/predaelli\/category\/python\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":9861,"url":"https:\/\/monodes.com\/predaelli\/2022\/11\/20\/epicyon-activitypub-server\/","url_meta":{"origin":9373,"position":4},"title":"Epicyon ActivityPub server","author":"Paolo Redaelli","date":"2022-11-20","format":false,"excerpt":"Epicyon ActivityPub serverActivityPub server written in Python, HTML and CSS, and suitable for self-hosting on single board computers I may have found a Fediverse server I want to run \u00a0 Epicyon is a fediverse server suitable for self-hosting a small number of accounts on low power systems. Key features: Open\u2026","rel":"","context":"In &quot;Senza categoria&quot;","block_context":{"text":"Senza categoria","link":"https:\/\/monodes.com\/predaelli\/category\/senza-categoria\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":13563,"url":"https:\/\/monodes.com\/predaelli\/2025\/06\/15\/what-can-we-learn\/","url_meta":{"origin":9373,"position":5},"title":"What can we learn?","author":"Paolo Redaelli","date":"2025-06-15","format":false,"excerpt":"I just read \"Python Creator Guido van Rossum Asks: Is 'Worse is Better' Still True for Programming Languages?\" and I wonder what can we Eiffellers learn from it. Python Creator Guido van Rossum Asks: Is 'Worse is Better' Still True for Programming Languages? In 1989 a computer scientist argued that\u2026","rel":"","context":"In &quot;Liberty Eiffel&quot;","block_context":{"text":"Liberty Eiffel","link":"https:\/\/monodes.com\/predaelli\/category\/eiffel\/liberty-eiffel\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts\/9373","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/comments?post=9373"}],"version-history":[{"count":0,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts\/9373\/revisions"}],"wp:attachment":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/media?parent=9373"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/categories?post=9373"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/tags?post=9373"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}