Skip to content

Commit 0724046

Browse files
committed
first commit
0 parents  commit 0724046

File tree

1,168 files changed

+214339
-0
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,168 files changed

+214339
-0
lines changed
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,112 @@
1+
Metadata-Version: 2.1
2+
Name: Jinja2
3+
Version: 3.0.1
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: Donate, https://palletsprojects.com/donate
12+
Project-URL: Documentation, https://jinja.palletsprojects.com/
13+
Project-URL: Changes, https://jinja.palletsprojects.com/changes/
14+
Project-URL: Source Code, https://github.com/pallets/jinja/
15+
Project-URL: Issue Tracker, https://github.com/pallets/jinja/issues/
16+
Project-URL: Twitter, https://twitter.com/PalletsTeam
17+
Project-URL: Chat, https://discord.gg/pallets
18+
Platform: UNKNOWN
19+
Classifier: Development Status :: 5 - Production/Stable
20+
Classifier: Environment :: Web Environment
21+
Classifier: Intended Audience :: Developers
22+
Classifier: License :: OSI Approved :: BSD License
23+
Classifier: Operating System :: OS Independent
24+
Classifier: Programming Language :: Python
25+
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
26+
Classifier: Topic :: Text Processing :: Markup :: HTML
27+
Requires-Python: >=3.6
28+
Description-Content-Type: text/x-rst
29+
Requires-Dist: MarkupSafe (>=2.0)
30+
Provides-Extra: i18n
31+
Requires-Dist: Babel (>=2.7) ; extra == 'i18n'
32+
33+
Jinja
34+
=====
35+
36+
Jinja is a fast, expressive, extensible templating engine. Special
37+
placeholders in the template allow writing code similar to Python
38+
syntax. Then the template is passed data to render the final document.
39+
40+
It includes:
41+
42+
- Template inheritance and inclusion.
43+
- Define and import macros within templates.
44+
- HTML templates can use autoescaping to prevent XSS from untrusted
45+
user input.
46+
- A sandboxed environment can safely render untrusted templates.
47+
- AsyncIO support for generating templates and calling async
48+
functions.
49+
- I18N support with Babel.
50+
- Templates are compiled to optimized Python code just-in-time and
51+
cached, or can be compiled ahead-of-time.
52+
- Exceptions point to the correct line in templates to make debugging
53+
easier.
54+
- Extensible filters, tests, functions, and even syntax.
55+
56+
Jinja's philosophy is that while application logic belongs in Python if
57+
possible, it shouldn't make the template designer's job difficult by
58+
restricting functionality too much.
59+
60+
61+
Installing
62+
----------
63+
64+
Install and update using `pip`_:
65+
66+
.. code-block:: text
67+
68+
$ pip install -U Jinja2
69+
70+
.. _pip: https://pip.pypa.io/en/stable/quickstart/
71+
72+
73+
In A Nutshell
74+
-------------
75+
76+
.. code-block:: jinja
77+
78+
{% extends "base.html" %}
79+
{% block title %}Members{% endblock %}
80+
{% block content %}
81+
<ul>
82+
{% for user in users %}
83+
<li><a href="{{ user.url }}">{{ user.username }}</a></li>
84+
{% endfor %}
85+
</ul>
86+
{% endblock %}
87+
88+
89+
Donate
90+
------
91+
92+
The Pallets organization develops and supports Jinja and other popular
93+
packages. In order to grow the community of contributors and users, and
94+
allow the maintainers to devote more time to the projects, `please
95+
donate today`_.
96+
97+
.. _please donate today: https://palletsprojects.com/donate
98+
99+
100+
Links
101+
-----
102+
103+
- Documentation: https://jinja.palletsprojects.com/
104+
- Changes: https://jinja.palletsprojects.com/changes/
105+
- PyPI Releases: https://pypi.org/project/Jinja2/
106+
- Source Code: https://github.com/pallets/jinja/
107+
- Issue Tracker: https://github.com/pallets/jinja/issues/
108+
- Website: https://palletsprojects.com/p/jinja/
109+
- Twitter: https://twitter.com/PalletsTeam
110+
- Chat: https://discord.gg/pallets
111+
112+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
jinja2/__init__.py,sha256=fd8jaCRsCATgC7ahuUTD8CyfQoc4aRfALEIny4mwfog,2205
2+
jinja2/_identifier.py,sha256=EdgGJKi7O1yvr4yFlvqPNEqV6M1qHyQr8Gt8GmVTKVM,1775
3+
jinja2/async_utils.py,sha256=bY2nCUfBA_4FSnNUsIsJgljBq3hACr6fzLi7LiyMTn8,1751
4+
jinja2/bccache.py,sha256=smAvSDgDSvXdvJzCN_9s0XfkVpQEu8be-QwgeMlrwiM,12677
5+
jinja2/compiler.py,sha256=qq0Fo9EpDAEwHPLAs3sAP7dindUvDrFrbx4AcB8xV5M,72046
6+
jinja2/constants.py,sha256=GMoFydBF_kdpaRKPoM5cl5MviquVRLVyZtfp5-16jg0,1433
7+
jinja2/debug.py,sha256=uBmrsiwjYH5l14R9STn5mydOOyriBYol5lDGvEqAb3A,9238
8+
jinja2/defaults.py,sha256=boBcSw78h-lp20YbaXSJsqkAI2uN_mD_TtCydpeq5wU,1267
9+
jinja2/environment.py,sha256=T6U4be9mY1CUXXin_EQFwpvpFqCiryweGqzXGRYIoSA,61573
10+
jinja2/exceptions.py,sha256=ioHeHrWwCWNaXX1inHmHVblvc4haO7AXsjCp3GfWvx0,5071
11+
jinja2/ext.py,sha256=44SjDjeYkkxQTpmC2BetOTxEFMgQ42p2dfSwXmPFcSo,32122
12+
jinja2/filters.py,sha256=LslRsJd0JVFBHtdfU_WraM1eQitotciwawiW-seR42U,52577
13+
jinja2/idtracking.py,sha256=KdFVohVNK-baOwt_INPMco19D7AfLDEN8i3_JoiYnGQ,10713
14+
jinja2/lexer.py,sha256=D5qOKB3KnRqK9gPAZFQvRguomYsQok5-14TKiWTN8Jw,29923
15+
jinja2/loaders.py,sha256=ePpWB0xDrILgLVqNFcxqqSbPizsI0T-JlkNEUFqq9fo,22350
16+
jinja2/meta.py,sha256=GNPEvifmSaU3CMxlbheBOZjeZ277HThOPUTf1RkppKQ,4396
17+
jinja2/nativetypes.py,sha256=62hvvsAxAj0YaxylOHoREYVogJ5JqOlJISgGY3OKd_o,3675
18+
jinja2/nodes.py,sha256=LHF97fu6GW4r2Z9UaOX92MOT1wZpdS9Nx4N-5Fp5ti8,34509
19+
jinja2/optimizer.py,sha256=tHkMwXxfZkbfA1KmLcqmBMSaz7RLIvvItrJcPoXTyD8,1650
20+
jinja2/parser.py,sha256=kHnU8v92GwMYkfr0MVakWv8UlSf_kJPx8LUsgQMof70,39767
21+
jinja2/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22+
jinja2/runtime.py,sha256=bSWdawLjReKpKHhF3-96OIuWYpUy1yxFJCN3jBYyoXc,35013
23+
jinja2/sandbox.py,sha256=-8zxR6TO9kUkciAVFsIKu8Oq-C7PTeYEdZ5TtA55-gw,14600
24+
jinja2/tests.py,sha256=Am5Z6Lmfr2XaH_npIfJJ8MdXtWsbLjMULZJulTAj30E,5905
25+
jinja2/utils.py,sha256=0wGkxDbxlW10y0ac4-kEiy1Bn0AsWXqz8uomK9Ugy1Q,26961
26+
jinja2/visitor.py,sha256=ZmeLuTj66ic35-uFH-1m0EKXiw4ObDDb_WuE6h5vPFg,3572
27+
Jinja2-3.0.1.dist-info/LICENSE.rst,sha256=O0nc7kEF6ze6wQ-vG-JgQI_oXSUrjp3y4JefweCUQ3s,1475
28+
Jinja2-3.0.1.dist-info/METADATA,sha256=k6STiOONbGESP2rEKmjhznuG10vm9sNCHCUQL9AQFM4,3508
29+
Jinja2-3.0.1.dist-info/WHEEL,sha256=OqRkF0eY5GHssMorFjlbTIq072vpHpF60fIQA6lS9xA,92
30+
Jinja2-3.0.1.dist-info/entry_points.txt,sha256=Qy_DkVo6Xj_zzOtmErrATe8lHZhOqdjpt3e4JJAGyi8,61
31+
Jinja2-3.0.1.dist-info/top_level.txt,sha256=PkeVWtLb3-CqjWi1fO29OCbj55EhX_chhKrCdrVe_zs,7
32+
Jinja2-3.0.1.dist-info/RECORD,,
33+
Jinja2-3.0.1.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
34+
jinja2/__pycache__/async_utils.cpython-37.pyc,,
35+
jinja2/__pycache__/bccache.cpython-37.pyc,,
36+
jinja2/__pycache__/compiler.cpython-37.pyc,,
37+
jinja2/__pycache__/constants.cpython-37.pyc,,
38+
jinja2/__pycache__/debug.cpython-37.pyc,,
39+
jinja2/__pycache__/defaults.cpython-37.pyc,,
40+
jinja2/__pycache__/environment.cpython-37.pyc,,
41+
jinja2/__pycache__/exceptions.cpython-37.pyc,,
42+
jinja2/__pycache__/ext.cpython-37.pyc,,
43+
jinja2/__pycache__/filters.cpython-37.pyc,,
44+
jinja2/__pycache__/idtracking.cpython-37.pyc,,
45+
jinja2/__pycache__/lexer.cpython-37.pyc,,
46+
jinja2/__pycache__/loaders.cpython-37.pyc,,
47+
jinja2/__pycache__/meta.cpython-37.pyc,,
48+
jinja2/__pycache__/nativetypes.cpython-37.pyc,,
49+
jinja2/__pycache__/nodes.cpython-37.pyc,,
50+
jinja2/__pycache__/optimizer.cpython-37.pyc,,
51+
jinja2/__pycache__/parser.cpython-37.pyc,,
52+
jinja2/__pycache__/runtime.cpython-37.pyc,,
53+
jinja2/__pycache__/sandbox.cpython-37.pyc,,
54+
jinja2/__pycache__/tests.cpython-37.pyc,,
55+
jinja2/__pycache__/utils.cpython-37.pyc,,
56+
jinja2/__pycache__/visitor.cpython-37.pyc,,
57+
jinja2/__pycache__/_identifier.cpython-37.pyc,,
58+
jinja2/__pycache__/__init__.cpython-37.pyc,,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Wheel-Version: 1.0
2+
Generator: bdist_wheel (0.36.2)
3+
Root-Is-Purelib: true
4+
Tag: py3-none-any
5+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[babel.extractors]
2+
jinja2 = jinja2.ext:babel_extract [i18n]
3+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
jinja2
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,100 @@
1+
Metadata-Version: 2.1
2+
Name: MarkupSafe
3+
Version: 2.0.1
4+
Summary: Safely add untrusted strings to HTML/XML markup.
5+
Home-page: https://palletsprojects.com/p/markupsafe/
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: Donate, https://palletsprojects.com/donate
12+
Project-URL: Documentation, https://markupsafe.palletsprojects.com/
13+
Project-URL: Changes, https://markupsafe.palletsprojects.com/changes/
14+
Project-URL: Source Code, https://github.com/pallets/markupsafe/
15+
Project-URL: Issue Tracker, https://github.com/pallets/markupsafe/issues/
16+
Project-URL: Twitter, https://twitter.com/PalletsTeam
17+
Project-URL: Chat, https://discord.gg/pallets
18+
Platform: UNKNOWN
19+
Classifier: Development Status :: 5 - Production/Stable
20+
Classifier: Environment :: Web Environment
21+
Classifier: Intended Audience :: Developers
22+
Classifier: License :: OSI Approved :: BSD License
23+
Classifier: Operating System :: OS Independent
24+
Classifier: Programming Language :: Python
25+
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
26+
Classifier: Topic :: Text Processing :: Markup :: HTML
27+
Requires-Python: >=3.6
28+
Description-Content-Type: text/x-rst
29+
30+
MarkupSafe
31+
==========
32+
33+
MarkupSafe implements a text object that escapes characters so it is
34+
safe to use in HTML and XML. Characters that have special meanings are
35+
replaced so that they display as the actual characters. This mitigates
36+
injection attacks, meaning untrusted user input can safely be displayed
37+
on a page.
38+
39+
40+
Installing
41+
----------
42+
43+
Install and update using `pip`_:
44+
45+
.. code-block:: text
46+
47+
pip install -U MarkupSafe
48+
49+
.. _pip: https://pip.pypa.io/en/stable/quickstart/
50+
51+
52+
Examples
53+
--------
54+
55+
.. code-block:: pycon
56+
57+
>>> from markupsafe import Markup, escape
58+
59+
>>> # escape replaces special characters and wraps in Markup
60+
>>> escape("<script>alert(document.cookie);</script>")
61+
Markup('&lt;script&gt;alert(document.cookie);&lt;/script&gt;')
62+
63+
>>> # wrap in Markup to mark text "safe" and prevent escaping
64+
>>> Markup("<strong>Hello</strong>")
65+
Markup('<strong>hello</strong>')
66+
67+
>>> escape(Markup("<strong>Hello</strong>"))
68+
Markup('<strong>hello</strong>')
69+
70+
>>> # Markup is a str subclass
71+
>>> # methods and operators escape their arguments
72+
>>> template = Markup("Hello <em>{name}</em>")
73+
>>> template.format(name='"World"')
74+
Markup('Hello <em>&#34;World&#34;</em>')
75+
76+
77+
Donate
78+
------
79+
80+
The Pallets organization develops and supports MarkupSafe and other
81+
popular packages. In order to grow the community of contributors and
82+
users, and allow the maintainers to devote more time to the projects,
83+
`please donate today`_.
84+
85+
.. _please donate today: https://palletsprojects.com/donate
86+
87+
88+
Links
89+
-----
90+
91+
- Documentation: https://markupsafe.palletsprojects.com/
92+
- Changes: https://markupsafe.palletsprojects.com/changes/
93+
- PyPI Releases: https://pypi.org/project/MarkupSafe/
94+
- Source Code: https://github.com/pallets/markupsafe/
95+
- Issue Tracker: https://github.com/pallets/markupsafe/issues/
96+
- Website: https://palletsprojects.com/p/markupsafe/
97+
- Twitter: https://twitter.com/PalletsTeam
98+
- Chat: https://discord.gg/pallets
99+
100+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
markupsafe/__init__.py,sha256=s08KbuFRV3zh4Wh7xjsIphXgp1xf0EUB79wlPj-4scc,9211
2+
markupsafe/_native.py,sha256=JMXegJtk1ZcnRKrgyCA-CEXmRnOpaIXLyDAM98GbshY,2061
3+
markupsafe/_speedups.cp37-win32.pyd,sha256=4e1f3DC28BxaOI6TsobcLeg11phC7c92gbD7LwxaY04,13312
4+
markupsafe/_speedups.pyi,sha256=f5QtwIOP0eLrxh2v5p6SmaYmlcHIGIfmz0DovaqL0OU,238
5+
markupsafe/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6+
MarkupSafe-2.0.1.dist-info/LICENSE.rst,sha256=RjHsDbX9kKVH4zaBcmTGeYIUM4FG-KyUtKV_lu6MnsQ,1503
7+
MarkupSafe-2.0.1.dist-info/METADATA,sha256=FmPpxBdaqCCjF-XKqoxeEzqAzhetQnrkkSsd3V3X-Jc,3211
8+
MarkupSafe-2.0.1.dist-info/WHEEL,sha256=HMboZ8ZR71bu96oAB49ix1AoR5WMLRAlp0J7XJ13Vok,97
9+
MarkupSafe-2.0.1.dist-info/top_level.txt,sha256=qy0Plje5IJuvsCBjejJyhDCjEAdcDLK_2agVcex8Z6U,11
10+
MarkupSafe-2.0.1.dist-info/RECORD,,
11+
MarkupSafe-2.0.1.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
12+
markupsafe/__pycache__/_native.cpython-37.pyc,,
13+
markupsafe/__pycache__/__init__.cpython-37.pyc,,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Wheel-Version: 1.0
2+
Generator: bdist_wheel (0.36.2)
3+
Root-Is-Purelib: false
4+
Tag: cp37-cp37m-win32
5+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
markupsafe

0 commit comments

Comments
 (0)