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