{"id":486,"date":"2026-02-25T23:58:18","date_gmt":"2026-02-25T16:58:18","guid":{"rendered":"https:\/\/www.comserv23.com\/?p=486"},"modified":"2026-02-25T23:58:18","modified_gmt":"2026-02-25T16:58:18","slug":"pi-5-api-server","status":"publish","type":"post","link":"https:\/\/www.comserv23.com\/?p=486","title":{"rendered":"Pi 5 : API Server"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/www.comserv23.com\/wp-content\/uploads\/2026\/02\/APIServer_Pi5-1024x576.jpg\" alt=\"\" class=\"wp-image-488\" srcset=\"https:\/\/www.comserv23.com\/wp-content\/uploads\/2026\/02\/APIServer_Pi5-1024x576.jpg 1024w, https:\/\/www.comserv23.com\/wp-content\/uploads\/2026\/02\/APIServer_Pi5-300x169.jpg 300w, https:\/\/www.comserv23.com\/wp-content\/uploads\/2026\/02\/APIServer_Pi5-768x432.jpg 768w, https:\/\/www.comserv23.com\/wp-content\/uploads\/2026\/02\/APIServer_Pi5.jpg 1280w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"691\" src=\"https:\/\/www.comserv23.com\/wp-content\/uploads\/2026\/02\/Screenshot-2026-02-25-235646-1024x691.png\" alt=\"\" class=\"wp-image-487\" srcset=\"https:\/\/www.comserv23.com\/wp-content\/uploads\/2026\/02\/Screenshot-2026-02-25-235646-1024x691.png 1024w, https:\/\/www.comserv23.com\/wp-content\/uploads\/2026\/02\/Screenshot-2026-02-25-235646-300x202.png 300w, https:\/\/www.comserv23.com\/wp-content\/uploads\/2026\/02\/Screenshot-2026-02-25-235646-768x518.png 768w, https:\/\/www.comserv23.com\/wp-content\/uploads\/2026\/02\/Screenshot-2026-02-25-235646.png 1283w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e0a\u0e38\u0e14\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e17\u0e35\u0e48\u0e43\u0e0a\u0e49\u0e43\u0e19\u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1.On Terminal<br>1.1 Update latest version<br>sudo apt update<br>sudo apt upgrade -y<br>1.2 Install VSCode<br>sudo apt install wget gpg<br>wget -qO- https:\/\/packages.microsoft.com\/keys\/microsoft.asc | gpg &#8211;dearmor &gt; microsoft.gpg<br>sudo install -o root -g root -m 644 microsoft.gpg \/etc\/apt\/trusted.gpg.d\/<br>sudo sh -c &#8216;echo &#8220;deb [arch=arm64] https:\/\/packages.microsoft.com\/repos\/code stable main&#8221; &gt; \/etc\/apt\/sources.list.d\/vscode.list&#8217;<br>sudo apt update<br>sudo apt install code<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1.3 Install python , tdsodbc<br>sudo apt install -y python3 python3-pip python3-venv<br>sudo apt install -y freetds-bin freetds-dev tdsodbc unixodbc unixodbc-dev<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3.mkdir APIServer<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">4.Open VS Code (Open Folder at APIServer)<br>New Terminal<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">python3 -m venv venv<br>source venv\/bin\/activate<br>pip install fastapi uvicorn[standard]<br>pip install pyodbc<br>pip install python-multipart<br>pip install requests<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">5.Testing<br>python3 testODBC1.py<br>python3 testODBC2.py<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0e0a\u0e38\u0e14\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e17\u0e35\u0e48\u0e43\u0e0a\u0e49\u0e43\u0e19\u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 1.On Terminal1.1 Update latest versionsudo apt updatesudo apt upgrade -y1.2 Install VSCodesudo apt install wget gpgwget -qO- https:\/\/packages.microsoft.com\/keys\/microsoft.asc |<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-486","post","type-post","status-publish","format-standard","hentry","category-raspberrypi5"],"_links":{"self":[{"href":"https:\/\/www.comserv23.com\/index.php?rest_route=\/wp\/v2\/posts\/486","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.comserv23.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.comserv23.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.comserv23.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.comserv23.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=486"}],"version-history":[{"count":1,"href":"https:\/\/www.comserv23.com\/index.php?rest_route=\/wp\/v2\/posts\/486\/revisions"}],"predecessor-version":[{"id":489,"href":"https:\/\/www.comserv23.com\/index.php?rest_route=\/wp\/v2\/posts\/486\/revisions\/489"}],"wp:attachment":[{"href":"https:\/\/www.comserv23.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=486"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.comserv23.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=486"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.comserv23.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=486"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}