-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
872 changed files
with
309,795 additions
and
76 deletions.
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 @@ | ||
__pycache__ |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
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 */ |
1 change: 1 addition & 0 deletions
1
lib/python3.8/site-packages/Flask_Bcrypt-1.0.1.dist-info/INSTALLER
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 @@ | ||
pip |
31 changes: 31 additions & 0 deletions
31
lib/python3.8/site-packages/Flask_Bcrypt-1.0.1.dist-info/LICENSE
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,31 @@ | ||
Copyright (c) 2011 by Max Countryman. | ||
|
||
Some rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are | ||
met: | ||
|
||
* Redistributions of source code must retain the above copyright | ||
notice, this list of conditions and the following disclaimer. | ||
|
||
* 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. | ||
|
||
* The names of the contributors may not 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 | ||
OWNER 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. |
74 changes: 74 additions & 0 deletions
74
lib/python3.8/site-packages/Flask_Bcrypt-1.0.1.dist-info/METADATA
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,74 @@ | ||
Metadata-Version: 2.1 | ||
Name: Flask-Bcrypt | ||
Version: 1.0.1 | ||
Summary: Brcrypt hashing for Flask. | ||
Home-page: https://github.com/maxcountryman/flask-bcrypt | ||
Author: Max Countryman | ||
Author-email: maxc@me.com | ||
License: BSD | ||
Platform: any | ||
Classifier: Environment :: Web Environment | ||
Classifier: Intended Audience :: Developers | ||
Classifier: License :: OSI Approved :: BSD License | ||
Classifier: Operating System :: OS Independent | ||
Classifier: Programming Language :: Python | ||
Classifier: Programming Language :: Python :: 3 | ||
Classifier: Programming Language :: Python :: 3.7 | ||
Classifier: Programming Language :: Python :: 3.8 | ||
Classifier: Programming Language :: Python :: 3.9 | ||
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content | ||
Classifier: Topic :: Software Development :: Libraries :: Python Modules | ||
Description-Content-Type: text/markdown | ||
Requires-Dist: Flask | ||
Requires-Dist: bcrypt (>=3.1.1) | ||
|
||
[![Tests](https://img.shields.io/github/workflow/status/maxcountryman/flask-bcrypt/Tests/master?label=tests)](https://github.com/maxcountryman/flask-bcrypt/actions) | ||
[![Version](https://img.shields.io/pypi/v/Flask-Bcrypt.svg)](https://pypi.python.org/pypi/Flask-Bcrypt) | ||
[![Supported Python Versions](https://img.shields.io/pypi/pyversions/Flask-Bcrypt.svg)](https://pypi.python.org/pypi/Flask-Bcrypt) | ||
|
||
# Flask-Bcrypt | ||
|
||
Flask-Bcrypt is a Flask extension that provides bcrypt hashing utilities for | ||
your application. | ||
|
||
Due to the recent increased prevalence of powerful hardware, such as modern | ||
GPUs, hashes have become increasingly easy to crack. A proactive solution to | ||
this is to use a hash that was designed to be "de-optimized". Bcrypt is such | ||
a hashing facility; unlike hashing algorithms such as MD5 and SHA1, which are | ||
optimized for speed, bcrypt is intentionally structured to be slow. | ||
|
||
For sensitive data that must be protected, such as passwords, bcrypt is an | ||
advisable choice. | ||
|
||
## Installation | ||
|
||
Install the extension with one of the following commands: | ||
|
||
$ easy_install flask-bcrypt | ||
|
||
or alternatively if you have pip installed: | ||
|
||
$ pip install flask-bcrypt | ||
|
||
## Usage | ||
|
||
To use the extension simply import the class wrapper and pass the Flask app | ||
object back to here. Do so like this: | ||
|
||
from flask import Flask | ||
from flask_bcrypt import Bcrypt | ||
|
||
app = Flask(__name__) | ||
bcrypt = Bcrypt(app) | ||
|
||
Two primary hashing methods are now exposed by way of the bcrypt object. Use | ||
them like so: | ||
|
||
pw_hash = bcrypt.generate_password_hash('hunter2') | ||
bcrypt.check_password_hash(pw_hash, 'hunter2') # returns True | ||
|
||
## Documentation | ||
|
||
The Sphinx-compiled documentation is available here: https://flask-bcrypt.readthedocs.io/ | ||
|
||
|
8 changes: 8 additions & 0 deletions
8
lib/python3.8/site-packages/Flask_Bcrypt-1.0.1.dist-info/RECORD
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,8 @@ | ||
Flask_Bcrypt-1.0.1.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4 | ||
Flask_Bcrypt-1.0.1.dist-info/LICENSE,sha256=RFRom0T_iGtIZZvvW5_AD14IAYQvR45h2hYe0Xp0Jak,1456 | ||
Flask_Bcrypt-1.0.1.dist-info/METADATA,sha256=wO9naenfHK7Lgz41drDpI6BlMg_CpzjwGWsAiko2wsk,2615 | ||
Flask_Bcrypt-1.0.1.dist-info/RECORD,, | ||
Flask_Bcrypt-1.0.1.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92 | ||
Flask_Bcrypt-1.0.1.dist-info/top_level.txt,sha256=HUgQw7e42Bb9jcMgo5popKpplnimwUQw3cyTi0K1N7o,13 | ||
__pycache__/flask_bcrypt.cpython-38.pyc,, | ||
flask_bcrypt.py,sha256=thnztmOYR9M6afp-bTRdSKsPef6R2cOFo4j_DD88-Ls,8856 |
5 changes: 5 additions & 0 deletions
5
lib/python3.8/site-packages/Flask_Bcrypt-1.0.1.dist-info/WHEEL
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.37.1) | ||
Root-Is-Purelib: true | ||
Tag: py3-none-any | ||
|
1 change: 1 addition & 0 deletions
1
lib/python3.8/site-packages/Flask_Bcrypt-1.0.1.dist-info/top_level.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 @@ | ||
flask_bcrypt |
1 change: 1 addition & 0 deletions
1
lib/python3.8/site-packages/Flask_Login-0.6.3.dist-info/INSTALLER
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 @@ | ||
pip |
22 changes: 22 additions & 0 deletions
22
lib/python3.8/site-packages/Flask_Login-0.6.3.dist-info/LICENSE
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,22 @@ | ||
Copyright (c) 2011 Matthew Frazier | ||
|
||
Permission is hereby granted, free of charge, to any person | ||
obtaining a copy of this software and associated documentation | ||
files (the "Software"), to deal in the Software without | ||
restriction, including without limitation the rights to use, | ||
copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the | ||
Software is furnished to do so, subject to the following | ||
conditions: | ||
|
||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | ||
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | ||
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | ||
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
OTHER DEALINGS IN THE SOFTWARE. |
Oops, something went wrong.