From 460e22dc2e0154eab9d5c546990eb5771496fe2c Mon Sep 17 00:00:00 2001 From: ElEgEv <112943269+ElEgEv@users.noreply.github.com> Date: Thu, 14 Sep 2023 10:13:50 +0400 Subject: [PATCH] Init. --- .idea/.gitignore | 3 +++ .idea/Project.iml | 8 ++++++++ .idea/inspectionProfiles/profiles_settings.xml | 6 ++++++ .idea/misc.xml | 7 +++++++ .idea/modules.xml | 8 ++++++++ .idea/vcs.xml | 6 ++++++ Test.py | 18 ++++++++++++++++++ 7 files changed, 56 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/Project.iml create mode 100644 .idea/inspectionProfiles/profiles_settings.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml create mode 100644 Test.py diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/Project.iml b/.idea/Project.iml new file mode 100644 index 0000000..d0876a7 --- /dev/null +++ b/.idea/Project.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..105ce2d --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..a377feb --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,7 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..74f1bcb --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Test.py b/Test.py new file mode 100644 index 0000000..dedd871 --- /dev/null +++ b/Test.py @@ -0,0 +1,18 @@ +from flask import Flask, redirect, url_for, request +from num2words import num2words + +app = Flask(__name__) +@app.route("/") +def home(): + return "
" \ + "" \ + "" \ + "
" + +@app.route("/numtext", methods=['GET','POST']) +def numtext(): + data = request.args + return num2words(data['name'], lang='ru') + +if __name__=="__main__": + app.run(debug=False) \ No newline at end of file