From 9185bec3fe6eb0399fef12e0c423aa231cf60a40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9=20=D0=90=D0=B1?= =?UTF-8?q?=D0=B4=D1=80=D0=B0=D1=85=D0=BC=D0=B0=D0=BD=D0=BE=D0=B2?= <565963@gmail.com> Date: Mon, 9 Sep 2024 10:01:44 +0300 Subject: [PATCH] add: basics --- README.md | 0 main.sh | 0 src/ requirements.txt | 0 src/__pycache__/currencies.cpython-310.pyc | Bin 0 -> 809 bytes src/__pycache__/server.cpython-310.pyc | Bin 0 -> 2188 bytes src/main.py | 3 +++ src/server.py | 11 +++++++++++ src/weather.py | 0 8 files changed, 14 insertions(+) create mode 100644 README.md create mode 100644 main.sh create mode 100644 src/ requirements.txt create mode 100644 src/__pycache__/currencies.cpython-310.pyc create mode 100644 src/__pycache__/server.cpython-310.pyc create mode 100644 src/main.py create mode 100644 src/server.py create mode 100644 src/weather.py diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/main.sh b/main.sh new file mode 100644 index 0000000..e69de29 diff --git a/src/ requirements.txt b/src/ requirements.txt new file mode 100644 index 0000000..e69de29 diff --git a/src/__pycache__/currencies.cpython-310.pyc b/src/__pycache__/currencies.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f5a57fb15126a1ef22cb3401d78f382978a2d104 GIT binary patch literal 809 zcmYjQ&2H2%5cVX_Pq%4>DgotyD94o`5m!`xq*94PTMn%dS_!Svc+ySf{M2^(gOXEu z0mKVrkGu+x-~$&K1#G*}PCW=PM$x3_oCDBq31|9!_D0d+!%U=!?0JT|Uzq*wB`%2Zu*Da>Oe zdi`%Z;+t-Wb!)tPS@IYyjd+)1iIqCCl)R-$uimnW4IA&8UKzqgri86vdDfEBEwyC> Y!|k$WEytJk{Ym>TA`-#|IPMnw0iJm0p8x;= literal 0 HcmV?d00001 diff --git a/src/__pycache__/server.cpython-310.pyc b/src/__pycache__/server.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..22ab8e30648cf613d99d0233b02a968c498f319f GIT binary patch literal 2188 zcmZuyU5^_z6tz8{nVqDoWhrebMMA6~MZ4(}DpG~2R#l4x*{ZuLYF)Z}0;zJoPUiK{@s`Ww*kTJ=fPBkMB9>-YMJdh@k!a!yls$ zLqh&Elhe(`F>u0ZPR3+FsIgg2$85mH&cLyACwB)f{7&u-JUrdp9|wbA91cRe z?&YmBmPJa|C{Yj+6`dFut?Ex}HlLCl>!(v4o?OQcJ6$WtX$HWpo`&)-Tbac_VB z{sZxBDk^m^EqE@Zj*M?l$Ri>9*cMJwS&8IXrNgPr?F0wKkA+HxQz=C;JRX|USB=5& z(Ql(yS21v^h@uO|8F!ZKgpSypD5oaMJz;ZN(}lORvE!a@UlZ-#-+i#J-Rsw`UF-VV z$qJ=eS!o|%6vdG==;?NIztxr7mAP&*Dy6`!ap{hA$Ry=limKAyp;8n6E0G&``>(6L z!*VQo!%WF(o=?B)eN%EFi`~7i(}Sv4$ziW~eP?p4BRMUSX4*0lnb0hAK#s%P+!ZeOgvXs*WaL`Xyn)X{5sVmb@#uv+2>BY1vAbod z>&Olc8d40a=D;xBB774@O`ecBRlxFu&RNZ#0Q09zuGeJ2mSm4u4}<4@cpS{!C54wP za1CPt_nFtricvZ1*hg>0Z1y8Q3>Mr;st%=zUB_l$a`;*->#Ln_JRZa(kF^hF0MxFd z-Ad#m`L21_xANhZg=Toix_O!0y|cd#yE21MLm=!k_9}8>8nM~to|WTkx_6rGeccAP zld^z1ham9O^q}O&Lj%#O8QVj*ko938cv90Pr2vPMDV68op@yd=gUx61+oRom)#B4+F9WRhpYRApt+ds3Cf%$usw_VsS4A=ZK? ztE=lZJ3SOB(9&yWsj(s2=c6nac*sl%?V3}x$EV{7k^yOlkh_k&gkaF&6ss4dlfRn?gkB6OlMclCe14TRid6LDFzO6PfN0ql*tbiZd6{ebpLk$nO!;?*y(!IrTuQC!z3xvu}Bgf zCCRwt)7;o`l02KHd9xx-R>(CB;5i#Adn@gLPib(L=KH4zu(va{%2wlZFe>wp55dEQ zxD&=3*57S6>R2;>n;oMgA*Crj_NOHcdC~-~WBf_;>|n>1L#wT(wnnc>%0y*lV}CLB c=>NNm4sSHUeQD^kl`|&mHo@0TqC1=ZzbknT(f|Me literal 0 HcmV?d00001 diff --git a/src/main.py b/src/main.py new file mode 100644 index 0000000..aabce6b --- /dev/null +++ b/src/main.py @@ -0,0 +1,3 @@ +from server import run + +run() diff --git a/src/server.py b/src/server.py new file mode 100644 index 0000000..0811aae --- /dev/null +++ b/src/server.py @@ -0,0 +1,11 @@ +from http.server import BaseHTTPRequestHandler, HTTPServer +import json + +def run(server_class=HTTPServer, handler_class=BaseHTTPRequestHandler): + server_address = ("", 8000) + httpd = server_class(server_address, WeatherHandler) + httpd.serve_forever() + +class WeatherHandler(BaseHTTPRequestHandler): + def do_GET(self): + return self.render(404) \ No newline at end of file diff --git a/src/weather.py b/src/weather.py new file mode 100644 index 0000000..e69de29