commit 9185bec3fe6eb0399fef12e0c423aa231cf60a40 Author: Дмитрий Абдрахманов <565963@gmail.com> Date: Mon Sep 9 10:01:44 2024 +0300 add: basics 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 0000000..f5a57fb Binary files /dev/null and b/src/__pycache__/currencies.cpython-310.pyc differ diff --git a/src/__pycache__/server.cpython-310.pyc b/src/__pycache__/server.cpython-310.pyc new file mode 100644 index 0000000..22ab8e3 Binary files /dev/null and b/src/__pycache__/server.cpython-310.pyc differ 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