{"id":69,"date":"2017-06-19T18:41:07","date_gmt":"2017-06-19T18:41:07","guid":{"rendered":"http:\/\/www.codeastar.com\/?p=69"},"modified":"2017-07-08T09:50:15","modified_gmt":"2017-07-08T09:50:15","slug":"must-know-command-python-pip","status":"publish","type":"post","link":"https:\/\/www.codeastar.com\/must-know-command-python-pip\/","title":{"rendered":"The must-know command in Python — pip"},"content":{"rendered":"
\"The
The must-know: pip install – sometimes a hero like Python does need help from others<\/figcaption><\/figure>\n

The must-know in Python<\/h3>\n

Python is a powerful language which can do almost everything and be used by top tier companies\/organizations like NASA, IBM and Google.<\/p>\n

But wait, we are not going to make something big like those companies. Not today, remember, we are just a 10 seconds coder<\/a>\u00a0at this moment.<\/p>\n

However even a 10s coder, we still have our thing to do for our great coding journey. Here we go: to learn the must-know command in Python —\u00a0pip<\/strong>\u00a0.<\/p>\n

<\/p>\n

“Pip” is a package manager that helps you install packages in Python. Likes superhero comics, sometimes a great superhero does need help from his\/her allies. So you can think in this way:<\/p>\n

pip is the “Justice League” \/ “Avengers” to Python.<\/p><\/blockquote>\n

When we ask Python to do certain operations which are not under its core functional libraries, we need to use “pip” to add extra packages to Python. In the superhero scenario, when a hero need some advice on physics, he\/she can seek Dr. Bruce Banner for help from the Avengers (of course, you can only do this before Dr. Banner “turning green” ).<\/p>\n

Hands-on Section<\/h2>\n

We talk and we walk, let’ see how does the pip work with Python. Open the command prompt terminal and type the following command:<\/p>\n

Avengers Assemble!\r\n<\/pre>\n

No way<\/strong>, just kidding.\u00a0<\/strong>The proper syntax is:<\/p>\n

pip install SomePackage\r\n<\/pre>\n

Which SomePackage<\/em> is the package we would like to install into Python (i.e. the Dr. Banner we mentioned above).<\/p>\n

If your machine cannot find ‘pip’, you may need to make sure the pip is downloaded from installers or OS commands. Then you can run following command to ensure pip is connected to your Python environment:<\/p>\n

python -m ensurepip\r\n<\/pre>\n

We can now go to our Python environment and write a program to get web site status. Since there is no core module in Python handling http request, we have to import the “requests” module by typing<\/p>\n

import requests\r\n<\/pre>\n

Then following results appear:<\/p>\n

Traceback (most recent call last):\r\n  File \"\", line 1, in \r\nModuleNotFoundError: No module named 'requests'\r\n<\/pre>\n

Yes, Dr. Banner, I mean, the ‘requests’ module, is not here. As we just didn’t use the pip command to install it into Python environment. What we need to do is, run the ‘pip install requests’ command on command terminal (not the Python environment):<\/p>\n

pip install requests\r\n<\/pre>\n

Once the package installation is finished, it will pop out:<\/p>\n

Successfully installed requests-2.18.1\r\n<\/pre>\n

Now we are good to go. We type the same code again and let it query the Python official web site<\/a> and an invalid page<\/a>:<\/p>\n

import requests\r\nrequests.get(\"http:\/\/www.python.org\")\r\nrequests.get(\"http:\/\/www.python.org\/abc\")\r\n<\/pre>\n

The results should be:<\/p>\n

Response [200]\r\nResponse [404]\r\n<\/pre>\n

We did it! We have added new package on Python and let it handle http requests. And don’t forget, we have just learnt to write a python program to read http status!<\/p>\n

By adding other packages on Python, we can make it handle different operations, expand its functionalities and aim for something big.<\/p>\n

<\/h3>\n

 <\/p>\n

What we have learnt on this hands-on:<\/h3>\n
    \n
  1. the usage of pip command<\/li>\n
  2. a sample program to get http status<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"

    The must-know in Python Python is a powerful language which can do almost everything and be used by top tier companies\/organizations like NASA, IBM and Google. But wait, we are not going to make something big like those companies. Not today, remember, we are just a 10 seconds coder\u00a0at this moment. However even a 10s […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_newsletter_tier_id":0,"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[2],"tags":[13,12,11,10,8],"jetpack_publicize_connections":[],"yoast_head":"\nThe must-know command in Python -- pip ⋆ Code A Star<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.codeastar.com\/must-know-command-python-pip\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"The must-know command in Python -- pip ⋆ Code A Star\" \/>\n<meta property=\"og:description\" content=\"The must-know in Python Python is a powerful language which can do almost everything and be used by top tier companies\/organizations like NASA, IBM and Google. But wait, we are not going to make something big like those companies. Not today, remember, we are just a 10 seconds coder\u00a0at this moment. However even a 10s […]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.codeastar.com\/must-know-command-python-pip\/\" \/>\n<meta property=\"og:site_name\" content=\"Code A Star\" \/>\n<meta property=\"article:publisher\" content=\"codeastar\" \/>\n<meta property=\"article:author\" content=\"codeastar\" \/>\n<meta property=\"article:published_time\" content=\"2017-06-19T18:41:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-07-08T09:50:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.codeastar.com\/wp-content\/uploads\/2017\/06\/pip.png\" \/>\n<meta name=\"author\" content=\"Raven Hon\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@codeastar\" \/>\n<meta name=\"twitter:site\" content=\"@codeastar\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Raven Hon\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.codeastar.com\/must-know-command-python-pip\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.codeastar.com\/must-know-command-python-pip\/\"},\"author\":{\"name\":\"Raven Hon\",\"@id\":\"https:\/\/www.codeastar.com\/#\/schema\/person\/832d202eb92a3d430097e88c6d0550bd\"},\"headline\":\"The must-know command in Python — pip\",\"datePublished\":\"2017-06-19T18:41:07+00:00\",\"dateModified\":\"2017-07-08T09:50:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.codeastar.com\/must-know-command-python-pip\/\"},\"wordCount\":501,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.codeastar.com\/#\/schema\/person\/832d202eb92a3d430097e88c6d0550bd\"},\"keywords\":[\"Avengers\",\"http\",\"package\",\"pip\",\"Python\"],\"articleSection\":[\"We code therefore we are\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.codeastar.com\/must-know-command-python-pip\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.codeastar.com\/must-know-command-python-pip\/\",\"url\":\"https:\/\/www.codeastar.com\/must-know-command-python-pip\/\",\"name\":\"The must-know command in Python -- pip ⋆ Code A Star\",\"isPartOf\":{\"@id\":\"https:\/\/www.codeastar.com\/#website\"},\"datePublished\":\"2017-06-19T18:41:07+00:00\",\"dateModified\":\"2017-07-08T09:50:15+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.codeastar.com\/must-know-command-python-pip\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.codeastar.com\/must-know-command-python-pip\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.codeastar.com\/must-know-command-python-pip\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.codeastar.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"The must-know command in Python — pip\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.codeastar.com\/#website\",\"url\":\"https:\/\/www.codeastar.com\/\",\"name\":\"Code A Star\",\"description\":\"We don't wish upon a star, we code a star\",\"publisher\":{\"@id\":\"https:\/\/www.codeastar.com\/#\/schema\/person\/832d202eb92a3d430097e88c6d0550bd\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.codeastar.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.codeastar.com\/#\/schema\/person\/832d202eb92a3d430097e88c6d0550bd\",\"name\":\"Raven Hon\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.codeastar.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/i0.wp.com\/www.codeastar.com\/wp-content\/uploads\/2018\/08\/logo70.png?fit=70%2C70&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.codeastar.com\/wp-content\/uploads\/2018\/08\/logo70.png?fit=70%2C70&ssl=1\",\"width\":70,\"height\":70,\"caption\":\"Raven Hon\"},\"logo\":{\"@id\":\"https:\/\/www.codeastar.com\/#\/schema\/person\/image\/\"},\"description\":\"Raven Hon is\u00a0a 20 years+ veteran in information technology industry who has worked on various projects from console, web, game, banking and mobile applications in different sized companies.\",\"sameAs\":[\"https:\/\/www.codeastar.com\",\"codeastar\",\"https:\/\/twitter.com\/codeastar\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"The must-know command in Python -- pip ⋆ Code A Star","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.codeastar.com\/must-know-command-python-pip\/","og_locale":"en_US","og_type":"article","og_title":"The must-know command in Python -- pip ⋆ Code A Star","og_description":"The must-know in Python Python is a powerful language which can do almost everything and be used by top tier companies\/organizations like NASA, IBM and Google. But wait, we are not going to make something big like those companies. Not today, remember, we are just a 10 seconds coder\u00a0at this moment. However even a 10s […]","og_url":"https:\/\/www.codeastar.com\/must-know-command-python-pip\/","og_site_name":"Code A Star","article_publisher":"codeastar","article_author":"codeastar","article_published_time":"2017-06-19T18:41:07+00:00","article_modified_time":"2017-07-08T09:50:15+00:00","og_image":[{"url":"https:\/\/www.codeastar.com\/wp-content\/uploads\/2017\/06\/pip.png"}],"author":"Raven Hon","twitter_card":"summary_large_image","twitter_creator":"@codeastar","twitter_site":"@codeastar","twitter_misc":{"Written by":"Raven Hon","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.codeastar.com\/must-know-command-python-pip\/#article","isPartOf":{"@id":"https:\/\/www.codeastar.com\/must-know-command-python-pip\/"},"author":{"name":"Raven Hon","@id":"https:\/\/www.codeastar.com\/#\/schema\/person\/832d202eb92a3d430097e88c6d0550bd"},"headline":"The must-know command in Python — pip","datePublished":"2017-06-19T18:41:07+00:00","dateModified":"2017-07-08T09:50:15+00:00","mainEntityOfPage":{"@id":"https:\/\/www.codeastar.com\/must-know-command-python-pip\/"},"wordCount":501,"commentCount":0,"publisher":{"@id":"https:\/\/www.codeastar.com\/#\/schema\/person\/832d202eb92a3d430097e88c6d0550bd"},"keywords":["Avengers","http","package","pip","Python"],"articleSection":["We code therefore we are"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.codeastar.com\/must-know-command-python-pip\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.codeastar.com\/must-know-command-python-pip\/","url":"https:\/\/www.codeastar.com\/must-know-command-python-pip\/","name":"The must-know command in Python -- pip ⋆ Code A Star","isPartOf":{"@id":"https:\/\/www.codeastar.com\/#website"},"datePublished":"2017-06-19T18:41:07+00:00","dateModified":"2017-07-08T09:50:15+00:00","breadcrumb":{"@id":"https:\/\/www.codeastar.com\/must-know-command-python-pip\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.codeastar.com\/must-know-command-python-pip\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.codeastar.com\/must-know-command-python-pip\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.codeastar.com\/"},{"@type":"ListItem","position":2,"name":"The must-know command in Python — pip"}]},{"@type":"WebSite","@id":"https:\/\/www.codeastar.com\/#website","url":"https:\/\/www.codeastar.com\/","name":"Code A Star","description":"We don't wish upon a star, we code a star","publisher":{"@id":"https:\/\/www.codeastar.com\/#\/schema\/person\/832d202eb92a3d430097e88c6d0550bd"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.codeastar.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.codeastar.com\/#\/schema\/person\/832d202eb92a3d430097e88c6d0550bd","name":"Raven Hon","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.codeastar.com\/#\/schema\/person\/image\/","url":"https:\/\/i0.wp.com\/www.codeastar.com\/wp-content\/uploads\/2018\/08\/logo70.png?fit=70%2C70&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.codeastar.com\/wp-content\/uploads\/2018\/08\/logo70.png?fit=70%2C70&ssl=1","width":70,"height":70,"caption":"Raven Hon"},"logo":{"@id":"https:\/\/www.codeastar.com\/#\/schema\/person\/image\/"},"description":"Raven Hon is\u00a0a 20 years+ veteran in information technology industry who has worked on various projects from console, web, game, banking and mobile applications in different sized companies.","sameAs":["https:\/\/www.codeastar.com","codeastar","https:\/\/twitter.com\/codeastar"]}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8PcRO-17","jetpack-related-posts":[{"id":968,"url":"https:\/\/www.codeastar.com\/deploy-flask-app-docker-raspberry-pi\/","url_meta":{"origin":69,"position":0},"title":"Tutorial: Deploy a Flask app with Docker on Raspberry Pi","author":"Raven Hon","date":"April 14, 2018","format":false,"excerpt":"We have just\u00a0installed Docker on our Raspberry Pi, now it is time to bring into action. Do you remember the EZW, Easy Weather Forecast Flask app? Yes, we are going to deploy this EZW flask app. Of course, we do it in the Docker way! Prerequisites Docker installed on a\u2026","rel":"","context":"In "Have a pie, Raspberry Pi(e)"","block_context":{"text":"Have a pie, Raspberry Pi(e)","link":"https:\/\/www.codeastar.com\/category\/have-a-raspberry-pie\/"},"img":{"alt_text":"Deploy Flask app on Raspberry Pi using Docker","src":"https:\/\/i0.wp.com\/www.codeastar.com\/wp-content\/uploads\/2018\/04\/flask_doc.png?fit=1032%2C456&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.codeastar.com\/wp-content\/uploads\/2018\/04\/flask_doc.png?fit=1032%2C456&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.codeastar.com\/wp-content\/uploads\/2018\/04\/flask_doc.png?fit=1032%2C456&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.codeastar.com\/wp-content\/uploads\/2018\/04\/flask_doc.png?fit=1032%2C456&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":387,"url":"https:\/\/www.codeastar.com\/easy-python-weather-forecast-tool\/","url_meta":{"origin":69,"position":1},"title":"Easy Weather Forecast Tool in Python","author":"Raven Hon","date":"August 4, 2017","format":false,"excerpt":"Since I am going to have a 5-day trip to Sapporo, Hokkaido, Japan at the end of August, I would like to have a weather forecast for my trip. \"So why don't you check from a weather forecast site for free?\" Yes, but I would like to get the exact\u2026","rel":"","context":"In "We code therefore we are"","block_context":{"text":"We code therefore we are","link":"https:\/\/www.codeastar.com\/category\/we-code-therefore-we-are\/"},"img":{"alt_text":"Weather forecast in Python is easy and relaxing","src":"https:\/\/i0.wp.com\/www.codeastar.com\/wp-content\/uploads\/2017\/08\/egg_holidays.png?fit=769%2C655&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.codeastar.com\/wp-content\/uploads\/2017\/08\/egg_holidays.png?fit=769%2C655&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.codeastar.com\/wp-content\/uploads\/2017\/08\/egg_holidays.png?fit=769%2C655&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.codeastar.com\/wp-content\/uploads\/2017\/08\/egg_holidays.png?fit=769%2C655&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":46,"url":"https:\/\/www.codeastar.com\/become-a-coder-in-10-seconds\/","url_meta":{"origin":69,"position":2},"title":"[Hands-on] Become a coder in 10 seconds!","author":"Raven Hon","date":"June 1, 2017","format":false,"excerpt":"Yes, it is a catchy title, but it still sounds legit. Last time, we talked the talk on the code we pick to code\u00a0--- the Python language.\u00a0Now, let's walk the walk and make no joke --- the hands-on workshop. First things first, install the Python into your machine. No matter\u2026","rel":"","context":"In "We code therefore we are"","block_context":{"text":"We code therefore we are","link":"https:\/\/www.codeastar.com\/category\/we-code-therefore-we-are\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.codeastar.com\/wp-content\/uploads\/2017\/06\/10s_coder.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.codeastar.com\/wp-content\/uploads\/2017\/06\/10s_coder.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.codeastar.com\/wp-content\/uploads\/2017\/06\/10s_coder.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.codeastar.com\/wp-content\/uploads\/2017\/06\/10s_coder.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":854,"url":"https:\/\/www.codeastar.com\/flask-easy-web-app-python\/","url_meta":{"origin":69,"position":3},"title":"Easy Weather Forecast Flask Web App with Python","author":"Raven Hon","date":"March 10, 2018","format":false,"excerpt":"We have tried to code an Easy Weather Forecast Tool with Python. Yes, it is fast and easy, but it is just not that convenient to run anything on a command prompt. It is so.... 80s. It would be better if we can make a single-page Flask web app. Then\u2026","rel":"","context":"In "We code therefore we are"","block_context":{"text":"We code therefore we are","link":"https:\/\/www.codeastar.com\/category\/we-code-therefore-we-are\/"},"img":{"alt_text":"EZ Weather Forecast Web App in Flask","src":"https:\/\/i0.wp.com\/www.codeastar.com\/wp-content\/uploads\/2018\/03\/ezw_wep_app.png?fit=1030%2C460&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.codeastar.com\/wp-content\/uploads\/2018\/03\/ezw_wep_app.png?fit=1030%2C460&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.codeastar.com\/wp-content\/uploads\/2018\/03\/ezw_wep_app.png?fit=1030%2C460&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.codeastar.com\/wp-content\/uploads\/2018\/03\/ezw_wep_app.png?fit=1030%2C460&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":99,"url":"https:\/\/www.codeastar.com\/make-a-tool-within-10-lines-of-code\/","url_meta":{"origin":69,"position":4},"title":"Make a tool within 10 lines of code","author":"Raven Hon","date":"June 29, 2017","format":false,"excerpt":"No more \"Hello World!\" \"Hello World!\" program is golden for all beginning coders, I did write it a lot in the past as well. But, we are no longer 'beginners'. We have passed though 10s coder\u00a0and coder who knows how to ask for help, we deserve better. So we won't\u2026","rel":"","context":"In "We code therefore we are"","block_context":{"text":"We code therefore we are","link":"https:\/\/www.codeastar.com\/category\/we-code-therefore-we-are\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.codeastar.com\/wp-content\/uploads\/2017\/06\/tool-300x249.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":203,"url":"https:\/\/www.codeastar.com\/beginner-data-science-tutorial\/","url_meta":{"origin":69,"position":5},"title":"Data Science Tutorial for Absolutely Python Beginners","author":"Raven Hon","date":"July 9, 2017","format":false,"excerpt":"My anaconda don't,\u00a0My anaconda don't,\u00a0My anaconda don't want none, unless you've got.... Yes, you are still reading Code A Star blog. In this post we are going to try our Data Science tutorial in Python. Since we are targeting Python beginners for this hands-on, I would like to introduce Anaconda\u2026","rel":"","context":"In "We code therefore we are"","block_context":{"text":"We code therefore we are","link":"https:\/\/www.codeastar.com\/category\/we-code-therefore-we-are\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.codeastar.com\/wp-content\/uploads\/2017\/07\/giphy.gif?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.codeastar.com\/wp-json\/wp\/v2\/posts\/69"}],"collection":[{"href":"https:\/\/www.codeastar.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codeastar.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codeastar.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codeastar.com\/wp-json\/wp\/v2\/comments?post=69"}],"version-history":[{"count":28,"href":"https:\/\/www.codeastar.com\/wp-json\/wp\/v2\/posts\/69\/revisions"}],"predecessor-version":[{"id":237,"href":"https:\/\/www.codeastar.com\/wp-json\/wp\/v2\/posts\/69\/revisions\/237"}],"wp:attachment":[{"href":"https:\/\/www.codeastar.com\/wp-json\/wp\/v2\/media?parent=69"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codeastar.com\/wp-json\/wp\/v2\/categories?post=69"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codeastar.com\/wp-json\/wp\/v2\/tags?post=69"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}