Skip to content

Commit 815d03e

Browse files
Merge pull request #21 from ayushranjan6456/master
Setup with Flask, Directories changed
2 parents f44ae7b + f580e92 commit 815d03e

File tree

1,156 files changed

+207294
-218
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,156 files changed

+207294
-218
lines changed

__pycache__/Notebook.cpython-37.pyc

2.67 KB
Binary file not shown.

app.py

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
from flask import Flask, render_template, url_for
2+
3+
app = Flask(__name__)
4+
5+
@app.route('/')
6+
def index():
7+
return render_template('index.html')
8+
9+
@app.route('/alt')
10+
def alternate():
11+
return render_template('index_alt.html')
12+
13+
if __name__ == "__main__":
14+
app.run(debug=True)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pip
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
Copyright 2010 Pallets
2+
3+
Redistribution and use in source and binary forms, with or without
4+
modification, are permitted provided that the following conditions are
5+
met:
6+
7+
1. Redistributions of source code must retain the above copyright
8+
notice, this list of conditions and the following disclaimer.
9+
10+
2. Redistributions in binary form must reproduce the above copyright
11+
notice, this list of conditions and the following disclaimer in the
12+
documentation and/or other materials provided with the distribution.
13+
14+
3. Neither the name of the copyright holder nor the names of its
15+
contributors may be used to endorse or promote products derived from
16+
this software without specific prior written permission.
17+
18+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
21+
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22+
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
24+
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
25+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
26+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
Metadata-Version: 2.1
2+
Name: Flask
3+
Version: 1.1.2
4+
Summary: A simple framework for building complex web applications.
5+
Home-page: https://palletsprojects.com/p/flask/
6+
Author: Armin Ronacher
7+
Author-email: [email protected]
8+
Maintainer: Pallets
9+
Maintainer-email: [email protected]
10+
License: BSD-3-Clause
11+
Project-URL: Documentation, https://flask.palletsprojects.com/
12+
Project-URL: Code, https://github.com/pallets/flask
13+
Project-URL: Issue tracker, https://github.com/pallets/flask/issues
14+
Platform: UNKNOWN
15+
Classifier: Development Status :: 5 - Production/Stable
16+
Classifier: Environment :: Web Environment
17+
Classifier: Framework :: Flask
18+
Classifier: Intended Audience :: Developers
19+
Classifier: License :: OSI Approved :: BSD License
20+
Classifier: Operating System :: OS Independent
21+
Classifier: Programming Language :: Python
22+
Classifier: Programming Language :: Python :: 2
23+
Classifier: Programming Language :: Python :: 2.7
24+
Classifier: Programming Language :: Python :: 3
25+
Classifier: Programming Language :: Python :: 3.5
26+
Classifier: Programming Language :: Python :: 3.6
27+
Classifier: Programming Language :: Python :: 3.7
28+
Classifier: Programming Language :: Python :: 3.8
29+
Classifier: Programming Language :: Python :: Implementation :: CPython
30+
Classifier: Programming Language :: Python :: Implementation :: PyPy
31+
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
32+
Classifier: Topic :: Internet :: WWW/HTTP :: WSGI :: Application
33+
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
34+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
35+
Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*
36+
Requires-Dist: Werkzeug (>=0.15)
37+
Requires-Dist: Jinja2 (>=2.10.1)
38+
Requires-Dist: itsdangerous (>=0.24)
39+
Requires-Dist: click (>=5.1)
40+
Provides-Extra: dev
41+
Requires-Dist: pytest ; extra == 'dev'
42+
Requires-Dist: coverage ; extra == 'dev'
43+
Requires-Dist: tox ; extra == 'dev'
44+
Requires-Dist: sphinx ; extra == 'dev'
45+
Requires-Dist: pallets-sphinx-themes ; extra == 'dev'
46+
Requires-Dist: sphinxcontrib-log-cabinet ; extra == 'dev'
47+
Requires-Dist: sphinx-issues ; extra == 'dev'
48+
Provides-Extra: docs
49+
Requires-Dist: sphinx ; extra == 'docs'
50+
Requires-Dist: pallets-sphinx-themes ; extra == 'docs'
51+
Requires-Dist: sphinxcontrib-log-cabinet ; extra == 'docs'
52+
Requires-Dist: sphinx-issues ; extra == 'docs'
53+
Provides-Extra: dotenv
54+
Requires-Dist: python-dotenv ; extra == 'dotenv'
55+
56+
Flask
57+
=====
58+
59+
Flask is a lightweight `WSGI`_ web application framework. It is designed
60+
to make getting started quick and easy, with the ability to scale up to
61+
complex applications. It began as a simple wrapper around `Werkzeug`_
62+
and `Jinja`_ and has become one of the most popular Python web
63+
application frameworks.
64+
65+
Flask offers suggestions, but doesn't enforce any dependencies or
66+
project layout. It is up to the developer to choose the tools and
67+
libraries they want to use. There are many extensions provided by the
68+
community that make adding new functionality easy.
69+
70+
71+
Installing
72+
----------
73+
74+
Install and update using `pip`_:
75+
76+
.. code-block:: text
77+
78+
pip install -U Flask
79+
80+
81+
A Simple Example
82+
----------------
83+
84+
.. code-block:: python
85+
86+
from flask import Flask
87+
88+
app = Flask(__name__)
89+
90+
@app.route("/")
91+
def hello():
92+
return "Hello, World!"
93+
94+
.. code-block:: text
95+
96+
$ env FLASK_APP=hello.py flask run
97+
* Serving Flask app "hello"
98+
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
99+
100+
101+
Contributing
102+
------------
103+
104+
For guidance on setting up a development environment and how to make a
105+
contribution to Flask, see the `contributing guidelines`_.
106+
107+
.. _contributing guidelines: https://github.com/pallets/flask/blob/master/CONTRIBUTING.rst
108+
109+
110+
Donate
111+
------
112+
113+
The Pallets organization develops and supports Flask and the libraries
114+
it uses. In order to grow the community of contributors and users, and
115+
allow the maintainers to devote more time to the projects, `please
116+
donate today`_.
117+
118+
.. _please donate today: https://psfmember.org/civicrm/contribute/transact?reset=1&id=20
119+
120+
121+
Links
122+
-----
123+
124+
* Website: https://palletsprojects.com/p/flask/
125+
* Documentation: https://flask.palletsprojects.com/
126+
* Releases: https://pypi.org/project/Flask/
127+
* Code: https://github.com/pallets/flask
128+
* Issue tracker: https://github.com/pallets/flask/issues
129+
* Test status: https://dev.azure.com/pallets/flask/_build
130+
* Official chat: https://discord.gg/t6rrQZH
131+
132+
.. _WSGI: https://wsgi.readthedocs.io
133+
.. _Werkzeug: https://www.palletsprojects.com/p/werkzeug/
134+
.. _Jinja: https://www.palletsprojects.com/p/jinja/
135+
.. _pip: https://pip.pypa.io/en/stable/quickstart/
136+
137+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
../../Scripts/flask.exe,sha256=tkLAeqt4Dn2pvgRqmPj93VYGCDp7pDSgpoQBY6cExdo,106384
2+
Flask-1.1.2.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
3+
Flask-1.1.2.dist-info/LICENSE.rst,sha256=SJqOEQhQntmKN7uYPhHg9-HTHwvY-Zp5yESOf_N9B-o,1475
4+
Flask-1.1.2.dist-info/METADATA,sha256=3INpPWH6nKfZ33R2N-bQZy4TOe1wQCMweZc9mwcNrtc,4591
5+
Flask-1.1.2.dist-info/RECORD,,
6+
Flask-1.1.2.dist-info/WHEEL,sha256=8zNYZbwQSXoB9IfXOjPfeNwvAsALAjffgk27FqvCWbo,110
7+
Flask-1.1.2.dist-info/entry_points.txt,sha256=gBLA1aKg0OYR8AhbAfg8lnburHtKcgJLDU52BBctN0k,42
8+
Flask-1.1.2.dist-info/top_level.txt,sha256=dvi65F6AeGWVU0TBpYiC04yM60-FX1gJFkK31IKQr5c,6
9+
flask/__init__.py,sha256=YnA9wkwbJcnb_jTT-nMsMFeFE_UWt33khKzdHmMSuyI,1894
10+
flask/__main__.py,sha256=fjVtt3QTANXlpJCOv3Ha7d5H-76MwzSIOab7SFD9TEk,254
11+
flask/__pycache__/__init__.cpython-37.pyc,,
12+
flask/__pycache__/__main__.cpython-37.pyc,,
13+
flask/__pycache__/_compat.cpython-37.pyc,,
14+
flask/__pycache__/app.cpython-37.pyc,,
15+
flask/__pycache__/blueprints.cpython-37.pyc,,
16+
flask/__pycache__/cli.cpython-37.pyc,,
17+
flask/__pycache__/config.cpython-37.pyc,,
18+
flask/__pycache__/ctx.cpython-37.pyc,,
19+
flask/__pycache__/debughelpers.cpython-37.pyc,,
20+
flask/__pycache__/globals.cpython-37.pyc,,
21+
flask/__pycache__/helpers.cpython-37.pyc,,
22+
flask/__pycache__/logging.cpython-37.pyc,,
23+
flask/__pycache__/sessions.cpython-37.pyc,,
24+
flask/__pycache__/signals.cpython-37.pyc,,
25+
flask/__pycache__/templating.cpython-37.pyc,,
26+
flask/__pycache__/testing.cpython-37.pyc,,
27+
flask/__pycache__/views.cpython-37.pyc,,
28+
flask/__pycache__/wrappers.cpython-37.pyc,,
29+
flask/_compat.py,sha256=8KPT54Iig96TuLipdogLRHNYToIcg-xPhnSV5VRERnw,4099
30+
flask/app.py,sha256=tmEhx_XrIRP24vZg39dHMWFzJ2jj-YxIcd51LaIT5cE,98059
31+
flask/blueprints.py,sha256=vkdm8NusGsfZUeIfPdCluj733QFmiQcT4Sk1tuZLUjw,21400
32+
flask/cli.py,sha256=SIb22uq9wYBeB2tKMl0pYdhtZ1MAQyZtPL-3m6es4G0,31035
33+
flask/config.py,sha256=3dejvQRYfNHw_V7dCLMxU8UNFpL34xIKemN7gHZIZ8Y,10052
34+
flask/ctx.py,sha256=cks-omGedkxawHFo6bKIrdOHsJCAgg1i_NWw_htxb5U,16724
35+
flask/debughelpers.py,sha256=-whvPKuAoU8AZ9c1z_INuOeBgfYDqE1J2xNBsoriugU,6475
36+
flask/globals.py,sha256=OgcHb6_NCyX6-TldciOdKcyj4PNfyQwClxdMhvov6aA,1637
37+
flask/helpers.py,sha256=IHa578HU_3XAAo1wpXQv24MYRYO5TzaiDQQwvUIcE6Q,43074
38+
flask/json/__init__.py,sha256=6nITbZYiYOPB8Qfi1-dvsblwn01KRz8VOsMBIZyaYek,11988
39+
flask/json/__pycache__/__init__.cpython-37.pyc,,
40+
flask/json/__pycache__/tag.cpython-37.pyc,,
41+
flask/json/tag.py,sha256=vq9GOllg_0kTWKuVFrwmkeOQzR-jdBD23x-89JyCCQI,8306
42+
flask/logging.py,sha256=WcY5UkqTysGfmosyygSlXyZYGwOp3y-VsE6ehoJ48dk,3250
43+
flask/sessions.py,sha256=G0KsEkr_i1LG_wOINwFSOW3ts7Xbv4bNgEZKc7TRloc,14360
44+
flask/signals.py,sha256=yYLOed2x8WnQ7pirGalQYfpYpCILJ0LJhmNSrnWvjqw,2212
45+
flask/templating.py,sha256=F8E_IZXn9BGsjMzUJ5N_ACMyZdiFBp_SSEaUunvfZ7g,4939
46+
flask/testing.py,sha256=WXsciCQbHBP7xjHqNvOA4bT0k86GvSNpgzncfXLDEEg,10146
47+
flask/views.py,sha256=eeWnadLAj0QdQPLtjKipDetRZyG62CT2y7fNOFDJz0g,5802
48+
flask/wrappers.py,sha256=kgsvtZuMM6RQaDqhRbc5Pcj9vqTnaERl2pmXcdGL7LU,4736
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Wheel-Version: 1.0
2+
Generator: bdist_wheel (0.33.6)
3+
Root-Is-Purelib: true
4+
Tag: py2-none-any
5+
Tag: py3-none-any
6+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[console_scripts]
2+
flask = flask.cli:main
3+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
flask
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pip
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
Copyright 2007 Pallets
2+
3+
Redistribution and use in source and binary forms, with or without
4+
modification, are permitted provided that the following conditions are
5+
met:
6+
7+
1. Redistributions of source code must retain the above copyright
8+
notice, this list of conditions and the following disclaimer.
9+
10+
2. Redistributions in binary form must reproduce the above copyright
11+
notice, this list of conditions and the following disclaimer in the
12+
documentation and/or other materials provided with the distribution.
13+
14+
3. Neither the name of the copyright holder nor the names of its
15+
contributors may be used to endorse or promote products derived from
16+
this software without specific prior written permission.
17+
18+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
21+
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22+
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
24+
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
25+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
26+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
Metadata-Version: 2.1
2+
Name: Jinja2
3+
Version: 2.11.2
4+
Summary: A very fast and expressive template engine.
5+
Home-page: https://palletsprojects.com/p/jinja/
6+
Author: Armin Ronacher
7+
Author-email: [email protected]
8+
Maintainer: Pallets
9+
Maintainer-email: [email protected]
10+
License: BSD-3-Clause
11+
Project-URL: Documentation, https://jinja.palletsprojects.com/
12+
Project-URL: Code, https://github.com/pallets/jinja
13+
Project-URL: Issue tracker, https://github.com/pallets/jinja/issues
14+
Platform: UNKNOWN
15+
Classifier: Development Status :: 5 - Production/Stable
16+
Classifier: Environment :: Web Environment
17+
Classifier: Intended Audience :: Developers
18+
Classifier: License :: OSI Approved :: BSD License
19+
Classifier: Operating System :: OS Independent
20+
Classifier: Programming Language :: Python
21+
Classifier: Programming Language :: Python :: 2
22+
Classifier: Programming Language :: Python :: 2.7
23+
Classifier: Programming Language :: Python :: 3
24+
Classifier: Programming Language :: Python :: 3.5
25+
Classifier: Programming Language :: Python :: 3.6
26+
Classifier: Programming Language :: Python :: 3.7
27+
Classifier: Programming Language :: Python :: 3.8
28+
Classifier: Programming Language :: Python :: Implementation :: CPython
29+
Classifier: Programming Language :: Python :: Implementation :: PyPy
30+
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
31+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
32+
Classifier: Topic :: Text Processing :: Markup :: HTML
33+
Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*
34+
Description-Content-Type: text/x-rst
35+
Requires-Dist: MarkupSafe (>=0.23)
36+
Provides-Extra: i18n
37+
Requires-Dist: Babel (>=0.8) ; extra == 'i18n'
38+
39+
Jinja
40+
=====
41+
42+
Jinja is a fast, expressive, extensible templating engine. Special
43+
placeholders in the template allow writing code similar to Python
44+
syntax. Then the template is passed data to render the final document.
45+
46+
It includes:
47+
48+
- Template inheritance and inclusion.
49+
- Define and import macros within templates.
50+
- HTML templates can use autoescaping to prevent XSS from untrusted
51+
user input.
52+
- A sandboxed environment can safely render untrusted templates.
53+
- AsyncIO support for generating templates and calling async
54+
functions.
55+
- I18N support with Babel.
56+
- Templates are compiled to optimized Python code just-in-time and
57+
cached, or can be compiled ahead-of-time.
58+
- Exceptions point to the correct line in templates to make debugging
59+
easier.
60+
- Extensible filters, tests, functions, and even syntax.
61+
62+
Jinja's philosophy is that while application logic belongs in Python if
63+
possible, it shouldn't make the template designer's job difficult by
64+
restricting functionality too much.
65+
66+
67+
Installing
68+
----------
69+
70+
Install and update using `pip`_:
71+
72+
.. code-block:: text
73+
74+
$ pip install -U Jinja2
75+
76+
.. _pip: https://pip.pypa.io/en/stable/quickstart/
77+
78+
79+
In A Nutshell
80+
-------------
81+
82+
.. code-block:: jinja
83+
84+
{% extends "base.html" %}
85+
{% block title %}Members{% endblock %}
86+
{% block content %}
87+
<ul>
88+
{% for user in users %}
89+
<li><a href="{{ user.url }}">{{ user.username }}</a></li>
90+
{% endfor %}
91+
</ul>
92+
{% endblock %}
93+
94+
95+
Links
96+
-----
97+
98+
- Website: https://palletsprojects.com/p/jinja/
99+
- Documentation: https://jinja.palletsprojects.com/
100+
- Releases: https://pypi.org/project/Jinja2/
101+
- Code: https://github.com/pallets/jinja
102+
- Issue tracker: https://github.com/pallets/jinja/issues
103+
- Test status: https://dev.azure.com/pallets/jinja/_build
104+
- Official chat: https://discord.gg/t6rrQZH
105+
106+

0 commit comments

Comments
 (0)