-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2af5c9c
commit 02307c6
Showing
3,866 changed files
with
1,007,459 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,164 @@ | ||
/* -*- indent-tabs-mode: nil; tab-width: 4; -*- */ | ||
|
||
/* Greenlet object interface */ | ||
|
||
#ifndef Py_GREENLETOBJECT_H | ||
#define Py_GREENLETOBJECT_H | ||
|
||
|
||
#include <Python.h> | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
/* This is deprecated and undocumented. It does not change. */ | ||
#define GREENLET_VERSION "1.0.0" | ||
|
||
#ifndef GREENLET_MODULE | ||
#define implementation_ptr_t void* | ||
#endif | ||
|
||
typedef struct _greenlet { | ||
PyObject_HEAD | ||
PyObject* weakreflist; | ||
PyObject* dict; | ||
implementation_ptr_t pimpl; | ||
} PyGreenlet; | ||
|
||
#define PyGreenlet_Check(op) (op && PyObject_TypeCheck(op, &PyGreenlet_Type)) | ||
|
||
|
||
/* C API functions */ | ||
|
||
/* Total number of symbols that are exported */ | ||
#define PyGreenlet_API_pointers 12 | ||
|
||
#define PyGreenlet_Type_NUM 0 | ||
#define PyExc_GreenletError_NUM 1 | ||
#define PyExc_GreenletExit_NUM 2 | ||
|
||
#define PyGreenlet_New_NUM 3 | ||
#define PyGreenlet_GetCurrent_NUM 4 | ||
#define PyGreenlet_Throw_NUM 5 | ||
#define PyGreenlet_Switch_NUM 6 | ||
#define PyGreenlet_SetParent_NUM 7 | ||
|
||
#define PyGreenlet_MAIN_NUM 8 | ||
#define PyGreenlet_STARTED_NUM 9 | ||
#define PyGreenlet_ACTIVE_NUM 10 | ||
#define PyGreenlet_GET_PARENT_NUM 11 | ||
|
||
#ifndef GREENLET_MODULE | ||
/* This section is used by modules that uses the greenlet C API */ | ||
static void** _PyGreenlet_API = NULL; | ||
|
||
# define PyGreenlet_Type \ | ||
(*(PyTypeObject*)_PyGreenlet_API[PyGreenlet_Type_NUM]) | ||
|
||
# define PyExc_GreenletError \ | ||
((PyObject*)_PyGreenlet_API[PyExc_GreenletError_NUM]) | ||
|
||
# define PyExc_GreenletExit \ | ||
((PyObject*)_PyGreenlet_API[PyExc_GreenletExit_NUM]) | ||
|
||
/* | ||
* PyGreenlet_New(PyObject *args) | ||
* | ||
* greenlet.greenlet(run, parent=None) | ||
*/ | ||
# define PyGreenlet_New \ | ||
(*(PyGreenlet * (*)(PyObject * run, PyGreenlet * parent)) \ | ||
_PyGreenlet_API[PyGreenlet_New_NUM]) | ||
|
||
/* | ||
* PyGreenlet_GetCurrent(void) | ||
* | ||
* greenlet.getcurrent() | ||
*/ | ||
# define PyGreenlet_GetCurrent \ | ||
(*(PyGreenlet * (*)(void)) _PyGreenlet_API[PyGreenlet_GetCurrent_NUM]) | ||
|
||
/* | ||
* PyGreenlet_Throw( | ||
* PyGreenlet *greenlet, | ||
* PyObject *typ, | ||
* PyObject *val, | ||
* PyObject *tb) | ||
* | ||
* g.throw(...) | ||
*/ | ||
# define PyGreenlet_Throw \ | ||
(*(PyObject * (*)(PyGreenlet * self, \ | ||
PyObject * typ, \ | ||
PyObject * val, \ | ||
PyObject * tb)) \ | ||
_PyGreenlet_API[PyGreenlet_Throw_NUM]) | ||
|
||
/* | ||
* PyGreenlet_Switch(PyGreenlet *greenlet, PyObject *args) | ||
* | ||
* g.switch(*args, **kwargs) | ||
*/ | ||
# define PyGreenlet_Switch \ | ||
(*(PyObject * \ | ||
(*)(PyGreenlet * greenlet, PyObject * args, PyObject * kwargs)) \ | ||
_PyGreenlet_API[PyGreenlet_Switch_NUM]) | ||
|
||
/* | ||
* PyGreenlet_SetParent(PyObject *greenlet, PyObject *new_parent) | ||
* | ||
* g.parent = new_parent | ||
*/ | ||
# define PyGreenlet_SetParent \ | ||
(*(int (*)(PyGreenlet * greenlet, PyGreenlet * nparent)) \ | ||
_PyGreenlet_API[PyGreenlet_SetParent_NUM]) | ||
|
||
/* | ||
* PyGreenlet_GetParent(PyObject* greenlet) | ||
* | ||
* return greenlet.parent; | ||
* | ||
* This could return NULL even if there is no exception active. | ||
* If it does not return NULL, you are responsible for decrementing the | ||
* reference count. | ||
*/ | ||
# define PyGreenlet_GetParent \ | ||
(*(PyGreenlet* (*)(PyGreenlet*)) \ | ||
_PyGreenlet_API[PyGreenlet_GET_PARENT_NUM]) | ||
|
||
/* | ||
* deprecated, undocumented alias. | ||
*/ | ||
# define PyGreenlet_GET_PARENT PyGreenlet_GetParent | ||
|
||
# define PyGreenlet_MAIN \ | ||
(*(int (*)(PyGreenlet*)) \ | ||
_PyGreenlet_API[PyGreenlet_MAIN_NUM]) | ||
|
||
# define PyGreenlet_STARTED \ | ||
(*(int (*)(PyGreenlet*)) \ | ||
_PyGreenlet_API[PyGreenlet_STARTED_NUM]) | ||
|
||
# define PyGreenlet_ACTIVE \ | ||
(*(int (*)(PyGreenlet*)) \ | ||
_PyGreenlet_API[PyGreenlet_ACTIVE_NUM]) | ||
|
||
|
||
|
||
|
||
/* Macro that imports greenlet and initializes C API */ | ||
/* NOTE: This has actually moved to ``greenlet._greenlet._C_API``, but we | ||
keep the older definition to be sure older code that might have a copy of | ||
the header still works. */ | ||
# define PyGreenlet_Import() \ | ||
{ \ | ||
_PyGreenlet_API = (void**)PyCapsule_Import("greenlet._C_API", 0); \ | ||
} | ||
|
||
#endif /* GREENLET_MODULE */ | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
#endif /* !Py_GREENLETOBJECT_H */ |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
Copyright 2010 Pallets | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are | ||
met: | ||
|
||
1. Redistributions of source code must retain the above copyright | ||
notice, this list of conditions and the following disclaimer. | ||
|
||
2. Redistributions in binary form must reproduce the above copyright | ||
notice, this list of conditions and the following disclaimer in the | ||
documentation and/or other materials provided with the distribution. | ||
|
||
3. Neither the name of the copyright holder nor the names of its | ||
contributors may be used to endorse or promote products derived from | ||
this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A | ||
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED | ||
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | ||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF | ||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | ||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
Metadata-Version: 2.1 | ||
Name: Flask | ||
Version: 2.0.1 | ||
Summary: A simple framework for building complex web applications. | ||
Home-page: https://palletsprojects.com/p/flask | ||
Author: Armin Ronacher | ||
Author-email: armin.ronacher@active-4.com | ||
Maintainer: Pallets | ||
Maintainer-email: contact@palletsprojects.com | ||
License: BSD-3-Clause | ||
Project-URL: Donate, https://palletsprojects.com/donate | ||
Project-URL: Documentation, https://flask.palletsprojects.com/ | ||
Project-URL: Changes, https://flask.palletsprojects.com/changes/ | ||
Project-URL: Source Code, https://github.com/pallets/flask/ | ||
Project-URL: Issue Tracker, https://github.com/pallets/flask/issues/ | ||
Project-URL: Twitter, https://twitter.com/PalletsTeam | ||
Project-URL: Chat, https://discord.gg/pallets | ||
Platform: UNKNOWN | ||
Classifier: Development Status :: 5 - Production/Stable | ||
Classifier: Environment :: Web Environment | ||
Classifier: Framework :: Flask | ||
Classifier: Intended Audience :: Developers | ||
Classifier: License :: OSI Approved :: BSD License | ||
Classifier: Operating System :: OS Independent | ||
Classifier: Programming Language :: Python | ||
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content | ||
Classifier: Topic :: Internet :: WWW/HTTP :: WSGI | ||
Classifier: Topic :: Internet :: WWW/HTTP :: WSGI :: Application | ||
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks | ||
Requires-Python: >=3.6 | ||
Description-Content-Type: text/x-rst | ||
Requires-Dist: Werkzeug (>=2.0) | ||
Requires-Dist: Jinja2 (>=3.0) | ||
Requires-Dist: itsdangerous (>=2.0) | ||
Requires-Dist: click (>=7.1.2) | ||
Provides-Extra: async | ||
Requires-Dist: asgiref (>=3.2) ; extra == 'async' | ||
Provides-Extra: dotenv | ||
Requires-Dist: python-dotenv ; extra == 'dotenv' | ||
|
||
Flask | ||
===== | ||
|
||
Flask is a lightweight `WSGI`_ web application framework. It is designed | ||
to make getting started quick and easy, with the ability to scale up to | ||
complex applications. It began as a simple wrapper around `Werkzeug`_ | ||
and `Jinja`_ and has become one of the most popular Python web | ||
application frameworks. | ||
|
||
Flask offers suggestions, but doesn't enforce any dependencies or | ||
project layout. It is up to the developer to choose the tools and | ||
libraries they want to use. There are many extensions provided by the | ||
community that make adding new functionality easy. | ||
|
||
.. _WSGI: https://wsgi.readthedocs.io/ | ||
.. _Werkzeug: https://werkzeug.palletsprojects.com/ | ||
.. _Jinja: https://jinja.palletsprojects.com/ | ||
|
||
|
||
Installing | ||
---------- | ||
|
||
Install and update using `pip`_: | ||
|
||
.. code-block:: text | ||
|
||
$ pip install -U Flask | ||
|
||
.. _pip: https://pip.pypa.io/en/stable/quickstart/ | ||
|
||
|
||
A Simple Example | ||
---------------- | ||
|
||
.. code-block:: python | ||
|
||
# save this as app.py | ||
from flask import Flask | ||
|
||
app = Flask(__name__) | ||
|
||
@app.route("/") | ||
def hello(): | ||
return "Hello, World!" | ||
|
||
.. code-block:: text | ||
|
||
$ flask run | ||
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit) | ||
|
||
|
||
Contributing | ||
------------ | ||
|
||
For guidance on setting up a development environment and how to make a | ||
contribution to Flask, see the `contributing guidelines`_. | ||
|
||
.. _contributing guidelines: https://github.com/pallets/flask/blob/main/CONTRIBUTING.rst | ||
|
||
|
||
Donate | ||
------ | ||
|
||
The Pallets organization develops and supports Flask and the libraries | ||
it uses. In order to grow the community of contributors and users, and | ||
allow the maintainers to devote more time to the projects, `please | ||
donate today`_. | ||
|
||
.. _please donate today: https://palletsprojects.com/donate | ||
|
||
|
||
Links | ||
----- | ||
|
||
- Documentation: https://flask.palletsprojects.com/ | ||
- Changes: https://flask.palletsprojects.com/changes/ | ||
- PyPI Releases: https://pypi.org/project/Flask/ | ||
- Source Code: https://github.com/pallets/flask/ | ||
- Issue Tracker: https://github.com/pallets/flask/issues/ | ||
- Website: https://palletsprojects.com/p/flask/ | ||
- Twitter: https://twitter.com/PalletsTeam | ||
- Chat: https://discord.gg/pallets | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
../../Scripts/flask.exe,sha256=BjoX6i13dpK-QjaWdZ-Wj-Ccy8D_0Y4oKCfUlKGutbg,108417 | ||
Flask-2.0.1.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4 | ||
Flask-2.0.1.dist-info/LICENSE.rst,sha256=SJqOEQhQntmKN7uYPhHg9-HTHwvY-Zp5yESOf_N9B-o,1475 | ||
Flask-2.0.1.dist-info/METADATA,sha256=50Jm1647RKw98p4RF64bCqRh0wajk-n3hQ7av2-pniA,3808 | ||
Flask-2.0.1.dist-info/RECORD,, | ||
Flask-2.0.1.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 | ||
Flask-2.0.1.dist-info/WHEEL,sha256=OqRkF0eY5GHssMorFjlbTIq072vpHpF60fIQA6lS9xA,92 | ||
Flask-2.0.1.dist-info/entry_points.txt,sha256=gBLA1aKg0OYR8AhbAfg8lnburHtKcgJLDU52BBctN0k,42 | ||
Flask-2.0.1.dist-info/top_level.txt,sha256=dvi65F6AeGWVU0TBpYiC04yM60-FX1gJFkK31IKQr5c,6 | ||
flask/__init__.py,sha256=w5v6GCNm8eLDMNWqs2ue7HLHo75aslAwz1h3k3YO9HY,2251 | ||
flask/__main__.py,sha256=bYt9eEaoRQWdejEHFD8REx9jxVEdZptECFsV7F49Ink,30 | ||
flask/__pycache__/__init__.cpython-312.pyc,, | ||
flask/__pycache__/__main__.cpython-312.pyc,, | ||
flask/__pycache__/app.cpython-312.pyc,, | ||
flask/__pycache__/blueprints.cpython-312.pyc,, | ||
flask/__pycache__/cli.cpython-312.pyc,, | ||
flask/__pycache__/config.cpython-312.pyc,, | ||
flask/__pycache__/ctx.cpython-312.pyc,, | ||
flask/__pycache__/debughelpers.cpython-312.pyc,, | ||
flask/__pycache__/globals.cpython-312.pyc,, | ||
flask/__pycache__/helpers.cpython-312.pyc,, | ||
flask/__pycache__/logging.cpython-312.pyc,, | ||
flask/__pycache__/scaffold.cpython-312.pyc,, | ||
flask/__pycache__/sessions.cpython-312.pyc,, | ||
flask/__pycache__/signals.cpython-312.pyc,, | ||
flask/__pycache__/templating.cpython-312.pyc,, | ||
flask/__pycache__/testing.cpython-312.pyc,, | ||
flask/__pycache__/typing.cpython-312.pyc,, | ||
flask/__pycache__/views.cpython-312.pyc,, | ||
flask/__pycache__/wrappers.cpython-312.pyc,, | ||
flask/app.py,sha256=q6lpiiWVxjljQRwjjneUBpfllXYPEq0CFAUpTQ5gIeA,82376 | ||
flask/blueprints.py,sha256=OjI-dkwx96ZNMUGDDFMKzgcpUJf240WRuMlHkmgI1Lc,23541 | ||
flask/cli.py,sha256=iN1pL2SevE5Nmvey-0WwnxG3nipZXIiE__Ed4lx3IuM,32036 | ||
flask/config.py,sha256=jj_7JGen_kYuTlKrx8ZPBsZddb8mihC0ODg4gcjXBX8,11068 | ||
flask/ctx.py,sha256=EM3W0v1ctuFQAGk_HWtQdoJEg_r2f5Le4xcmElxFwwk,17428 | ||
flask/debughelpers.py,sha256=wk5HtLwENsQ4e8tkxfBn6ykUeVRDuMbQCKgtEVe6jxk,6171 | ||
flask/globals.py,sha256=cWd-R2hUH3VqPhnmQNww892tQS6Yjqg_wg8UvW1M7NM,1723 | ||
flask/helpers.py,sha256=00WqA3wYeyjMrnAOPZTUyrnUf7H8ik3CVT0kqGl_qjk,30589 | ||
flask/json/__init__.py,sha256=d-db2DJMASq0G7CI-JvobehRE1asNRGX1rIDQ1GF9WM,11580 | ||
flask/json/__pycache__/__init__.cpython-312.pyc,, | ||
flask/json/__pycache__/tag.cpython-312.pyc,, | ||
flask/json/tag.py,sha256=fys3HBLssWHuMAIJuTcf2K0bCtosePBKXIWASZEEjnU,8857 | ||
flask/logging.py,sha256=1o_hirVGqdj7SBdETnhX7IAjklG89RXlrwz_2CjzQQE,2273 | ||
flask/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 | ||
flask/scaffold.py,sha256=EhQuiFrdcmJHxqPGQkEpqLsEUZ7ULZD0rtED2NrduvM,32400 | ||
flask/sessions.py,sha256=Kb7zY4qBIOU2cw1xM5mQ_KmgYUBDFbUYWjlkq0EFYis,15189 | ||
flask/signals.py,sha256=HQWgBEXlrLbHwLBoWqAStJKcN-rsB1_AMO8-VZ7LDOo,2126 | ||
flask/templating.py,sha256=l96VD39JQ0nue4Bcj7wZ4-FWWs-ppLxvgBCpwDQ4KAk,5626 | ||
flask/testing.py,sha256=OsHT-2B70abWH3ulY9IbhLchXIeyj3L-cfcDa88wv5E,10281 | ||
flask/typing.py,sha256=zVqhz53KklncAv-WxbpxGZfaRGOqeWAsLdP1tTMaCuE,1684 | ||
flask/views.py,sha256=F2PpWPloe4x0906IUjnPcsOqg5YvmQIfk07_lFeAD4s,5865 | ||
flask/wrappers.py,sha256=VndbHPRBSUUOejmd2Y3ydkoCVUtsS2OJIdJEVIkBVD8,5604 |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Wheel-Version: 1.0 | ||
Generator: bdist_wheel (0.36.2) | ||
Root-Is-Purelib: true | ||
Tag: py3-none-any | ||
|
3 changes: 3 additions & 0 deletions
3
.venv/Lib/site-packages/Flask-2.0.1.dist-info/entry_points.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[console_scripts] | ||
flask = flask.cli:main | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
flask |
File renamed without changes.
Oops, something went wrong.