{"id":14280,"date":"2026-04-29T22:43:49","date_gmt":"2026-04-29T22:43:49","guid":{"rendered":"https:\/\/techtrendfeed.com\/?p=14280"},"modified":"2026-04-29T22:43:50","modified_gmt":"2026-04-29T22:43:50","slug":"from-jupyter-pocket-book-to-manufacturing-api-in-30-minutes-fastapi-render-by-emma-yasenchak-apr-2026","status":"publish","type":"post","link":"https:\/\/techtrendfeed.com\/?p=14280","title":{"rendered":"From Jupyter Pocket book to Manufacturing API in 30 Minutes (FastAPI + Render) | by Emma Yasenchak | Apr, 2026"},"content":{"rendered":"<p> <br \/>\n<\/p>\n<div>\n<h2 id=\"709a\" class=\"oz pa ho bb pb pc pd pe pf pg ph pi pj pk pl pm pn po pp pq pr ps pt pu pv pw bg\">Step 2: Create a FastAPI Venture (2 Minutes)<\/h2>\n<p id=\"3df3\" class=\"pw-post-body-paragraph mx my ho mz b na px nc nd ne py ng nh ni pz nk nl nm qa no np nq qb ns nt nu hh bg\">Open your terminal and run:<\/p>\n<pre class=\"ny nz oa ob oc qc qd qe bl qf ax bg\"><span id=\"dbd6\" class=\"qg pa ho qd b bc qh qi e qj qk\">mkdir phone-api<br\/>cd phone-api<br\/>python -m venv venv<br\/>supply venv\/bin\/activate<br\/>pip set up fastapi uvicorn phonenumbers<\/span><\/pre>\n<p id=\"c7ee\" class=\"pw-post-body-paragraph mx my ho mz b na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt nu hh bg\">Create <code class=\"db ql qm qn qd b\">primary.py<\/code> and paste the code under:<\/p>\n<pre class=\"ny nz oa ob oc qc qd qe bl qf ax bg\"><span id=\"2a56\" class=\"qg pa ho qd b bc qh qi e qj qk\">from fastapi import FastAPI, Question<br\/>import phonenumbers<p>app = FastAPI(title=\"Telephone Validation API\")<br\/>def validate_phone_logic(telephone: str) -&gt; dict:<br\/>parsed = phonenumbers.parse(telephone, None)<br\/>is_valid = phonenumbers.is_valid_number(parsed)<br\/>return {\"telephone\": telephone, \"legitimate\": is_valid}<br\/>@app.get(\"\/validate\")<br\/>def validate(telephone: str = Question(..., description=\"Telephone with nation code\")):<br\/>end result = validate_phone_logic(telephone)<br\/>return end result<\/p><\/span><\/pre>\n<p id=\"1ffa\" class=\"pw-post-body-paragraph mx my ho mz b na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt nu hh bg\">Run it regionally:<\/p>\n<pre class=\"ny nz oa ob oc qc qd qe bl qf ax bg\"><span id=\"a28b\" class=\"qg pa ho qd b bc qh qi e qj qk\">uvicorn primary:app --reload<\/span><\/pre>\n<p id=\"fed2\" class=\"pw-post-body-paragraph mx my ho mz b na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt nu hh bg\">Check it:<\/p>\n<pre class=\"ny nz oa ob oc qc qd qe bl qf ax bg\"><span id=\"de1c\" class=\"qg pa ho qd b bc qh qi e qj qk\">curl \"http:\/\/localhost:8000\/validate?telephone=%2B14155552671\"<\/span><\/pre>\n<p id=\"7702\" class=\"pw-post-body-paragraph mx my ho mz b na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt nu hh bg\">That\u2019s it \u2014 your mannequin is now an API.<\/p>\n<\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>Step 2: Create a FastAPI Venture (2 Minutes) Open your terminal and run: mkdir phone-apicd phone-apipython -m venv venvsupply venv\/bin\/activatepip set up fastapi uvicorn phonenumbers Create primary.py and paste the code under: from fastapi import FastAPI, Questionimport phonenumbersapp = FastAPI(title=&#8221;Telephone Validation API&#8221;)def validate_phone_logic(telephone: str) -&gt; dict:parsed = phonenumbers.parse(telephone, None)is_valid = phonenumbers.is_valid_number(parsed)return {&#8220;telephone&#8221;: telephone, &#8220;legitimate&#8221;: is_valid}@app.get(&#8220;\/validate&#8221;)def [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":14282,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[55],"tags":[664,767,8865,3170,8864,2549,5961,153,5547,8866],"class_list":["post-14280","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-machine-learning","tag-api","tag-apr","tag-emma","tag-fastapi","tag-jupyter","tag-minutes","tag-notebook","tag-production","tag-render","tag-yasenchak"],"_links":{"self":[{"href":"https:\/\/techtrendfeed.com\/index.php?rest_route=\/wp\/v2\/posts\/14280","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techtrendfeed.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techtrendfeed.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techtrendfeed.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/techtrendfeed.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=14280"}],"version-history":[{"count":1,"href":"https:\/\/techtrendfeed.com\/index.php?rest_route=\/wp\/v2\/posts\/14280\/revisions"}],"predecessor-version":[{"id":14281,"href":"https:\/\/techtrendfeed.com\/index.php?rest_route=\/wp\/v2\/posts\/14280\/revisions\/14281"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techtrendfeed.com\/index.php?rest_route=\/wp\/v2\/media\/14282"}],"wp:attachment":[{"href":"https:\/\/techtrendfeed.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14280"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techtrendfeed.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14280"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techtrendfeed.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14280"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}<!-- This website is optimized by Airlift. Learn more: https://airlift.net. Template:. Learn more: https://airlift.net. Template: 69d9690a190636c2e0989534. Config Timestamp: 2026-04-10 21:18:02 UTC, Cached Timestamp: 2026-04-30 12:14:22 UTC -->