mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-11-06 02:32:50 +08:00
Merge Python 2 and 3 versions of werkzeug (#2185)
The Python 2 version was slightly outdated compared to the Python 3 version. The Python 2 version of Headers.__delitem__() had an optional argument _index_operation that also exists in the implementation. But considering this is internal use only, it was missing from the Python 3 version, and it created problems with derived classes, I decided not to add it to the merged stub. See also pallets/werkzeug#1051.
This commit is contained in:
1 parent
270fba2e4e
commit
fcc1b7def4
78 files changed
+37
-2342
No files matched your search
Vendored
-151
@@ -1,151 +0,0 @@
|
||||
from types import ModuleType
|
||||
|
||||
from typing import Any
|
||||
|
||||
from werkzeug import _internal
|
||||
from werkzeug import datastructures
|
||||
from werkzeug import debug
|
||||
from werkzeug import exceptions
|
||||
from werkzeug import formparser
|
||||
from werkzeug import http
|
||||
from werkzeug import local
|
||||
from werkzeug import security
|
||||
from werkzeug import serving
|
||||
from werkzeug import test
|
||||
from werkzeug import testapp
|
||||
from werkzeug import urls
|
||||
from werkzeug import useragents
|
||||
from werkzeug import utils
|
||||
from werkzeug import wrappers
|
||||
from werkzeug import wsgi
|
||||
|
||||
class module(ModuleType):
|
||||
def __getattr__(self, name): ...
|
||||
def __dir__(self): ...
|
||||
|
||||
|
||||
__version__ = ... # type: Any
|
||||
|
||||
run_simple = serving.run_simple
|
||||
test_app = testapp.test_app
|
||||
UserAgent = useragents.UserAgent
|
||||
_easteregg = _internal._easteregg
|
||||
DebuggedApplication = debug.DebuggedApplication
|
||||
MultiDict = datastructures.MultiDict
|
||||
CombinedMultiDict = datastructures.CombinedMultiDict
|
||||
Headers = datastructures.Headers
|
||||
EnvironHeaders = datastructures.EnvironHeaders
|
||||
ImmutableList = datastructures.ImmutableList
|
||||
ImmutableDict = datastructures.ImmutableDict
|
||||
ImmutableMultiDict = datastructures.ImmutableMultiDict
|
||||
TypeConversionDict = datastructures.TypeConversionDict
|
||||
ImmutableTypeConversionDict = datastructures.ImmutableTypeConversionDict
|
||||
Accept = datastructures.Accept
|
||||
MIMEAccept = datastructures.MIMEAccept
|
||||
CharsetAccept = datastructures.CharsetAccept
|
||||
LanguageAccept = datastructures.LanguageAccept
|
||||
RequestCacheControl = datastructures.RequestCacheControl
|
||||
ResponseCacheControl = datastructures.ResponseCacheControl
|
||||
ETags = datastructures.ETags
|
||||
HeaderSet = datastructures.HeaderSet
|
||||
WWWAuthenticate = datastructures.WWWAuthenticate
|
||||
Authorization = datastructures.Authorization
|
||||
FileMultiDict = datastructures.FileMultiDict
|
||||
CallbackDict = datastructures.CallbackDict
|
||||
FileStorage = datastructures.FileStorage
|
||||
OrderedMultiDict = datastructures.OrderedMultiDict
|
||||
ImmutableOrderedMultiDict = datastructures.ImmutableOrderedMultiDict
|
||||
escape = utils.escape
|
||||
environ_property = utils.environ_property
|
||||
append_slash_redirect = utils.append_slash_redirect
|
||||
redirect = utils.redirect
|
||||
cached_property = utils.cached_property
|
||||
import_string = utils.import_string
|
||||
dump_cookie = http.dump_cookie
|
||||
parse_cookie = http.parse_cookie
|
||||
unescape = utils.unescape
|
||||
format_string = utils.format_string
|
||||
find_modules = utils.find_modules
|
||||
header_property = utils.header_property
|
||||
html = utils.html
|
||||
xhtml = utils.xhtml
|
||||
HTMLBuilder = utils.HTMLBuilder
|
||||
validate_arguments = utils.validate_arguments
|
||||
ArgumentValidationError = utils.ArgumentValidationError
|
||||
bind_arguments = utils.bind_arguments
|
||||
secure_filename = utils.secure_filename
|
||||
BaseResponse = wrappers.BaseResponse
|
||||
BaseRequest = wrappers.BaseRequest
|
||||
Request = wrappers.Request
|
||||
Response = wrappers.Response
|
||||
AcceptMixin = wrappers.AcceptMixin
|
||||
ETagRequestMixin = wrappers.ETagRequestMixin
|
||||
ETagResponseMixin = wrappers.ETagResponseMixin
|
||||
ResponseStreamMixin = wrappers.ResponseStreamMixin
|
||||
CommonResponseDescriptorsMixin = wrappers.CommonResponseDescriptorsMixin
|
||||
UserAgentMixin = wrappers.UserAgentMixin
|
||||
AuthorizationMixin = wrappers.AuthorizationMixin
|
||||
WWWAuthenticateMixin = wrappers.WWWAuthenticateMixin
|
||||
CommonRequestDescriptorsMixin = wrappers.CommonRequestDescriptorsMixin
|
||||
Local = local.Local
|
||||
LocalManager = local.LocalManager
|
||||
LocalProxy = local.LocalProxy
|
||||
LocalStack = local.LocalStack
|
||||
release_local = local.release_local
|
||||
generate_password_hash = security.generate_password_hash
|
||||
check_password_hash = security.check_password_hash
|
||||
Client = test.Client
|
||||
EnvironBuilder = test.EnvironBuilder
|
||||
create_environ = test.create_environ
|
||||
run_wsgi_app = test.run_wsgi_app
|
||||
get_current_url = wsgi.get_current_url
|
||||
get_host = wsgi.get_host
|
||||
pop_path_info = wsgi.pop_path_info
|
||||
peek_path_info = wsgi.peek_path_info
|
||||
SharedDataMiddleware = wsgi.SharedDataMiddleware
|
||||
DispatcherMiddleware = wsgi.DispatcherMiddleware
|
||||
ClosingIterator = wsgi.ClosingIterator
|
||||
FileWrapper = wsgi.FileWrapper
|
||||
make_line_iter = wsgi.make_line_iter
|
||||
LimitedStream = wsgi.LimitedStream
|
||||
responder = wsgi.responder
|
||||
wrap_file = wsgi.wrap_file
|
||||
extract_path_info = wsgi.extract_path_info
|
||||
parse_etags = http.parse_etags
|
||||
parse_date = http.parse_date
|
||||
http_date = http.http_date
|
||||
cookie_date = http.cookie_date
|
||||
parse_cache_control_header = http.parse_cache_control_header
|
||||
is_resource_modified = http.is_resource_modified
|
||||
parse_accept_header = http.parse_accept_header
|
||||
parse_set_header = http.parse_set_header
|
||||
quote_etag = http.quote_etag
|
||||
unquote_etag = http.unquote_etag
|
||||
generate_etag = http.generate_etag
|
||||
dump_header = http.dump_header
|
||||
parse_list_header = http.parse_list_header
|
||||
parse_dict_header = http.parse_dict_header
|
||||
parse_authorization_header = http.parse_authorization_header
|
||||
parse_www_authenticate_header = http.parse_www_authenticate_header
|
||||
remove_entity_headers = http.remove_entity_headers
|
||||
is_entity_header = http.is_entity_header
|
||||
remove_hop_by_hop_headers = http.remove_hop_by_hop_headers
|
||||
parse_options_header = http.parse_options_header
|
||||
dump_options_header = http.dump_options_header
|
||||
is_hop_by_hop_header = http.is_hop_by_hop_header
|
||||
unquote_header_value = http.unquote_header_value
|
||||
quote_header_value = http.quote_header_value
|
||||
HTTP_STATUS_CODES = http.HTTP_STATUS_CODES
|
||||
url_decode = urls.url_decode
|
||||
url_encode = urls.url_encode
|
||||
url_quote = urls.url_quote
|
||||
url_quote_plus = urls.url_quote_plus
|
||||
url_unquote = urls.url_unquote
|
||||
url_unquote_plus = urls.url_unquote_plus
|
||||
url_fix = urls.url_fix
|
||||
Href = urls.Href
|
||||
iri_to_uri = urls.iri_to_uri
|
||||
uri_to_iri = urls.uri_to_iri
|
||||
parse_form_data = formparser.parse_form_data
|
||||
abort = exceptions.Aborter
|
||||
Aborter = exceptions.Aborter
|
||||
-73
@@ -1,73 +0,0 @@
|
||||
from typing import Any
|
||||
|
||||
class BaseCache:
|
||||
default_timeout = ... # type: Any
|
||||
def __init__(self, default_timeout=300): ...
|
||||
def get(self, key): ...
|
||||
def delete(self, key): ...
|
||||
def get_many(self, *keys): ...
|
||||
def get_dict(self, *keys): ...
|
||||
def set(self, key, value, timeout=None): ...
|
||||
def add(self, key, value, timeout=None): ...
|
||||
def set_many(self, mapping, timeout=None): ...
|
||||
def delete_many(self, *keys): ...
|
||||
def has(self, key): ...
|
||||
def clear(self): ...
|
||||
def inc(self, key, delta=1): ...
|
||||
def dec(self, key, delta=1): ...
|
||||
|
||||
class NullCache(BaseCache): ...
|
||||
|
||||
class SimpleCache(BaseCache):
|
||||
clear = ... # type: Any
|
||||
def __init__(self, threshold=500, default_timeout=300): ...
|
||||
def get(self, key): ...
|
||||
def set(self, key, value, timeout=None): ...
|
||||
def add(self, key, value, timeout=None): ...
|
||||
def delete(self, key): ...
|
||||
def has(self, key): ...
|
||||
|
||||
class MemcachedCache(BaseCache):
|
||||
key_prefix = ... # type: Any
|
||||
def __init__(self, servers=None, default_timeout=300, key_prefix=None): ...
|
||||
def get(self, key): ...
|
||||
def get_dict(self, *keys): ...
|
||||
def add(self, key, value, timeout=None): ...
|
||||
def set(self, key, value, timeout=None): ...
|
||||
def get_many(self, *keys): ...
|
||||
def set_many(self, mapping, timeout=None): ...
|
||||
def delete(self, key): ...
|
||||
def delete_many(self, *keys): ...
|
||||
def has(self, key): ...
|
||||
def clear(self): ...
|
||||
def inc(self, key, delta=1): ...
|
||||
def dec(self, key, delta=1): ...
|
||||
def import_preferred_memcache_lib(self, servers): ...
|
||||
|
||||
GAEMemcachedCache = ... # type: Any
|
||||
|
||||
class RedisCache(BaseCache):
|
||||
key_prefix = ... # type: Any
|
||||
def __init__(self, host='', port=6379, password=None, db=0, default_timeout=300, key_prefix=None, **kwargs): ...
|
||||
def dump_object(self, value): ...
|
||||
def load_object(self, value): ...
|
||||
def get(self, key): ...
|
||||
def get_many(self, *keys): ...
|
||||
def set(self, key, value, timeout=None): ...
|
||||
def add(self, key, value, timeout=None): ...
|
||||
def set_many(self, mapping, timeout=None): ...
|
||||
def delete(self, key): ...
|
||||
def delete_many(self, *keys): ...
|
||||
def has(self, key): ...
|
||||
def clear(self): ...
|
||||
def inc(self, key, delta=1): ...
|
||||
def dec(self, key, delta=1): ...
|
||||
|
||||
class FileSystemCache(BaseCache):
|
||||
def __init__(self, cache_dir, threshold=500, default_timeout=300, mode=384): ...
|
||||
def clear(self): ...
|
||||
def get(self, key): ...
|
||||
def add(self, key, value, timeout=None): ...
|
||||
def set(self, key, value, timeout=None): ...
|
||||
def delete(self, key): ...
|
||||
def has(self, key): ...
|
||||
-385
@@ -1,385 +0,0 @@
|
||||
from typing import Any
|
||||
from collections import Container, Iterable, Mapping, MutableSet
|
||||
|
||||
def is_immutable(self): ...
|
||||
def iter_multi_items(mapping): ...
|
||||
def native_itermethods(names): ...
|
||||
|
||||
class ImmutableListMixin:
|
||||
def __hash__(self): ...
|
||||
def __reduce_ex__(self, protocol): ...
|
||||
def __delitem__(self, key): ...
|
||||
def __delslice__(self, i, j): ...
|
||||
def __iadd__(self, other): ...
|
||||
__imul__ = ... # type: Any
|
||||
def __setitem__(self, key, value): ...
|
||||
def __setslice__(self, i, j, value): ...
|
||||
def append(self, item): ...
|
||||
remove = ... # type: Any
|
||||
def extend(self, iterable): ...
|
||||
def insert(self, pos, value): ...
|
||||
def pop(self, index=-1): ...
|
||||
def reverse(self): ...
|
||||
def sort(self, cmp=None, key=None, reverse=None): ...
|
||||
|
||||
class ImmutableList(ImmutableListMixin, list): ...
|
||||
|
||||
class ImmutableDictMixin:
|
||||
@classmethod
|
||||
def fromkeys(cls, *args, **kwargs): ...
|
||||
def __reduce_ex__(self, protocol): ...
|
||||
def __hash__(self): ...
|
||||
def setdefault(self, key, default=None): ...
|
||||
def update(self, *args, **kwargs): ...
|
||||
def pop(self, key, default=None): ...
|
||||
def popitem(self): ...
|
||||
def __setitem__(self, key, value): ...
|
||||
def __delitem__(self, key): ...
|
||||
def clear(self): ...
|
||||
|
||||
class ImmutableMultiDictMixin(ImmutableDictMixin):
|
||||
def __reduce_ex__(self, protocol): ...
|
||||
def add(self, key, value): ...
|
||||
def popitemlist(self): ...
|
||||
def poplist(self, key): ...
|
||||
def setlist(self, key, new_list): ...
|
||||
def setlistdefault(self, key, default_list=None): ...
|
||||
|
||||
class UpdateDictMixin:
|
||||
on_update = ... # type: Any
|
||||
def calls_update(name): ...
|
||||
def setdefault(self, key, default=None): ...
|
||||
def pop(self, key, default=...): ...
|
||||
__setitem__ = ... # type: Any
|
||||
__delitem__ = ... # type: Any
|
||||
clear = ... # type: Any
|
||||
popitem = ... # type: Any
|
||||
update = ... # type: Any
|
||||
|
||||
class TypeConversionDict(dict):
|
||||
def get(self, key, default=None, type=None): ...
|
||||
|
||||
class ImmutableTypeConversionDict(ImmutableDictMixin, TypeConversionDict):
|
||||
def copy(self): ...
|
||||
def __copy__(self): ...
|
||||
|
||||
class ViewItems:
|
||||
def __init__(self, multi_dict, method, repr_name, *a, **kw): ...
|
||||
def __iter__(self): ...
|
||||
|
||||
class MultiDict(TypeConversionDict):
|
||||
def __init__(self, mapping=None): ...
|
||||
def __getitem__(self, key): ...
|
||||
def __setitem__(self, key, value): ...
|
||||
def add(self, key, value): ...
|
||||
def getlist(self, key, type=None): ...
|
||||
def setlist(self, key, new_list): ...
|
||||
def setdefault(self, key, default=None): ...
|
||||
def setlistdefault(self, key, default_list=None): ...
|
||||
def items(self, multi=False): ...
|
||||
def lists(self): ...
|
||||
def keys(self): ...
|
||||
__iter__ = ... # type: Any
|
||||
def values(self): ...
|
||||
def listvalues(self): ...
|
||||
def copy(self): ...
|
||||
def deepcopy(self, memo=None): ...
|
||||
def to_dict(self, flat=True): ...
|
||||
def update(self, other_dict): ...
|
||||
def pop(self, key, default=...): ...
|
||||
def popitem(self): ...
|
||||
def poplist(self, key): ...
|
||||
def popitemlist(self): ...
|
||||
def __copy__(self): ...
|
||||
def __deepcopy__(self, memo): ...
|
||||
|
||||
class _omd_bucket:
|
||||
prev = ... # type: Any
|
||||
key = ... # type: Any
|
||||
value = ... # type: Any
|
||||
next = ... # type: Any
|
||||
def __init__(self, omd, key, value): ...
|
||||
def unlink(self, omd): ...
|
||||
|
||||
class OrderedMultiDict(MultiDict):
|
||||
def __init__(self, mapping=None): ...
|
||||
def __eq__(self, other): ...
|
||||
def __ne__(self, other): ...
|
||||
def __reduce_ex__(self, protocol): ...
|
||||
def __getitem__(self, key): ...
|
||||
def __setitem__(self, key, value): ...
|
||||
def __delitem__(self, key): ...
|
||||
def keys(self): ...
|
||||
__iter__ = ... # type: Any
|
||||
def values(self): ...
|
||||
def items(self, multi=False): ...
|
||||
def lists(self): ...
|
||||
def listvalues(self): ...
|
||||
def add(self, key, value): ...
|
||||
def getlist(self, key, type=None): ...
|
||||
def setlist(self, key, new_list): ...
|
||||
def setlistdefault(self, key, default_list=None): ...
|
||||
def update(self, mapping): ...
|
||||
def poplist(self, key): ...
|
||||
def pop(self, key, default=...): ...
|
||||
def popitem(self): ...
|
||||
def popitemlist(self): ...
|
||||
|
||||
class Headers(Mapping):
|
||||
def __init__(self, defaults=None): ...
|
||||
def __getitem__(self, key, _get_mode=False): ...
|
||||
def __eq__(self, other): ...
|
||||
def __ne__(self, other): ...
|
||||
def get(self, key, default=None, type=None, as_bytes=False): ...
|
||||
def getlist(self, key, type=None, as_bytes=False): ...
|
||||
def get_all(self, name): ...
|
||||
def items(self, lower=False): ...
|
||||
def keys(self, lower=False): ...
|
||||
def values(self): ...
|
||||
def extend(self, iterable): ...
|
||||
def __delitem__(self, key, _index_operation=True): ...
|
||||
def remove(self, key): ...
|
||||
def pop(self, **kwargs): ...
|
||||
def popitem(self): ...
|
||||
def __contains__(self, key): ...
|
||||
has_key = ... # type: Any
|
||||
def __iter__(self): ...
|
||||
def __len__(self): ...
|
||||
def add(self, _key, _value, **kw): ...
|
||||
def add_header(self, _key, _value, **_kw): ...
|
||||
def clear(self): ...
|
||||
def set(self, _key, _value, **kw): ...
|
||||
def setdefault(self, key, value): ...
|
||||
def __setitem__(self, key, value): ...
|
||||
def to_list(self, charset=''): ...
|
||||
def to_wsgi_list(self): ...
|
||||
def copy(self): ...
|
||||
def __copy__(self): ...
|
||||
|
||||
class ImmutableHeadersMixin:
|
||||
def __delitem__(self, key, _index_operation=True): ... # FIXME: This is invalid but works around https://github.com/pallets/werkzeug/issues/1051
|
||||
def __setitem__(self, key, value): ...
|
||||
set = ... # type: Any
|
||||
def add(self, *args, **kwargs): ...
|
||||
remove = ... # type: Any
|
||||
add_header = ... # type: Any
|
||||
def extend(self, iterable): ...
|
||||
def insert(self, pos, value): ...
|
||||
def pop(self, **kwargs): ...
|
||||
def popitem(self): ...
|
||||
def setdefault(self, key, default): ...
|
||||
|
||||
class EnvironHeaders(ImmutableHeadersMixin, Headers):
|
||||
environ = ... # type: Any
|
||||
def __init__(self, environ): ...
|
||||
def __eq__(self, other): ...
|
||||
def __getitem__(self, key, _get_mode=False): ...
|
||||
def __len__(self): ...
|
||||
def __iter__(self): ...
|
||||
def copy(self): ...
|
||||
|
||||
class CombinedMultiDict(ImmutableMultiDictMixin, MultiDict):
|
||||
def __reduce_ex__(self, protocol): ...
|
||||
dicts = ... # type: Any
|
||||
def __init__(self, dicts=None): ...
|
||||
@classmethod
|
||||
def fromkeys(cls): ...
|
||||
def __getitem__(self, key): ...
|
||||
def get(self, key, default=None, type=None): ...
|
||||
def getlist(self, key, type=None): ...
|
||||
def keys(self): ...
|
||||
__iter__ = ... # type: Any
|
||||
def items(self, multi=False): ...
|
||||
def values(self): ...
|
||||
def lists(self): ...
|
||||
def listvalues(self): ...
|
||||
def copy(self): ...
|
||||
def to_dict(self, flat=True): ...
|
||||
def __len__(self): ...
|
||||
def __contains__(self, key): ...
|
||||
has_key = ... # type: Any
|
||||
|
||||
class FileMultiDict(MultiDict):
|
||||
def add_file(self, name, file, filename=None, content_type=None): ...
|
||||
|
||||
class ImmutableDict(ImmutableDictMixin, dict):
|
||||
def copy(self): ...
|
||||
def __copy__(self): ...
|
||||
|
||||
class ImmutableMultiDict(ImmutableMultiDictMixin, MultiDict):
|
||||
def copy(self): ...
|
||||
def __copy__(self): ...
|
||||
|
||||
class ImmutableOrderedMultiDict(ImmutableMultiDictMixin, OrderedMultiDict):
|
||||
def copy(self): ...
|
||||
def __copy__(self): ...
|
||||
|
||||
class Accept(ImmutableList):
|
||||
provided = ... # type: Any
|
||||
def __init__(self, values=...): ...
|
||||
def __getitem__(self, key): ...
|
||||
def quality(self, key): ...
|
||||
def __contains__(self, value): ...
|
||||
def index(self, key): ...
|
||||
def find(self, key): ...
|
||||
def values(self): ...
|
||||
def to_header(self): ...
|
||||
def best_match(self, matches, default=None): ...
|
||||
@property
|
||||
def best(self): ...
|
||||
|
||||
class MIMEAccept(Accept):
|
||||
@property
|
||||
def accept_html(self): ...
|
||||
@property
|
||||
def accept_xhtml(self): ...
|
||||
@property
|
||||
def accept_json(self): ...
|
||||
|
||||
class LanguageAccept(Accept): ...
|
||||
class CharsetAccept(Accept): ...
|
||||
|
||||
def cache_property(key, empty, type): ...
|
||||
|
||||
class _CacheControl(UpdateDictMixin, dict):
|
||||
no_cache = ... # type: Any
|
||||
no_store = ... # type: Any
|
||||
max_age = ... # type: Any
|
||||
no_transform = ... # type: Any
|
||||
on_update = ... # type: Any
|
||||
provided = ... # type: Any
|
||||
def __init__(self, values=..., on_update=None): ...
|
||||
def to_header(self): ...
|
||||
|
||||
class RequestCacheControl(ImmutableDictMixin, _CacheControl):
|
||||
max_stale = ... # type: Any
|
||||
min_fresh = ... # type: Any
|
||||
no_transform = ... # type: Any
|
||||
only_if_cached = ... # type: Any
|
||||
|
||||
class ResponseCacheControl(_CacheControl):
|
||||
public = ... # type: Any
|
||||
private = ... # type: Any
|
||||
must_revalidate = ... # type: Any
|
||||
proxy_revalidate = ... # type: Any
|
||||
s_maxage = ... # type: Any
|
||||
|
||||
class CallbackDict(UpdateDictMixin, dict):
|
||||
on_update = ... # type: Any
|
||||
def __init__(self, initial=None, on_update=None): ...
|
||||
|
||||
class HeaderSet(MutableSet):
|
||||
on_update = ... # type: Any
|
||||
def __init__(self, headers=None, on_update=None): ...
|
||||
def add(self, header): ...
|
||||
def remove(self, header): ...
|
||||
def update(self, iterable): ...
|
||||
def discard(self, header): ...
|
||||
def find(self, header): ...
|
||||
def index(self, header): ...
|
||||
def clear(self): ...
|
||||
def as_set(self, preserve_casing=False): ...
|
||||
def to_header(self): ...
|
||||
def __getitem__(self, idx): ...
|
||||
def __delitem__(self, idx): ...
|
||||
def __setitem__(self, idx, value): ...
|
||||
def __contains__(self, header): ...
|
||||
def __len__(self): ...
|
||||
def __iter__(self): ...
|
||||
def __nonzero__(self): ...
|
||||
|
||||
class ETags(Container, Iterable):
|
||||
star_tag = ... # type: Any
|
||||
def __init__(self, strong_etags=None, weak_etags=None, star_tag=False): ...
|
||||
def as_set(self, include_weak=False): ...
|
||||
def is_weak(self, etag): ...
|
||||
def contains_weak(self, etag): ...
|
||||
def contains(self, etag): ...
|
||||
def contains_raw(self, etag): ...
|
||||
def to_header(self): ...
|
||||
def __call__(self, etag=None, data=None, include_weak=False): ...
|
||||
def __bool__(self): ...
|
||||
__nonzero__ = ... # type: Any
|
||||
def __iter__(self): ...
|
||||
def __contains__(self, etag): ...
|
||||
|
||||
class IfRange:
|
||||
etag = ... # type: Any
|
||||
date = ... # type: Any
|
||||
def __init__(self, etag=None, date=None): ...
|
||||
def to_header(self): ...
|
||||
|
||||
class Range:
|
||||
units = ... # type: Any
|
||||
ranges = ... # type: Any
|
||||
def __init__(self, units, ranges): ...
|
||||
def range_for_length(self, length): ...
|
||||
def make_content_range(self, length): ...
|
||||
def to_header(self): ...
|
||||
def to_content_range_header(self, length): ...
|
||||
|
||||
class ContentRange:
|
||||
on_update = ... # type: Any
|
||||
def __init__(self, units, start, stop, length=None, on_update=None): ...
|
||||
units = ... # type: Any
|
||||
start = ... # type: Any
|
||||
stop = ... # type: Any
|
||||
length = ... # type: Any
|
||||
def set(self, start, stop, length=None, units=''): ...
|
||||
def unset(self): ...
|
||||
def to_header(self): ...
|
||||
def __nonzero__(self): ...
|
||||
__bool__ = ... # type: Any
|
||||
|
||||
class Authorization(ImmutableDictMixin, dict):
|
||||
type = ... # type: Any
|
||||
def __init__(self, auth_type, data=None): ...
|
||||
username = ... # type: Any
|
||||
password = ... # type: Any
|
||||
realm = ... # type: Any
|
||||
nonce = ... # type: Any
|
||||
uri = ... # type: Any
|
||||
nc = ... # type: Any
|
||||
cnonce = ... # type: Any
|
||||
response = ... # type: Any
|
||||
opaque = ... # type: Any
|
||||
@property
|
||||
def qop(self): ...
|
||||
|
||||
class WWWAuthenticate(UpdateDictMixin, dict):
|
||||
on_update = ... # type: Any
|
||||
def __init__(self, auth_type=None, values=None, on_update=None): ...
|
||||
def set_basic(self, realm=''): ...
|
||||
def set_digest(self, realm, nonce, qop=..., opaque=None, algorithm=None, stale=False): ...
|
||||
def to_header(self): ...
|
||||
@staticmethod
|
||||
def auth_property(name, doc=None): ...
|
||||
type = ... # type: Any
|
||||
realm = ... # type: Any
|
||||
domain = ... # type: Any
|
||||
nonce = ... # type: Any
|
||||
opaque = ... # type: Any
|
||||
algorithm = ... # type: Any
|
||||
qop = ... # type: Any
|
||||
stale = ... # type: Any
|
||||
|
||||
class FileStorage:
|
||||
name = ... # type: Any
|
||||
stream = ... # type: Any
|
||||
filename = ... # type: Any
|
||||
headers = ... # type: Any
|
||||
def __init__(self, stream=None, filename=None, name=None, content_type=None, content_length=None, headers=None): ...
|
||||
@property
|
||||
def content_type(self): ...
|
||||
@property
|
||||
def content_length(self): ...
|
||||
@property
|
||||
def mimetype(self): ...
|
||||
@property
|
||||
def mimetype_params(self): ...
|
||||
def save(self, dst, buffer_size=16384): ...
|
||||
def close(self): ...
|
||||
def __nonzero__(self): ...
|
||||
__bool__ = ... # type: Any
|
||||
def __getattr__(self, name): ...
|
||||
def __iter__(self): ...
|
||||
-36
@@ -1,36 +0,0 @@
|
||||
from typing import Any
|
||||
from werkzeug.wrappers import BaseRequest as Request, BaseResponse as Response
|
||||
|
||||
PIN_TIME = ... # type: Any
|
||||
|
||||
class _ConsoleFrame:
|
||||
console = ... # type: Any
|
||||
id = ... # type: Any
|
||||
def __init__(self, namespace): ...
|
||||
|
||||
def get_pin_and_cookie_name(app): ...
|
||||
|
||||
class DebuggedApplication:
|
||||
app = ... # type: Any
|
||||
evalex = ... # type: Any
|
||||
frames = ... # type: Any
|
||||
tracebacks = ... # type: Any
|
||||
request_key = ... # type: Any
|
||||
console_path = ... # type: Any
|
||||
console_init_func = ... # type: Any
|
||||
show_hidden_frames = ... # type: Any
|
||||
secret = ... # type: Any
|
||||
pin_logging = ... # type: Any
|
||||
pin = ... # type: Any
|
||||
def __init__(self, app, evalex=False, request_key='', console_path='', console_init_func=None, show_hidden_frames=False, lodgeit_url=None, pin_security=True, pin_logging=True): ...
|
||||
@property
|
||||
def pin_cookie_name(self): ...
|
||||
def debug_application(self, environ, start_response): ...
|
||||
def execute_command(self, request, command, frame): ...
|
||||
def display_console(self, request): ...
|
||||
def paste_traceback(self, request, traceback): ...
|
||||
def get_resource(self, request, filename): ...
|
||||
def is_trusted(self, environ): ...
|
||||
def pin_auth(self, request): ...
|
||||
def log_pin_request(self): ...
|
||||
def __call__(self, environ, start_response): ...
|
||||
-136
@@ -1,136 +0,0 @@
|
||||
from typing import Any
|
||||
|
||||
class HTTPException(Exception):
|
||||
code = ... # type: Any
|
||||
description = ... # type: Any
|
||||
response = ... # type: Any
|
||||
def __init__(self, description=None, response=None): ...
|
||||
@classmethod
|
||||
def wrap(cls, exception, name=None): ...
|
||||
@property
|
||||
def name(self): ...
|
||||
def get_description(self, environ=None): ...
|
||||
def get_body(self, environ=None): ...
|
||||
def get_headers(self, environ=None): ...
|
||||
def get_response(self, environ=None): ...
|
||||
def __call__(self, environ, start_response): ...
|
||||
|
||||
class BadRequest(HTTPException):
|
||||
code = ... # type: Any
|
||||
description = ... # type: Any
|
||||
|
||||
class ClientDisconnected(BadRequest): ...
|
||||
class SecurityError(BadRequest): ...
|
||||
class BadHost(BadRequest): ...
|
||||
|
||||
class Unauthorized(HTTPException):
|
||||
code = ... # type: Any
|
||||
description = ... # type: Any
|
||||
|
||||
class Forbidden(HTTPException):
|
||||
code = ... # type: Any
|
||||
description = ... # type: Any
|
||||
|
||||
class NotFound(HTTPException):
|
||||
code = ... # type: Any
|
||||
description = ... # type: Any
|
||||
|
||||
class MethodNotAllowed(HTTPException):
|
||||
code = ... # type: Any
|
||||
description = ... # type: Any
|
||||
valid_methods = ... # type: Any
|
||||
def __init__(self, valid_methods=None, description=None): ...
|
||||
def get_headers(self, environ): ...
|
||||
|
||||
class NotAcceptable(HTTPException):
|
||||
code = ... # type: Any
|
||||
description = ... # type: Any
|
||||
|
||||
class RequestTimeout(HTTPException):
|
||||
code = ... # type: Any
|
||||
description = ... # type: Any
|
||||
|
||||
class Conflict(HTTPException):
|
||||
code = ... # type: Any
|
||||
description = ... # type: Any
|
||||
|
||||
class Gone(HTTPException):
|
||||
code = ... # type: Any
|
||||
description = ... # type: Any
|
||||
|
||||
class LengthRequired(HTTPException):
|
||||
code = ... # type: Any
|
||||
description = ... # type: Any
|
||||
|
||||
class PreconditionFailed(HTTPException):
|
||||
code = ... # type: Any
|
||||
description = ... # type: Any
|
||||
|
||||
class RequestEntityTooLarge(HTTPException):
|
||||
code = ... # type: Any
|
||||
description = ... # type: Any
|
||||
|
||||
class RequestURITooLarge(HTTPException):
|
||||
code = ... # type: Any
|
||||
description = ... # type: Any
|
||||
|
||||
class UnsupportedMediaType(HTTPException):
|
||||
code = ... # type: Any
|
||||
description = ... # type: Any
|
||||
|
||||
class RequestedRangeNotSatisfiable(HTTPException):
|
||||
code = ... # type: Any
|
||||
description = ... # type: Any
|
||||
|
||||
class ExpectationFailed(HTTPException):
|
||||
code = ... # type: Any
|
||||
description = ... # type: Any
|
||||
|
||||
class ImATeapot(HTTPException):
|
||||
code = ... # type: Any
|
||||
description = ... # type: Any
|
||||
|
||||
class UnprocessableEntity(HTTPException):
|
||||
code = ... # type: Any
|
||||
description = ... # type: Any
|
||||
|
||||
class PreconditionRequired(HTTPException):
|
||||
code = ... # type: Any
|
||||
description = ... # type: Any
|
||||
|
||||
class TooManyRequests(HTTPException):
|
||||
code = ... # type: Any
|
||||
description = ... # type: Any
|
||||
|
||||
class RequestHeaderFieldsTooLarge(HTTPException):
|
||||
code = ... # type: Any
|
||||
description = ... # type: Any
|
||||
|
||||
class InternalServerError(HTTPException):
|
||||
code = ... # type: Any
|
||||
description = ... # type: Any
|
||||
|
||||
class NotImplemented(HTTPException):
|
||||
code = ... # type: Any
|
||||
description = ... # type: Any
|
||||
|
||||
class BadGateway(HTTPException):
|
||||
code = ... # type: Any
|
||||
description = ... # type: Any
|
||||
|
||||
class ServiceUnavailable(HTTPException):
|
||||
code = ... # type: Any
|
||||
description = ... # type: Any
|
||||
|
||||
class GatewayTimeout(HTTPException):
|
||||
code = ... # type: Any
|
||||
description = ... # type: Any
|
||||
|
||||
class HTTPVersionNotSupported(HTTPException):
|
||||
code = ... # type: Any
|
||||
description = ... # type: Any
|
||||
|
||||
class Aborter:
|
||||
mapping = ... # type: Any
|
||||
def __init__(self, mapping=None, extra=None): ...
|
||||
def __call__(self, code, *args, **kwargs): ...
|
||||
-40
@@ -1,40 +0,0 @@
|
||||
from typing import Any
|
||||
|
||||
def default_stream_factory(total_content_length, filename, content_type, content_length=None): ...
|
||||
def parse_form_data(environ, stream_factory=None, charset='', errors='', max_form_memory_size=None, max_content_length=None, cls=None, silent=True): ...
|
||||
def exhaust_stream(f): ...
|
||||
|
||||
class FormDataParser:
|
||||
stream_factory = ... # type: Any
|
||||
charset = ... # type: Any
|
||||
errors = ... # type: Any
|
||||
max_form_memory_size = ... # type: Any
|
||||
max_content_length = ... # type: Any
|
||||
cls = ... # type: Any
|
||||
silent = ... # type: Any
|
||||
def __init__(self, stream_factory=None, charset='', errors='', max_form_memory_size=None, max_content_length=None, cls=None, silent=True): ...
|
||||
def get_parse_func(self, mimetype, options): ...
|
||||
def parse_from_environ(self, environ): ...
|
||||
def parse(self, stream, mimetype, content_length, options=None): ...
|
||||
parse_functions = ... # type: Any
|
||||
|
||||
def is_valid_multipart_boundary(boundary): ...
|
||||
def parse_multipart_headers(iterable): ...
|
||||
|
||||
class MultiPartParser:
|
||||
stream_factory = ... # type: Any
|
||||
charset = ... # type: Any
|
||||
errors = ... # type: Any
|
||||
max_form_memory_size = ... # type: Any
|
||||
cls = ... # type: Any
|
||||
buffer_size = ... # type: Any
|
||||
def __init__(self, stream_factory=None, charset='', errors='', max_form_memory_size=None, cls=None, buffer_size=...): ...
|
||||
def fail(self, message): ...
|
||||
def get_part_encoding(self, headers): ...
|
||||
def get_part_charset(self, headers): ...
|
||||
def start_file_streaming(self, filename, headers, total_content_length): ...
|
||||
def in_memory_threshold_reached(self, bytes): ...
|
||||
def validate_boundary(self, boundary): ...
|
||||
def parse_lines(self, file, boundary, content_length): ...
|
||||
def parse_parts(self, file, boundary, content_length): ...
|
||||
def parse(self, file, boundary, content_length): ...
|
||||
Vendored
-177
@@ -1,177 +0,0 @@
|
||||
from typing import Any
|
||||
from werkzeug.exceptions import HTTPException
|
||||
|
||||
def parse_converter_args(argstr): ...
|
||||
def parse_rule(rule): ...
|
||||
|
||||
class RoutingException(Exception): ...
|
||||
|
||||
class RequestRedirect(HTTPException, RoutingException):
|
||||
code = ... # type: Any
|
||||
new_url = ... # type: Any
|
||||
def __init__(self, new_url): ...
|
||||
def get_response(self, environ): ...
|
||||
|
||||
class RequestSlash(RoutingException): ...
|
||||
|
||||
class RequestAliasRedirect(RoutingException):
|
||||
matched_values = ... # type: Any
|
||||
def __init__(self, matched_values): ...
|
||||
|
||||
class BuildError(RoutingException, LookupError):
|
||||
endpoint = ... # type: Any
|
||||
values = ... # type: Any
|
||||
method = ... # type: Any
|
||||
suggested = ... # type: Any
|
||||
def __init__(self, endpoint, values, method, adapter=None): ...
|
||||
def closest_rule(self, adapter): ...
|
||||
|
||||
class ValidationError(ValueError): ...
|
||||
|
||||
class RuleFactory:
|
||||
def get_rules(self, map): ...
|
||||
|
||||
class Subdomain(RuleFactory):
|
||||
subdomain = ... # type: Any
|
||||
rules = ... # type: Any
|
||||
def __init__(self, subdomain, rules): ...
|
||||
def get_rules(self, map): ...
|
||||
|
||||
class Submount(RuleFactory):
|
||||
path = ... # type: Any
|
||||
rules = ... # type: Any
|
||||
def __init__(self, path, rules): ...
|
||||
def get_rules(self, map): ...
|
||||
|
||||
class EndpointPrefix(RuleFactory):
|
||||
prefix = ... # type: Any
|
||||
rules = ... # type: Any
|
||||
def __init__(self, prefix, rules): ...
|
||||
def get_rules(self, map): ...
|
||||
|
||||
class RuleTemplate:
|
||||
rules = ... # type: Any
|
||||
def __init__(self, rules): ...
|
||||
def __call__(self, *args, **kwargs): ...
|
||||
|
||||
class RuleTemplateFactory(RuleFactory):
|
||||
rules = ... # type: Any
|
||||
context = ... # type: Any
|
||||
def __init__(self, rules, context): ...
|
||||
def get_rules(self, map): ...
|
||||
|
||||
class Rule(RuleFactory):
|
||||
rule = ... # type: Any
|
||||
is_leaf = ... # type: Any
|
||||
map = ... # type: Any
|
||||
strict_slashes = ... # type: Any
|
||||
subdomain = ... # type: Any
|
||||
host = ... # type: Any
|
||||
defaults = ... # type: Any
|
||||
build_only = ... # type: Any
|
||||
alias = ... # type: Any
|
||||
methods = ... # type: Any
|
||||
endpoint = ... # type: Any
|
||||
redirect_to = ... # type: Any
|
||||
arguments = ... # type: Any
|
||||
def __init__(self, string, defaults=None, subdomain=None, methods=None, build_only=False, endpoint=None, strict_slashes=None, redirect_to=None, alias=False, host=None): ...
|
||||
def empty(self): ...
|
||||
def get_empty_kwargs(self): ...
|
||||
def get_rules(self, map): ...
|
||||
def refresh(self): ...
|
||||
def bind(self, map, rebind=False): ...
|
||||
def get_converter(self, variable_name, converter_name, args, kwargs): ...
|
||||
def compile(self): ...
|
||||
def match(self, path): ...
|
||||
def build(self, values, append_unknown=True): ...
|
||||
def provides_defaults_for(self, rule): ...
|
||||
def suitable_for(self, values, method=None): ...
|
||||
def match_compare_key(self): ...
|
||||
def build_compare_key(self): ...
|
||||
def __eq__(self, other): ...
|
||||
def __ne__(self, other): ...
|
||||
|
||||
class BaseConverter:
|
||||
regex = ... # type: Any
|
||||
weight = ... # type: Any
|
||||
map = ... # type: Any
|
||||
def __init__(self, map): ...
|
||||
def to_python(self, value): ...
|
||||
def to_url(self, value): ...
|
||||
|
||||
class UnicodeConverter(BaseConverter):
|
||||
regex = ... # type: Any
|
||||
def __init__(self, map, minlength=1, maxlength=None, length=None): ...
|
||||
|
||||
class AnyConverter(BaseConverter):
|
||||
regex = ... # type: Any
|
||||
def __init__(self, map, *items): ...
|
||||
|
||||
class PathConverter(BaseConverter):
|
||||
regex = ... # type: Any
|
||||
weight = ... # type: Any
|
||||
|
||||
class NumberConverter(BaseConverter):
|
||||
weight = ... # type: Any
|
||||
fixed_digits = ... # type: Any
|
||||
min = ... # type: Any
|
||||
max = ... # type: Any
|
||||
def __init__(self, map, fixed_digits=0, min=None, max=None): ...
|
||||
def to_python(self, value): ...
|
||||
def to_url(self, value): ...
|
||||
|
||||
class IntegerConverter(NumberConverter):
|
||||
regex = ... # type: Any
|
||||
num_convert = ... # type: Any
|
||||
|
||||
class FloatConverter(NumberConverter):
|
||||
regex = ... # type: Any
|
||||
num_convert = ... # type: Any
|
||||
def __init__(self, map, min=None, max=None): ...
|
||||
|
||||
class UUIDConverter(BaseConverter):
|
||||
regex = ... # type: Any
|
||||
def to_python(self, value): ...
|
||||
def to_url(self, value): ...
|
||||
|
||||
DEFAULT_CONVERTERS = ... # type: Any
|
||||
|
||||
class Map:
|
||||
default_converters = ... # type: Any
|
||||
default_subdomain = ... # type: Any
|
||||
charset = ... # type: Any
|
||||
encoding_errors = ... # type: Any
|
||||
strict_slashes = ... # type: Any
|
||||
redirect_defaults = ... # type: Any
|
||||
host_matching = ... # type: Any
|
||||
converters = ... # type: Any
|
||||
sort_parameters = ... # type: Any
|
||||
sort_key = ... # type: Any
|
||||
def __init__(self, rules=None, default_subdomain='', charset='', strict_slashes=True, redirect_defaults=True, converters=None, sort_parameters=False, sort_key=None, encoding_errors='', host_matching=False): ...
|
||||
def is_endpoint_expecting(self, endpoint, *arguments): ...
|
||||
def iter_rules(self, endpoint=None): ...
|
||||
def add(self, rulefactory): ...
|
||||
def bind(self, server_name, script_name=None, subdomain=None, url_scheme='', default_method='', path_info=None, query_args=None): ...
|
||||
def bind_to_environ(self, environ, server_name=None, subdomain=None): ...
|
||||
def update(self): ...
|
||||
|
||||
class MapAdapter:
|
||||
map = ... # type: Any
|
||||
server_name = ... # type: Any
|
||||
script_name = ... # type: Any
|
||||
subdomain = ... # type: Any
|
||||
url_scheme = ... # type: Any
|
||||
path_info = ... # type: Any
|
||||
default_method = ... # type: Any
|
||||
query_args = ... # type: Any
|
||||
def __init__(self, map, server_name, script_name, subdomain, url_scheme, path_info, default_method, query_args=None): ...
|
||||
def dispatch(self, view_func, path_info=None, method=None, catch_http_exceptions=False): ...
|
||||
def match(self, path_info=None, method=None, return_rule=False, query_args=None): ...
|
||||
def test(self, path_info=None, method=None): ...
|
||||
def allowed_methods(self, path_info=None): ...
|
||||
def get_host(self, domain_part): ...
|
||||
def get_default_redirect(self, rule, method, values, query_args): ...
|
||||
def encode_query_args(self, query_args): ...
|
||||
def make_redirect_url(self, path_info, query_args=None, domain_part=None): ...
|
||||
def make_alias_redirect_url(self, path, endpoint, values, method, query_args): ...
|
||||
def build(self, endpoint, values=None, method=None, force_external=False, append_unknown=True): ...
|
||||
Vendored
-79
@@ -1,79 +0,0 @@
|
||||
from typing import Any
|
||||
from ._compat import PY2 as PY2
|
||||
from SocketServer import ThreadingMixIn, ForkingMixIn
|
||||
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
|
||||
|
||||
class _SslDummy:
|
||||
def __getattr__(self, name): ...
|
||||
|
||||
ssl = ... # type: Any
|
||||
LISTEN_QUEUE = ... # type: Any
|
||||
can_open_by_fd = ... # type: Any
|
||||
|
||||
class WSGIRequestHandler(BaseHTTPRequestHandler):
|
||||
@property
|
||||
def server_version(self): ...
|
||||
def make_environ(self): ...
|
||||
environ = ... # type: Any
|
||||
close_connection = ... # type: Any
|
||||
def run_wsgi(self): ...
|
||||
def handle(self): ...
|
||||
def initiate_shutdown(self): ...
|
||||
def connection_dropped(self, error, environ=None): ...
|
||||
raw_requestline = ... # type: Any
|
||||
def handle_one_request(self): ...
|
||||
def send_response(self, code, message=None): ...
|
||||
def version_string(self): ...
|
||||
def address_string(self): ...
|
||||
def log_request(self, code='', size=''): ...
|
||||
def log_error(self, *args): ...
|
||||
def log_message(self, format, *args): ...
|
||||
def log(self, type, message, *args): ...
|
||||
|
||||
BaseRequestHandler = ... # type: Any
|
||||
|
||||
def generate_adhoc_ssl_pair(cn=None): ...
|
||||
def make_ssl_devcert(base_path, host=None, cn=None): ...
|
||||
def generate_adhoc_ssl_context(): ...
|
||||
def load_ssl_context(cert_file, pkey_file=None, protocol=None): ...
|
||||
|
||||
class _SSLContext:
|
||||
def __init__(self, protocol): ...
|
||||
def load_cert_chain(self, certfile, keyfile=None, password=None): ...
|
||||
def wrap_socket(self, sock, **kwargs): ...
|
||||
|
||||
def is_ssl_error(error=None): ...
|
||||
def select_ip_version(host, port): ...
|
||||
|
||||
class BaseWSGIServer(HTTPServer):
|
||||
multithread = ... # type: Any
|
||||
multiprocess = ... # type: Any
|
||||
request_queue_size = ... # type: Any
|
||||
address_family = ... # type: Any
|
||||
app = ... # type: Any
|
||||
passthrough_errors = ... # type: Any
|
||||
shutdown_signal = ... # type: Any
|
||||
host = ... # type: Any
|
||||
port = ... # type: Any
|
||||
socket = ... # type: Any
|
||||
server_address = ... # type: Any
|
||||
ssl_context = ... # type: Any
|
||||
def __init__(self, host, port, app, handler=None, passthrough_errors=False, ssl_context=None, fd=None): ...
|
||||
def log(self, type, message, *args): ...
|
||||
def serve_forever(self): ...
|
||||
def handle_error(self, request, client_address): ...
|
||||
def get_request(self): ...
|
||||
|
||||
class ThreadedWSGIServer(ThreadingMixIn, BaseWSGIServer):
|
||||
multithread = ... # type: Any
|
||||
|
||||
class ForkingWSGIServer(ForkingMixIn, BaseWSGIServer):
|
||||
multiprocess = ... # type: Any
|
||||
max_children = ... # type: Any
|
||||
def __init__(self, host, port, app, processes=40, handler=None, passthrough_errors=False, ssl_context=None, fd=None): ...
|
||||
|
||||
def make_server(host=None, port=None, app=None, threaded=False, processes=1, request_handler=None, passthrough_errors=False, ssl_context=None, fd=None): ...
|
||||
def is_running_from_reloader(): ...
|
||||
def run_simple(hostname, port, application, use_reloader=False, use_debugger=False, use_evalex=True, extra_files=None, reloader_interval=1, reloader_type='', threaded=False, processes=1, request_handler=None, static_files=None, passthrough_errors=False, ssl_context=None): ...
|
||||
def run_with_reloader(*args, **kwargs): ...
|
||||
def main(): ...
|
||||
Vendored
-81
@@ -1,81 +0,0 @@
|
||||
from typing import Any
|
||||
from urllib2 import Request as U2Request
|
||||
from cookielib import CookieJar
|
||||
|
||||
def stream_encode_multipart(values, use_tempfile=True, threshold=..., boundary=None, charset=''): ...
|
||||
def encode_multipart(values, boundary=None, charset=''): ...
|
||||
def File(fd, filename=None, mimetype=None): ...
|
||||
|
||||
class _TestCookieHeaders:
|
||||
headers = ... # type: Any
|
||||
def __init__(self, headers): ...
|
||||
def getheaders(self, name): ...
|
||||
def get_all(self, name, default=None): ...
|
||||
|
||||
class _TestCookieResponse:
|
||||
headers = ... # type: Any
|
||||
def __init__(self, headers): ...
|
||||
def info(self): ...
|
||||
|
||||
class _TestCookieJar(CookieJar):
|
||||
def inject_wsgi(self, environ): ...
|
||||
def extract_wsgi(self, environ, headers): ...
|
||||
|
||||
class EnvironBuilder:
|
||||
server_protocol = ... # type: Any
|
||||
wsgi_version = ... # type: Any
|
||||
request_class = ... # type: Any
|
||||
charset = ... # type: Any
|
||||
path = ... # type: Any
|
||||
base_url = ... # type: Any
|
||||
query_string = ... # type: Any
|
||||
args = ... # type: Any
|
||||
method = ... # type: Any
|
||||
headers = ... # type: Any
|
||||
content_type = ... # type: Any
|
||||
errors_stream = ... # type: Any
|
||||
multithread = ... # type: Any
|
||||
multiprocess = ... # type: Any
|
||||
run_once = ... # type: Any
|
||||
environ_base = ... # type: Any
|
||||
environ_overrides = ... # type: Any
|
||||
input_stream = ... # type: Any
|
||||
content_length = ... # type: Any
|
||||
closed = ... # type: Any
|
||||
def __init__(self, path='', base_url=None, query_string=None, method='', input_stream=None, content_type=None, content_length=None, errors_stream=None, multithread=False, multiprocess=False, run_once=False, headers=None, data=None, environ_base=None, environ_overrides=None, charset=''): ...
|
||||
def form_property(name, storage, doc): ...
|
||||
form = ... # type: Any
|
||||
files = ... # type: Any
|
||||
@property
|
||||
def server_name(self): ...
|
||||
@property
|
||||
def server_port(self): ...
|
||||
def __del__(self): ...
|
||||
def close(self): ...
|
||||
def get_environ(self): ...
|
||||
def get_request(self, cls=None): ...
|
||||
|
||||
class ClientRedirectError(Exception): ...
|
||||
|
||||
class Client:
|
||||
application = ... # type: Any
|
||||
response_wrapper = ... # type: Any
|
||||
cookie_jar = ... # type: Any
|
||||
allow_subdomain_redirects = ... # type: Any
|
||||
def __init__(self, application, response_wrapper=None, use_cookies=True, allow_subdomain_redirects=False): ...
|
||||
def set_cookie(self, server_name, key, value='', max_age=None, expires=None, path='', domain=None, secure=None, httponly=False, charset=''): ...
|
||||
def delete_cookie(self, server_name, key, path='', domain=None): ...
|
||||
def run_wsgi_app(self, environ, buffered=False): ...
|
||||
def resolve_redirect(self, response, new_location, environ, buffered=False): ...
|
||||
def open(self, *args, **kwargs): ...
|
||||
def get(self, *args, **kw): ...
|
||||
def patch(self, *args, **kw): ...
|
||||
def post(self, *args, **kw): ...
|
||||
def head(self, *args, **kw): ...
|
||||
def put(self, *args, **kw): ...
|
||||
def delete(self, *args, **kw): ...
|
||||
def options(self, *args, **kw): ...
|
||||
def trace(self, *args, **kw): ...
|
||||
|
||||
def create_environ(*args, **kwargs): ...
|
||||
def run_wsgi_app(app, environ, buffered=False): ...
|
||||
Vendored
-65
@@ -1,65 +0,0 @@
|
||||
from collections import namedtuple
|
||||
from typing import Any
|
||||
|
||||
_URLTuple = namedtuple(
|
||||
'_URLTuple',
|
||||
['scheme', 'netloc', 'path', 'query', 'fragment']
|
||||
)
|
||||
|
||||
class BaseURL(_URLTuple):
|
||||
def replace(self, **kwargs): ...
|
||||
@property
|
||||
def host(self): ...
|
||||
@property
|
||||
def ascii_host(self): ...
|
||||
@property
|
||||
def port(self): ...
|
||||
@property
|
||||
def auth(self): ...
|
||||
@property
|
||||
def username(self): ...
|
||||
@property
|
||||
def raw_username(self): ...
|
||||
@property
|
||||
def password(self): ...
|
||||
@property
|
||||
def raw_password(self): ...
|
||||
def decode_query(self, *args, **kwargs): ...
|
||||
def join(self, *args, **kwargs): ...
|
||||
def to_url(self): ...
|
||||
def decode_netloc(self): ...
|
||||
def to_uri_tuple(self): ...
|
||||
def to_iri_tuple(self): ...
|
||||
def get_file_location(self, pathformat=None): ...
|
||||
|
||||
class URL(BaseURL):
|
||||
def encode_netloc(self): ...
|
||||
def encode(self, charset='', errors=''): ...
|
||||
|
||||
class BytesURL(BaseURL):
|
||||
def encode_netloc(self): ...
|
||||
def decode(self, charset='', errors=''): ...
|
||||
|
||||
def url_parse(url, scheme=None, allow_fragments=True): ...
|
||||
def url_quote(string, charset='', errors='', safe='', unsafe=''): ...
|
||||
def url_quote_plus(string, charset='', errors='', safe=''): ...
|
||||
def url_unparse(components): ...
|
||||
def url_unquote(string, charset='', errors='', unsafe=''): ...
|
||||
def url_unquote_plus(s, charset='', errors=''): ...
|
||||
def url_fix(s, charset=''): ...
|
||||
def uri_to_iri(uri, charset='', errors=''): ...
|
||||
def iri_to_uri(iri, charset='', errors='', safe_conversion=False): ...
|
||||
def url_decode(s, charset='', decode_keys=False, include_empty=True, errors='', separator='', cls=None): ...
|
||||
def url_decode_stream(stream, charset='', decode_keys=False, include_empty=True, errors='', separator='', cls=None, limit=None, return_iterator=False): ...
|
||||
def url_encode(obj, charset='', encode_keys=False, sort=False, key=None, separator=''): ...
|
||||
def url_encode_stream(obj, stream=None, charset='', encode_keys=False, sort=False, key=None, separator=''): ...
|
||||
def url_join(base, url, allow_fragments=True): ...
|
||||
|
||||
class Href:
|
||||
base = ... # type: Any
|
||||
charset = ... # type: Any
|
||||
sort = ... # type: Any
|
||||
key = ... # type: Any
|
||||
def __init__(self, base='', charset='', sort=False, key=None): ...
|
||||
def __getattr__(self, name): ...
|
||||
def __call__(self, *path, **query): ...
|
||||
Vendored
-223
@@ -1,223 +0,0 @@
|
||||
from datetime import datetime
|
||||
from typing import (
|
||||
Any, Callable, Iterable, Iterator, Mapping, MutableMapping, Optional, Sequence, Text,
|
||||
Tuple, Type, TypeVar, Union,
|
||||
)
|
||||
|
||||
from wsgiref.types import WSGIEnvironment, InputStream
|
||||
|
||||
from .datastructures import (
|
||||
CombinedMultiDict, EnvironHeaders, Headers, ImmutableMultiDict,
|
||||
MultiDict, TypeConversionDict, HeaderSet,
|
||||
)
|
||||
|
||||
class BaseRequest:
|
||||
charset = ... # type: str
|
||||
encoding_errors = ... # type: str
|
||||
max_content_length = ... # type: int
|
||||
max_form_memory_size = ... # type: int
|
||||
parameter_storage_class = ... # type: Type
|
||||
list_storage_class = ... # type: Type
|
||||
dict_storage_class = ... # type: Type
|
||||
form_data_parser_class = ... # type: Type
|
||||
trusted_hosts = ... # type: Optional[Sequence[Text]]
|
||||
disable_data_descriptor = ... # type: Any
|
||||
environ: WSGIEnvironment = ...
|
||||
shallow = ... # type: Any
|
||||
def __init__(self, environ: WSGIEnvironment, populate_request: bool = ..., shallow: bool = ...) -> None: ...
|
||||
@property
|
||||
def url_charset(self) -> str: ...
|
||||
@classmethod
|
||||
def from_values(cls, *args, **kwargs) -> 'BaseRequest': ...
|
||||
@classmethod
|
||||
def application(cls, f): ...
|
||||
@property
|
||||
def want_form_data_parsed(self): ...
|
||||
def make_form_data_parser(self): ...
|
||||
def close(self) -> None: ...
|
||||
def __enter__(self): ...
|
||||
def __exit__(self, exc_type, exc_value, tb): ...
|
||||
@property
|
||||
def stream(self) -> InputStream: ...
|
||||
input_stream: InputStream
|
||||
args = ... # type: ImmutableMultiDict
|
||||
@property
|
||||
def data(self) -> bytes: ...
|
||||
def get_data(self, cache: bool = ..., as_text: bool = ..., parse_form_data: bool = ...) -> bytes: ...
|
||||
form = ... # type: ImmutableMultiDict
|
||||
values = ... # type: CombinedMultiDict
|
||||
files = ... # type: MultiDict
|
||||
cookies = ... # type: TypeConversionDict
|
||||
headers = ... # type: EnvironHeaders
|
||||
path = ... # type: Text
|
||||
full_path = ... # type: Text
|
||||
script_root = ... # type: Text
|
||||
url = ... # type: Text
|
||||
base_url = ... # type: Text
|
||||
url_root = ... # type: Text
|
||||
host_url = ... # type: Text
|
||||
host = ... # type: Text
|
||||
query_string = ... # type: bytes
|
||||
method = ... # type: Text
|
||||
def access_route(self): ...
|
||||
@property
|
||||
def remote_addr(self) -> str: ...
|
||||
remote_user = ... # type: Text
|
||||
scheme = ... # type: str
|
||||
is_xhr = ... # type: bool
|
||||
is_secure = ... # type: bool
|
||||
is_multithread = ... # type: bool
|
||||
is_multiprocess = ... # type: bool
|
||||
is_run_once = ... # type: bool
|
||||
|
||||
_OnCloseT = TypeVar('_OnCloseT', bound=Callable[[], Any])
|
||||
_SelfT = TypeVar('_SelfT', bound=BaseResponse)
|
||||
|
||||
class BaseResponse:
|
||||
charset = ... # type: str
|
||||
default_status = ... # type: int
|
||||
default_mimetype = ... # type: str
|
||||
implicit_sequence_conversion = ... # type: bool
|
||||
autocorrect_location_header = ... # type: bool
|
||||
automatically_set_content_length = ... # type: bool
|
||||
headers = ... # type: Headers
|
||||
status_code = ... # type: int
|
||||
status = ... # type: str
|
||||
direct_passthrough = ... # type: bool
|
||||
response = ... # type: Iterable[bytes]
|
||||
def __init__(self, response: Optional[Union[Iterable[bytes], bytes]] = ...,
|
||||
status: Optional[Union[Text, int]] = ...,
|
||||
headers: Optional[Union[Headers,
|
||||
Mapping[Text, Text],
|
||||
Sequence[Tuple[Text, Text]]]] = ...,
|
||||
mimetype: Optional[Text] = ...,
|
||||
content_type: Optional[Text] = ...,
|
||||
direct_passthrough: bool = ...) -> None: ...
|
||||
def call_on_close(self, func: _OnCloseT) -> _OnCloseT: ...
|
||||
@classmethod
|
||||
def force_type(cls: Type[_SelfT], response: object, environ: Optional[WSGIEnvironment] = ...) -> _SelfT: ...
|
||||
@classmethod
|
||||
def from_app(cls: Type[_SelfT], app: Any, environ: WSGIEnvironment, buffered: bool = ...) -> _SelfT: ...
|
||||
def get_data(self, as_text: bool = ...) -> Any: ... # returns bytes if as_text is False (the default), else Text
|
||||
def set_data(self, value: Union[bytes, Text]) -> None: ...
|
||||
data = ... # type: Any
|
||||
def calculate_content_length(self) -> Optional[int]: ...
|
||||
def make_sequence(self) -> None: ...
|
||||
def iter_encoded(self) -> Iterator[bytes]: ...
|
||||
def set_cookie(self, key, value='', max_age=None, expires=None, path='', domain=None, secure=False, httponly=False): ...
|
||||
def delete_cookie(self, key, path='', domain=None): ...
|
||||
@property
|
||||
def is_streamed(self) -> bool: ...
|
||||
@property
|
||||
def is_sequence(self) -> bool: ...
|
||||
def close(self) -> None: ...
|
||||
def __enter__(self): ...
|
||||
def __exit__(self, exc_type, exc_value, tb): ...
|
||||
def freeze(self): ...
|
||||
def get_wsgi_headers(self, environ): ...
|
||||
def get_app_iter(self, environ): ...
|
||||
def get_wsgi_response(self, environ): ...
|
||||
def __call__(self, environ, start_response): ...
|
||||
|
||||
class AcceptMixin:
|
||||
def accept_mimetypes(self): ...
|
||||
def accept_charsets(self): ...
|
||||
def accept_encodings(self): ...
|
||||
def accept_languages(self): ...
|
||||
|
||||
class ETagRequestMixin:
|
||||
def cache_control(self): ...
|
||||
def if_match(self): ...
|
||||
def if_none_match(self): ...
|
||||
def if_modified_since(self): ...
|
||||
def if_unmodified_since(self): ...
|
||||
def if_range(self): ...
|
||||
def range(self): ...
|
||||
|
||||
class UserAgentMixin:
|
||||
def user_agent(self): ...
|
||||
|
||||
class AuthorizationMixin:
|
||||
def authorization(self): ...
|
||||
|
||||
class StreamOnlyMixin:
|
||||
disable_data_descriptor = ... # type: Any
|
||||
want_form_data_parsed = ... # type: Any
|
||||
|
||||
class ETagResponseMixin:
|
||||
@property
|
||||
def cache_control(self): ...
|
||||
status_code = ... # type: Any
|
||||
def make_conditional(self, request_or_environ, accept_ranges=False, complete_length=None): ...
|
||||
def add_etag(self, overwrite=False, weak=False): ...
|
||||
def set_etag(self, etag, weak=False): ...
|
||||
def get_etag(self): ...
|
||||
def freeze(self, no_etag=False): ...
|
||||
accept_ranges = ... # type: Any
|
||||
content_range = ... # type: Any
|
||||
|
||||
class ResponseStream:
|
||||
mode = ... # type: Any
|
||||
response = ... # type: Any
|
||||
closed = ... # type: Any
|
||||
def __init__(self, response): ...
|
||||
def write(self, value): ...
|
||||
def writelines(self, seq): ...
|
||||
def close(self): ...
|
||||
def flush(self): ...
|
||||
def isatty(self): ...
|
||||
@property
|
||||
def encoding(self): ...
|
||||
|
||||
class ResponseStreamMixin:
|
||||
@property
|
||||
def stream(self) -> ResponseStream: ...
|
||||
|
||||
class CommonRequestDescriptorsMixin:
|
||||
@property
|
||||
def content_type(self) -> Optional[str]: ...
|
||||
@property
|
||||
def content_length(self) -> Optional[int]: ...
|
||||
@property
|
||||
def content_encoding(self) -> Optional[str]: ...
|
||||
@property
|
||||
def content_md5(self) -> Optional[str]: ...
|
||||
@property
|
||||
def referrer(self) -> Optional[str]: ...
|
||||
@property
|
||||
def date(self) -> Optional[datetime]: ...
|
||||
@property
|
||||
def max_forwards(self) -> Optional[int]: ...
|
||||
@property
|
||||
def mimetype(self) -> str: ...
|
||||
@property
|
||||
def mimetype_params(self) -> Mapping[str, str]: ...
|
||||
@property
|
||||
def pragma(self) -> HeaderSet: ...
|
||||
|
||||
class CommonResponseDescriptorsMixin:
|
||||
mimetype: Optional[str] = ...
|
||||
@property
|
||||
def mimetype_params(self) -> MutableMapping[str, str]: ...
|
||||
location: Optional[str] = ...
|
||||
age: Any = ... # get: Optional[datetime.timedelta]
|
||||
content_type: Optional[str] = ...
|
||||
content_length: Optional[int] = ...
|
||||
content_location: Optional[str] = ...
|
||||
content_encoding: Optional[str] = ...
|
||||
content_md5: Optional[str] = ...
|
||||
date: Any = ... # get: Optional[datetime.datetime]
|
||||
expires: Any = ... # get: Optional[datetime.datetime]
|
||||
last_modified: Any = ... # get: Optional[datetime.datetime]
|
||||
retry_after: Any = ... # get: Optional[datetime.datetime]
|
||||
vary: Optional[str] = ...
|
||||
content_language: Optional[str] = ...
|
||||
allow: Optional[str] = ...
|
||||
|
||||
class WWWAuthenticateMixin:
|
||||
@property
|
||||
def www_authenticate(self): ...
|
||||
|
||||
class Request(BaseRequest, AcceptMixin, ETagRequestMixin, UserAgentMixin, AuthorizationMixin, CommonRequestDescriptorsMixin): ...
|
||||
class PlainRequest(StreamOnlyMixin, Request): ...
|
||||
class Response(ETagResponseMixin, BaseResponse, ResponseStreamMixin, CommonResponseDescriptorsMixin, WWWAuthenticateMixin): ... # FIXME: This is invalid but works around https://github.com/pallets/werkzeug/issues/1052
|
||||
File renamed without changes.
+6
-1
@@ -1,5 +1,10 @@
|
||||
import sys
|
||||
from typing import Any
|
||||
import StringIO as BytesIO
|
||||
|
||||
if sys.version_info < (3,):
|
||||
import StringIO as BytesIO
|
||||
else:
|
||||
from io import StringIO as BytesIO
|
||||
|
||||
PY2 = ... # type: Any
|
||||
WIN = ... # type: Any
|
||||
File renamed without changes.
File renamed without changes.
Vendored
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Vendored
File renamed without changes.
Vendored
File renamed without changes.
File renamed without changes.
Vendored
File renamed without changes.
File renamed without changes.
Vendored
File renamed without changes.
Vendored
File renamed without changes.
Vendored
File renamed without changes.
+2
-2
@@ -137,7 +137,7 @@ class Headers(Mapping):
|
||||
def keys(self, lower=False): ...
|
||||
def values(self): ...
|
||||
def extend(self, iterable): ...
|
||||
def __delitem__(self, key): ...
|
||||
def __delitem__(self, key: Any) -> None: ...
|
||||
def remove(self, key): ...
|
||||
def pop(self, **kwargs): ...
|
||||
def popitem(self): ...
|
||||
@@ -157,7 +157,7 @@ class Headers(Mapping):
|
||||
def __copy__(self): ...
|
||||
|
||||
class ImmutableHeadersMixin:
|
||||
def __delitem__(self, key): ...
|
||||
def __delitem__(self, key: str) -> None: ...
|
||||
def __setitem__(self, key, value): ...
|
||||
set = ... # type: Any
|
||||
def add(self, *args, **kwargs): ...
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,5 +1,4 @@
|
||||
from typing import Any
|
||||
from urllib2 import parse_http_list as _parse_list_header
|
||||
|
||||
HTTP_STATUS_CODES = ... # type: Any
|
||||
|
||||
@@ -27,7 +26,7 @@ def generate_etag(data): ...
|
||||
def parse_date(value): ...
|
||||
def cookie_date(expires=None): ...
|
||||
def http_date(timestamp=None): ...
|
||||
def is_resource_modified(environ, etag=None, data=None, last_modified=None): ...
|
||||
def is_resource_modified(environ, etag=None, data=None, last_modified=None, ignore_if_range=True): ...
|
||||
def remove_entity_headers(headers, allowed=...): ...
|
||||
def remove_hop_by_hop_headers(headers): ...
|
||||
def is_entity_header(header): ...
|
||||
File renamed without changes.
File renamed without changes.
+6
-5
@@ -1,4 +1,4 @@
|
||||
from typing import Any
|
||||
from typing import Any, Optional
|
||||
from werkzeug.exceptions import HTTPException
|
||||
|
||||
def parse_converter_args(argstr): ...
|
||||
@@ -22,10 +22,11 @@ class BuildError(RoutingException, LookupError):
|
||||
endpoint = ... # type: Any
|
||||
values = ... # type: Any
|
||||
method = ... # type: Any
|
||||
adapter = ... # type: Any
|
||||
def __init__(self, endpoint, values, method, adapter=None): ...
|
||||
def suggested(self): ...
|
||||
def closest_rule(self, adapter): ...
|
||||
adapter: Optional[MapAdapter]
|
||||
def __init__(self, endpoint, values, method, adapter: Optional[MapAdapter] = ...) -> None: ...
|
||||
@property
|
||||
def suggested(self) -> Optional[Rule]: ...
|
||||
def closest_rule(self, adapter: Optional[MapAdapter]) -> Optional[Rule]: ...
|
||||
|
||||
class ValidationError(ValueError): ...
|
||||
|
||||
File renamed without changes.
File renamed without changes.
+8
-2
@@ -1,6 +1,12 @@
|
||||
import sys
|
||||
from typing import Any
|
||||
from socketserver import ThreadingMixIn, ForkingMixIn
|
||||
from http.server import HTTPServer, BaseHTTPRequestHandler
|
||||
|
||||
if sys.version_info < (3,):
|
||||
from SocketServer import ThreadingMixIn, ForkingMixIn
|
||||
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
|
||||
else:
|
||||
from socketserver import ThreadingMixIn, ForkingMixIn
|
||||
from http.server import HTTPServer, BaseHTTPRequestHandler
|
||||
|
||||
class _SslDummy:
|
||||
def __getattr__(self, name): ...
|
||||
@@ -1,6 +1,12 @@
|
||||
import sys
|
||||
from typing import Any
|
||||
from urllib.request import Request as U2Request
|
||||
from http.cookiejar import CookieJar
|
||||
|
||||
if sys.version_info < (3,):
|
||||
from urllib2 import Request as U2Request
|
||||
from cookielib import CookieJar
|
||||
else:
|
||||
from urllib.request import Request as U2Request
|
||||
from http.cookiejar import CookieJar
|
||||
|
||||
def stream_encode_multipart(values, use_tempfile=True, threshold=..., boundary=None, charset=''): ...
|
||||
def encode_multipart(values, boundary=None, charset=''): ...
|
||||
File renamed without changes.
@@ -53,8 +53,8 @@ def uri_to_iri(uri, charset='', errors=''): ...
|
||||
def iri_to_uri(iri, charset='', errors='', safe_conversion=False): ...
|
||||
def url_decode(s, charset='', decode_keys=False, include_empty=True, errors='', separator='', cls=None): ...
|
||||
def url_decode_stream(stream, charset='', decode_keys=False, include_empty=True, errors='', separator='', cls=None, limit=None, return_iterator=False): ...
|
||||
def url_encode(obj, charset='', encode_keys=False, sort=False, key=None, separator=b''): ...
|
||||
def url_encode_stream(obj, stream=None, charset='', encode_keys=False, sort=False, key=None, separator=b''): ...
|
||||
def url_encode(obj, charset='', encode_keys=False, sort=False, key=None, separator: bytes = ...): ...
|
||||
def url_encode_stream(obj, stream=None, charset='', encode_keys=False, sort=False, key=None, separator: bytes = ...): ...
|
||||
def url_join(base, url, allow_fragments=True): ...
|
||||
|
||||
class Href:
|
||||
File renamed without changes.
File renamed without changes.
+4
-2
@@ -112,7 +112,9 @@ class BaseResponse:
|
||||
def close(self) -> None: ...
|
||||
def __enter__(self): ...
|
||||
def __exit__(self, exc_type, exc_value, tb): ...
|
||||
def freeze(self, **kwargs): ...
|
||||
# The no_etag argument if fictional, but required for compatibility with
|
||||
# ETagResponseMixin
|
||||
def freeze(self, no_etag: bool = ...) -> None: ...
|
||||
def get_wsgi_headers(self, environ): ...
|
||||
def get_app_iter(self, environ): ...
|
||||
def get_wsgi_response(self, environ): ...
|
||||
@@ -151,7 +153,7 @@ class ETagResponseMixin:
|
||||
def add_etag(self, overwrite=False, weak=False): ...
|
||||
def set_etag(self, etag, weak=False): ...
|
||||
def get_etag(self): ...
|
||||
def freeze(self, *, no_etag=False): ...
|
||||
def freeze(self, no_etag: bool = ...) -> None: ...
|
||||
accept_ranges = ... # type: Any
|
||||
content_range = ... # type: Any
|
||||
|
||||
File renamed without changes.
Vendored
-43
@@ -1,43 +0,0 @@
|
||||
from typing import Any
|
||||
from io import StringIO as BytesIO
|
||||
|
||||
PY2 = ... # type: Any
|
||||
WIN = ... # type: Any
|
||||
unichr = ... # type: Any
|
||||
text_type = ... # type: Any
|
||||
string_types = ... # type: Any
|
||||
integer_types = ... # type: Any
|
||||
iterkeys = ... # type: Any
|
||||
itervalues = ... # type: Any
|
||||
iteritems = ... # type: Any
|
||||
iterlists = ... # type: Any
|
||||
iterlistvalues = ... # type: Any
|
||||
int_to_byte = ... # type: Any
|
||||
iter_bytes = ... # type: Any
|
||||
|
||||
def fix_tuple_repr(obj): ...
|
||||
def implements_iterator(cls): ...
|
||||
def implements_to_string(cls): ...
|
||||
def native_string_result(func): ...
|
||||
def implements_bool(cls): ...
|
||||
|
||||
range_type = ... # type: Any
|
||||
NativeStringIO = ... # type: Any
|
||||
|
||||
def make_literal_wrapper(reference): ...
|
||||
def normalize_string_tuple(tup): ...
|
||||
def try_coerce_native(s): ...
|
||||
|
||||
wsgi_get_bytes = ... # type: Any
|
||||
|
||||
def wsgi_decoding_dance(s, charset='', errors=''): ...
|
||||
def wsgi_encoding_dance(s, charset='', errors=''): ...
|
||||
def to_bytes(x, charset=..., errors=''): ...
|
||||
def to_native(x, charset=..., errors=''): ...
|
||||
def reraise(tp, value, tb=None): ...
|
||||
|
||||
imap = ... # type: Any
|
||||
izip = ... # type: Any
|
||||
ifilter = ... # type: Any
|
||||
|
||||
def to_unicode(x, charset=..., errors='', allow_none_charset=False): ...
|
||||
Vendored
-18
@@ -1,18 +0,0 @@
|
||||
from typing import Any
|
||||
|
||||
class _Missing:
|
||||
def __reduce__(self): ...
|
||||
|
||||
class _DictAccessorProperty:
|
||||
read_only = ... # type: Any
|
||||
name = ... # type: Any
|
||||
default = ... # type: Any
|
||||
load_func = ... # type: Any
|
||||
dump_func = ... # type: Any
|
||||
__doc__ = ... # type: Any
|
||||
def __init__(self, name, default=None, load_func=None, dump_func=None, read_only=None, doc=None): ...
|
||||
def __get__(self, obj, type=None): ...
|
||||
def __set__(self, obj, value): ...
|
||||
def __delete__(self, obj): ...
|
||||
|
||||
def _easteregg(app=None): ...
|
||||
Vendored
-29
@@ -1,29 +0,0 @@
|
||||
from typing import Any
|
||||
|
||||
class ReloaderLoop:
|
||||
name = ... # type: Any
|
||||
extra_files = ... # type: Any
|
||||
interval = ... # type: Any
|
||||
def __init__(self, extra_files=None, interval=1): ...
|
||||
def run(self): ...
|
||||
def restart_with_reloader(self): ...
|
||||
def trigger_reload(self, filename): ...
|
||||
def log_reload(self, filename): ...
|
||||
|
||||
class StatReloaderLoop(ReloaderLoop):
|
||||
name = ... # type: Any
|
||||
def run(self): ...
|
||||
|
||||
class WatchdogReloaderLoop(ReloaderLoop):
|
||||
observable_paths = ... # type: Any
|
||||
name = ... # type: Any
|
||||
observer_class = ... # type: Any
|
||||
event_handler = ... # type: Any
|
||||
should_reload = ... # type: Any
|
||||
def __init__(self, *args, **kwargs): ...
|
||||
def trigger_reload(self, filename): ...
|
||||
def run(self): ...
|
||||
|
||||
reloader_loops = ... # type: Any
|
||||
|
||||
def run_with_reloader(main_func, extra_files=None, interval=1, reloader_type=''): ...
|
||||
Whitespace-only changes.
-50
@@ -1,50 +0,0 @@
|
||||
from typing import Any
|
||||
|
||||
XHTML_NAMESPACE = ... # type: Any
|
||||
|
||||
def format_iso8601(obj): ...
|
||||
|
||||
class AtomFeed:
|
||||
default_generator = ... # type: Any
|
||||
title = ... # type: Any
|
||||
title_type = ... # type: Any
|
||||
url = ... # type: Any
|
||||
feed_url = ... # type: Any
|
||||
id = ... # type: Any
|
||||
updated = ... # type: Any
|
||||
author = ... # type: Any
|
||||
icon = ... # type: Any
|
||||
logo = ... # type: Any
|
||||
rights = ... # type: Any
|
||||
rights_type = ... # type: Any
|
||||
subtitle = ... # type: Any
|
||||
subtitle_type = ... # type: Any
|
||||
generator = ... # type: Any
|
||||
links = ... # type: Any
|
||||
entries = ... # type: Any
|
||||
def __init__(self, title=None, entries=None, **kwargs): ...
|
||||
def add(self, *args, **kwargs): ...
|
||||
def generate(self): ...
|
||||
def to_string(self): ...
|
||||
def get_response(self): ...
|
||||
def __call__(self, environ, start_response): ...
|
||||
|
||||
class FeedEntry:
|
||||
title = ... # type: Any
|
||||
title_type = ... # type: Any
|
||||
content = ... # type: Any
|
||||
content_type = ... # type: Any
|
||||
url = ... # type: Any
|
||||
id = ... # type: Any
|
||||
updated = ... # type: Any
|
||||
summary = ... # type: Any
|
||||
summary_type = ... # type: Any
|
||||
author = ... # type: Any
|
||||
published = ... # type: Any
|
||||
rights = ... # type: Any
|
||||
links = ... # type: Any
|
||||
categories = ... # type: Any
|
||||
xml_base = ... # type: Any
|
||||
def __init__(self, title=None, content=None, feed_url=None, **kwargs): ...
|
||||
def generate(self): ...
|
||||
def to_string(self): ...
|
||||
-37
@@ -1,37 +0,0 @@
|
||||
from typing import Any
|
||||
|
||||
class CGIRootFix:
|
||||
app = ... # type: Any
|
||||
app_root = ... # type: Any
|
||||
def __init__(self, app, app_root=''): ...
|
||||
def __call__(self, environ, start_response): ...
|
||||
|
||||
LighttpdCGIRootFix = ... # type: Any
|
||||
|
||||
class PathInfoFromRequestUriFix:
|
||||
app = ... # type: Any
|
||||
def __init__(self, app): ...
|
||||
def __call__(self, environ, start_response): ...
|
||||
|
||||
class ProxyFix:
|
||||
app = ... # type: Any
|
||||
num_proxies = ... # type: Any
|
||||
def __init__(self, app, num_proxies=1): ...
|
||||
def get_remote_addr(self, forwarded_for): ...
|
||||
def __call__(self, environ, start_response): ...
|
||||
|
||||
class HeaderRewriterFix:
|
||||
app = ... # type: Any
|
||||
remove_headers = ... # type: Any
|
||||
add_headers = ... # type: Any
|
||||
def __init__(self, app, remove_headers=None, add_headers=None): ...
|
||||
def __call__(self, environ, start_response): ...
|
||||
|
||||
class InternetExplorerFix:
|
||||
app = ... # type: Any
|
||||
fix_vary = ... # type: Any
|
||||
fix_attach = ... # type: Any
|
||||
def __init__(self, app, fix_vary=True, fix_attach=True): ...
|
||||
def fix_headers(self, environ, headers, status=None): ...
|
||||
def run_fixed(self, environ, start_response): ...
|
||||
def __call__(self, environ, start_response): ...
|
||||
-38
@@ -1,38 +0,0 @@
|
||||
from typing import Any
|
||||
|
||||
greenlet = ... # type: Any
|
||||
|
||||
class IterIO:
|
||||
def __new__(cls, obj, sentinel=''): ...
|
||||
def __iter__(self): ...
|
||||
def tell(self): ...
|
||||
def isatty(self): ...
|
||||
def seek(self, pos, mode=0): ...
|
||||
def truncate(self, size=None): ...
|
||||
def write(self, s): ...
|
||||
def writelines(self, list): ...
|
||||
def read(self, n=-1): ...
|
||||
def readlines(self, sizehint=0): ...
|
||||
def readline(self, length=None): ...
|
||||
def flush(self): ...
|
||||
def __next__(self): ...
|
||||
|
||||
class IterI(IterIO):
|
||||
def __new__(cls, func, sentinel=''): ...
|
||||
closed = ... # type: Any
|
||||
def close(self): ...
|
||||
def write(self, s): ...
|
||||
def writelines(self, list): ...
|
||||
def flush(self): ...
|
||||
|
||||
class IterO(IterIO):
|
||||
sentinel = ... # type: Any
|
||||
closed = ... # type: Any
|
||||
pos = ... # type: Any
|
||||
def __new__(cls, gen, sentinel=''): ...
|
||||
def __iter__(self): ...
|
||||
def close(self): ...
|
||||
def seek(self, pos, mode=0): ...
|
||||
def read(self, n=-1): ...
|
||||
def readline(self, length=None): ...
|
||||
def readlines(self, sizehint=0): ...
|
||||
-10
@@ -1,10 +0,0 @@
|
||||
from typing import Any
|
||||
|
||||
def dumps(*args): ...
|
||||
def render_template(name_parts, rules, converters): ...
|
||||
def generate_map(map, name=''): ...
|
||||
def generate_adapter(adapter, name='', map_name=''): ...
|
||||
def js_to_url_function(converter): ...
|
||||
def NumberConverter_js_to_url(conv): ...
|
||||
|
||||
js_to_url_functions = ... # type: Any
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
from typing import Any
|
||||
|
||||
class StreamLimitMiddleware:
|
||||
app = ... # type: Any
|
||||
maximum_size = ... # type: Any
|
||||
def __init__(self, app, maximum_size=...): ...
|
||||
def __call__(self, environ, start_response): ...
|
||||
-43
@@ -1,43 +0,0 @@
|
||||
from typing import Any
|
||||
|
||||
class WSGIWarning(Warning): ...
|
||||
class HTTPWarning(Warning): ...
|
||||
|
||||
def check_string(context, obj, stacklevel=3): ...
|
||||
|
||||
class InputStream:
|
||||
def __init__(self, stream): ...
|
||||
def read(self, *args): ...
|
||||
def readline(self, *args): ...
|
||||
def __iter__(self): ...
|
||||
def close(self): ...
|
||||
|
||||
class ErrorStream:
|
||||
def __init__(self, stream): ...
|
||||
def write(self, s): ...
|
||||
def flush(self): ...
|
||||
def writelines(self, seq): ...
|
||||
def close(self): ...
|
||||
|
||||
class GuardedWrite:
|
||||
def __init__(self, write, chunks): ...
|
||||
def __call__(self, s): ...
|
||||
|
||||
class GuardedIterator:
|
||||
closed = ... # type: Any
|
||||
headers_set = ... # type: Any
|
||||
chunks = ... # type: Any
|
||||
def __init__(self, iterator, headers_set, chunks): ...
|
||||
def __iter__(self): ...
|
||||
def next(self): ...
|
||||
def close(self): ...
|
||||
def __del__(self): ...
|
||||
|
||||
class LintMiddleware:
|
||||
app = ... # type: Any
|
||||
def __init__(self, app): ...
|
||||
def check_environ(self, environ): ...
|
||||
def check_start_response(self, status, headers, exc_info): ...
|
||||
def check_headers(self, headers): ...
|
||||
def check_iterator(self, app_iter): ...
|
||||
def __call__(self, *args, **kwargs): ...
|
||||
-14
@@ -1,14 +0,0 @@
|
||||
from typing import Any
|
||||
|
||||
available = ... # type: Any
|
||||
|
||||
class MergeStream:
|
||||
streams = ... # type: Any
|
||||
def __init__(self, *streams): ...
|
||||
def write(self, data): ...
|
||||
|
||||
class ProfilerMiddleware:
|
||||
def __init__(self, app, stream=None, sort_by=..., restrictions=..., profile_dir=None): ...
|
||||
def __call__(self, environ, start_response): ...
|
||||
|
||||
def make_action(app_factory, hostname='', port=5000, threaded=False, processes=1, stream=None, sort_by=..., restrictions=...): ...
|
||||
-26
@@ -1,26 +0,0 @@
|
||||
from typing import Any
|
||||
from hmac import new as hmac
|
||||
from hashlib import sha1 as _default_hash
|
||||
from werkzeug.contrib.sessions import ModificationTrackingDict
|
||||
|
||||
class UnquoteError(Exception): ...
|
||||
|
||||
class SecureCookie(ModificationTrackingDict):
|
||||
hash_method = ... # type: Any
|
||||
serialization_method = ... # type: Any
|
||||
quote_base64 = ... # type: Any
|
||||
secret_key = ... # type: Any
|
||||
new = ... # type: Any
|
||||
def __init__(self, data=None, secret_key=None, new=True): ...
|
||||
@property
|
||||
def should_save(self): ...
|
||||
@classmethod
|
||||
def quote(cls, value): ...
|
||||
@classmethod
|
||||
def unquote(cls, value): ...
|
||||
def serialize(self, expires=None): ...
|
||||
@classmethod
|
||||
def unserialize(cls, string, secret_key): ...
|
||||
@classmethod
|
||||
def load_cookie(cls, request, key='', secret_key=None): ...
|
||||
def save_cookie(self, response, key='', expires=None, session_expires=None, max_age=None, path='', domain=None, secure=None, httponly=False, force=False): ...
|
||||
-54
@@ -1,54 +0,0 @@
|
||||
from typing import Any
|
||||
from werkzeug.datastructures import CallbackDict
|
||||
|
||||
def generate_key(salt=None): ...
|
||||
|
||||
class ModificationTrackingDict(CallbackDict):
|
||||
modified = ... # type: Any
|
||||
def __init__(self, *args, **kwargs): ...
|
||||
def copy(self): ...
|
||||
def __copy__(self): ...
|
||||
|
||||
class Session(ModificationTrackingDict):
|
||||
sid = ... # type: Any
|
||||
new = ... # type: Any
|
||||
def __init__(self, data, sid, new=False): ...
|
||||
@property
|
||||
def should_save(self): ...
|
||||
|
||||
class SessionStore:
|
||||
session_class = ... # type: Any
|
||||
def __init__(self, session_class=None): ...
|
||||
def is_valid_key(self, key): ...
|
||||
def generate_key(self, salt=None): ...
|
||||
def new(self): ...
|
||||
def save(self, session): ...
|
||||
def save_if_modified(self, session): ...
|
||||
def delete(self, session): ...
|
||||
def get(self, sid): ...
|
||||
|
||||
class FilesystemSessionStore(SessionStore):
|
||||
path = ... # type: Any
|
||||
filename_template = ... # type: Any
|
||||
renew_missing = ... # type: Any
|
||||
mode = ... # type: Any
|
||||
def __init__(self, path=None, filename_template='', session_class=None, renew_missing=False, mode=420): ...
|
||||
def get_session_filename(self, sid): ...
|
||||
def save(self, session): ...
|
||||
def delete(self, session): ...
|
||||
def get(self, sid): ...
|
||||
def list(self): ...
|
||||
|
||||
class SessionMiddleware:
|
||||
app = ... # type: Any
|
||||
store = ... # type: Any
|
||||
cookie_name = ... # type: Any
|
||||
cookie_age = ... # type: Any
|
||||
cookie_expires = ... # type: Any
|
||||
cookie_path = ... # type: Any
|
||||
cookie_domain = ... # type: Any
|
||||
cookie_secure = ... # type: Any
|
||||
cookie_httponly = ... # type: Any
|
||||
environ_key = ... # type: Any
|
||||
def __init__(self, app, store, cookie_name='', cookie_age=None, cookie_expires=None, cookie_path='', cookie_domain=None, cookie_secure=None, cookie_httponly=False, environ_key=''): ...
|
||||
def __call__(self, environ, start_response): ...
|
||||
@@ -1,9 +0,0 @@
|
||||
from typing import Any
|
||||
from werkzeug.wrappers import Response
|
||||
|
||||
class ContentAccessors:
|
||||
def xml(self): ...
|
||||
def lxml(self): ...
|
||||
def json(self): ...
|
||||
|
||||
class TestResponse(Response, ContentAccessors): ...
|
||||
-27
@@ -1,27 +0,0 @@
|
||||
from typing import Any
|
||||
|
||||
def is_known_charset(charset): ...
|
||||
|
||||
class JSONRequestMixin:
|
||||
def json(self): ...
|
||||
|
||||
class ProtobufRequestMixin:
|
||||
protobuf_check_initialization = ... # type: Any
|
||||
def parse_protobuf(self, proto_type): ...
|
||||
|
||||
class RoutingArgsRequestMixin:
|
||||
routing_args = ... # type: Any
|
||||
routing_vars = ... # type: Any
|
||||
|
||||
class ReverseSlashBehaviorRequestMixin:
|
||||
def path(self): ...
|
||||
def script_root(self): ...
|
||||
|
||||
class DynamicCharsetRequestMixin:
|
||||
default_charset = ... # type: Any
|
||||
def unknown_charset(self, charset): ...
|
||||
def charset(self): ...
|
||||
|
||||
class DynamicCharsetResponseMixin:
|
||||
default_charset = ... # type: Any
|
||||
charset = ... # type: Any
|
||||
-44
@@ -1,44 +0,0 @@
|
||||
from typing import Any
|
||||
import code
|
||||
|
||||
class HTMLStringO:
|
||||
def __init__(self): ...
|
||||
def isatty(self): ...
|
||||
def close(self): ...
|
||||
def flush(self): ...
|
||||
def seek(self, n, mode=0): ...
|
||||
def readline(self): ...
|
||||
def reset(self): ...
|
||||
def write(self, x): ...
|
||||
def writelines(self, x): ...
|
||||
|
||||
class ThreadedStream:
|
||||
@staticmethod
|
||||
def push(): ...
|
||||
@staticmethod
|
||||
def fetch(): ...
|
||||
@staticmethod
|
||||
def displayhook(obj): ...
|
||||
def __setattr__(self, name, value): ...
|
||||
def __dir__(self): ...
|
||||
def __getattribute__(self, name): ...
|
||||
|
||||
class _ConsoleLoader:
|
||||
def __init__(self): ...
|
||||
def register(self, code, source): ...
|
||||
def get_source_by_code(self, code): ...
|
||||
|
||||
class _InteractiveConsole(code.InteractiveInterpreter):
|
||||
globals = ... # type: Any
|
||||
more = ... # type: Any
|
||||
buffer = ... # type: Any
|
||||
def __init__(self, globals, locals): ...
|
||||
def runsource(self, source): ...
|
||||
def runcode(self, code): ...
|
||||
def showtraceback(self): ...
|
||||
def showsyntaxerror(self, filename=None): ...
|
||||
def write(self, data): ...
|
||||
|
||||
class Console:
|
||||
def __init__(self, globals=None, locals=None): ...
|
||||
def eval(self, code): ...
|
||||
-33
@@ -1,33 +0,0 @@
|
||||
from typing import Any
|
||||
|
||||
deque = ... # type: Any
|
||||
missing = ... # type: Any
|
||||
RegexType = ... # type: Any
|
||||
HELP_HTML = ... # type: Any
|
||||
OBJECT_DUMP_HTML = ... # type: Any
|
||||
|
||||
def debug_repr(obj): ...
|
||||
def dump(obj=...): ...
|
||||
|
||||
class _Helper:
|
||||
def __call__(self, topic=None): ...
|
||||
|
||||
helper = ... # type: Any
|
||||
|
||||
class DebugReprGenerator:
|
||||
def __init__(self): ...
|
||||
list_repr = ... # type: Any
|
||||
tuple_repr = ... # type: Any
|
||||
set_repr = ... # type: Any
|
||||
frozenset_repr = ... # type: Any
|
||||
deque_repr = ... # type: Any
|
||||
def regex_repr(self, obj): ...
|
||||
def string_repr(self, obj, limit=70): ...
|
||||
def dict_repr(self, d, recursive, limit=5): ...
|
||||
def object_repr(self, obj): ...
|
||||
def dispatch_repr(self, obj, recursive): ...
|
||||
def fallback_repr(self): ...
|
||||
def repr(self, obj): ...
|
||||
def dump_object(self, obj): ...
|
||||
def dump_locals(self, d): ...
|
||||
def render_object_dump(self, items, title, repr=None): ...
|
||||
-63
@@ -1,63 +0,0 @@
|
||||
from typing import Any
|
||||
|
||||
UTF8_COOKIE = ... # type: Any
|
||||
system_exceptions = ... # type: Any
|
||||
HEADER = ... # type: Any
|
||||
FOOTER = ... # type: Any
|
||||
PAGE_HTML = ... # type: Any
|
||||
CONSOLE_HTML = ... # type: Any
|
||||
SUMMARY_HTML = ... # type: Any
|
||||
FRAME_HTML = ... # type: Any
|
||||
SOURCE_LINE_HTML = ... # type: Any
|
||||
|
||||
def render_console_html(secret, evalex_trusted=True): ...
|
||||
def get_current_traceback(ignore_system_exceptions=False, show_hidden_frames=False, skip=0): ...
|
||||
|
||||
class Line:
|
||||
lineno = ... # type: Any
|
||||
code = ... # type: Any
|
||||
in_frame = ... # type: Any
|
||||
current = ... # type: Any
|
||||
def __init__(self, lineno, code): ...
|
||||
def classes(self): ...
|
||||
def render(self): ...
|
||||
|
||||
class Traceback:
|
||||
exc_type = ... # type: Any
|
||||
exc_value = ... # type: Any
|
||||
exception_type = ... # type: Any
|
||||
frames = ... # type: Any
|
||||
def __init__(self, exc_type, exc_value, tb): ...
|
||||
def filter_hidden_frames(self): ...
|
||||
def is_syntax_error(self): ...
|
||||
def exception(self): ...
|
||||
def log(self, logfile=None): ...
|
||||
def paste(self): ...
|
||||
def render_summary(self, include_title=True): ...
|
||||
def render_full(self, evalex=False, secret=None, evalex_trusted=True): ...
|
||||
def generate_plaintext_traceback(self): ...
|
||||
def plaintext(self): ...
|
||||
id = ... # type: Any
|
||||
|
||||
class Frame:
|
||||
lineno = ... # type: Any
|
||||
function_name = ... # type: Any
|
||||
locals = ... # type: Any
|
||||
globals = ... # type: Any
|
||||
filename = ... # type: Any
|
||||
module = ... # type: Any
|
||||
loader = ... # type: Any
|
||||
code = ... # type: Any
|
||||
hide = ... # type: Any
|
||||
info = ... # type: Any
|
||||
def __init__(self, exc_type, exc_value, tb): ...
|
||||
def render(self): ...
|
||||
def render_line_context(self): ...
|
||||
def get_annotated_lines(self): ...
|
||||
def eval(self, code, mode=''): ...
|
||||
def sourcelines(self): ...
|
||||
def get_context_lines(self, context=5): ...
|
||||
@property
|
||||
def current_line(self): ...
|
||||
def console(self): ...
|
||||
id = ... # type: Any
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
from typing import Any
|
||||
|
||||
has_likely_buggy_unicode_filesystem = ... # type: Any
|
||||
|
||||
class BrokenFilesystemWarning(RuntimeWarning, UnicodeWarning): ...
|
||||
|
||||
def get_filesystem_encoding(): ...
|
||||
Vendored
-38
@@ -1,38 +0,0 @@
|
||||
from typing import Any
|
||||
from urllib.request import parse_http_list as _parse_list_header
|
||||
from urllib.parse import unquote_to_bytes as _unquote
|
||||
|
||||
HTTP_STATUS_CODES = ... # type: Any
|
||||
|
||||
def wsgi_to_bytes(data): ...
|
||||
def bytes_to_wsgi(data): ...
|
||||
def quote_header_value(value, extra_chars='', allow_token=True): ...
|
||||
def unquote_header_value(value, is_filename=False): ...
|
||||
def dump_options_header(header, options): ...
|
||||
def dump_header(iterable, allow_token=True): ...
|
||||
def parse_list_header(value): ...
|
||||
def parse_dict_header(value, cls=...): ...
|
||||
def parse_options_header(value, multiple=False): ...
|
||||
def parse_accept_header(value, cls=None): ...
|
||||
def parse_cache_control_header(value, on_update=None, cls=None): ...
|
||||
def parse_set_header(value, on_update=None): ...
|
||||
def parse_authorization_header(value): ...
|
||||
def parse_www_authenticate_header(value, on_update=None): ...
|
||||
def parse_if_range_header(value): ...
|
||||
def parse_range_header(value, make_inclusive=True): ...
|
||||
def parse_content_range_header(value, on_update=None): ...
|
||||
def quote_etag(etag, weak=False): ...
|
||||
def unquote_etag(etag): ...
|
||||
def parse_etags(value): ...
|
||||
def generate_etag(data): ...
|
||||
def parse_date(value): ...
|
||||
def cookie_date(expires=None): ...
|
||||
def http_date(timestamp=None): ...
|
||||
def is_resource_modified(environ, etag=None, data=None, last_modified=None, ignore_if_range=True): ...
|
||||
def remove_entity_headers(headers, allowed=...): ...
|
||||
def remove_hop_by_hop_headers(headers): ...
|
||||
def is_entity_header(header): ...
|
||||
def is_hop_by_hop_header(header): ...
|
||||
def parse_cookie(header, charset='', errors='', cls=None): ...
|
||||
def dump_cookie(key, value='', max_age=None, expires=None, path='', domain=None, secure=False, httponly=False, charset='', sync_expires=True): ...
|
||||
def is_byte_range_valid(start, stop, length): ...
|
||||
Vendored
-100
@@ -1,100 +0,0 @@
|
||||
from typing import Any
|
||||
|
||||
def release_local(local): ...
|
||||
|
||||
class Local:
|
||||
def __init__(self): ...
|
||||
def __iter__(self): ...
|
||||
def __call__(self, proxy): ...
|
||||
def __release_local__(self): ...
|
||||
def __getattr__(self, name): ...
|
||||
def __setattr__(self, name, value): ...
|
||||
def __delattr__(self, name): ...
|
||||
|
||||
class LocalStack:
|
||||
def __init__(self): ...
|
||||
def __release_local__(self): ...
|
||||
def _get__ident_func__(self): ...
|
||||
def _set__ident_func__(self, value): ...
|
||||
__ident_func__ = ... # type: Any
|
||||
def __call__(self): ...
|
||||
def push(self, obj): ...
|
||||
def pop(self): ...
|
||||
@property
|
||||
def top(self): ...
|
||||
|
||||
class LocalManager:
|
||||
locals = ... # type: Any
|
||||
ident_func = ... # type: Any
|
||||
def __init__(self, locals=None, ident_func=None): ...
|
||||
def get_ident(self): ...
|
||||
def cleanup(self): ...
|
||||
def make_middleware(self, app): ...
|
||||
def middleware(self, func): ...
|
||||
|
||||
class LocalProxy:
|
||||
def __init__(self, local, name=None): ...
|
||||
@property
|
||||
def __dict__(self): ...
|
||||
def __bool__(self): ...
|
||||
def __unicode__(self): ...
|
||||
def __dir__(self): ...
|
||||
def __getattr__(self, name): ...
|
||||
def __setitem__(self, key, value): ...
|
||||
def __delitem__(self, key): ...
|
||||
__getslice__ = ... # type: Any
|
||||
def __setslice__(self, i, j, seq): ...
|
||||
def __delslice__(self, i, j): ...
|
||||
__setattr__ = ... # type: Any
|
||||
__delattr__ = ... # type: Any
|
||||
__lt__ = ... # type: Any
|
||||
__le__ = ... # type: Any
|
||||
__eq__ = ... # type: Any
|
||||
__ne__ = ... # type: Any
|
||||
__gt__ = ... # type: Any
|
||||
__ge__ = ... # type: Any
|
||||
__cmp__ = ... # type: Any
|
||||
__hash__ = ... # type: Any
|
||||
__call__ = ... # type: Any
|
||||
__len__ = ... # type: Any
|
||||
__getitem__ = ... # type: Any
|
||||
__iter__ = ... # type: Any
|
||||
__contains__ = ... # type: Any
|
||||
__add__ = ... # type: Any
|
||||
__sub__ = ... # type: Any
|
||||
__mul__ = ... # type: Any
|
||||
__floordiv__ = ... # type: Any
|
||||
__mod__ = ... # type: Any
|
||||
__divmod__ = ... # type: Any
|
||||
__pow__ = ... # type: Any
|
||||
__lshift__ = ... # type: Any
|
||||
__rshift__ = ... # type: Any
|
||||
__and__ = ... # type: Any
|
||||
__xor__ = ... # type: Any
|
||||
__or__ = ... # type: Any
|
||||
__div__ = ... # type: Any
|
||||
__truediv__ = ... # type: Any
|
||||
__neg__ = ... # type: Any
|
||||
__pos__ = ... # type: Any
|
||||
__abs__ = ... # type: Any
|
||||
__invert__ = ... # type: Any
|
||||
__complex__ = ... # type: Any
|
||||
__int__ = ... # type: Any
|
||||
__long__ = ... # type: Any
|
||||
__float__ = ... # type: Any
|
||||
__oct__ = ... # type: Any
|
||||
__hex__ = ... # type: Any
|
||||
__index__ = ... # type: Any
|
||||
__coerce__ = ... # type: Any
|
||||
__enter__ = ... # type: Any
|
||||
__exit__ = ... # type: Any
|
||||
__radd__ = ... # type: Any
|
||||
__rsub__ = ... # type: Any
|
||||
__rmul__ = ... # type: Any
|
||||
__rdiv__ = ... # type: Any
|
||||
__rtruediv__ = ... # type: Any
|
||||
__rfloordiv__ = ... # type: Any
|
||||
__rmod__ = ... # type: Any
|
||||
__rdivmod__ = ... # type: Any
|
||||
__copy__ = ... # type: Any
|
||||
__deepcopy__ = ... # type: Any
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
from typing import Any
|
||||
from ._compat import to_unicode as to_unicode
|
||||
from .filesystem import get_filesystem_encoding as get_filesystem_encoding
|
||||
|
||||
can_rename_open_file = ... # type: Any
|
||||
|
||||
def rename(src, dst): ...
|
||||
Vendored
-12
@@ -1,12 +0,0 @@
|
||||
from typing import Any
|
||||
|
||||
argument_types = ... # type: Any
|
||||
converters = ... # type: Any
|
||||
|
||||
def run(namespace=None, action_prefix='', args=None): ...
|
||||
def fail(message, code=-1): ...
|
||||
def find_actions(namespace, action_prefix): ...
|
||||
def print_usage(actions): ...
|
||||
def analyse_action(func): ...
|
||||
def make_shell(init_func=None, banner=None, use_ipython=True): ...
|
||||
def make_runserver(app_factory, hostname='', port=5000, use_reloader=False, use_debugger=False, use_evalex=True, threaded=False, processes=1, static_files=None, extra_files=None, ssl_context=None): ...
|
||||
Vendored
-12
@@ -1,12 +0,0 @@
|
||||
from typing import Any
|
||||
|
||||
SALT_CHARS = ... # type: Any
|
||||
DEFAULT_PBKDF2_ITERATIONS = ... # type: Any
|
||||
|
||||
def pbkdf2_hex(data, salt, iterations=..., keylen=None, hashfunc=None): ...
|
||||
def pbkdf2_bin(data, salt, iterations=..., keylen=None, hashfunc=None): ...
|
||||
def safe_str_cmp(a, b): ...
|
||||
def gen_salt(length): ...
|
||||
def generate_password_hash(password, method='', salt_length=8): ...
|
||||
def check_password_hash(pwhash, password): ...
|
||||
def safe_join(directory, filename): ...
|
||||
Vendored
-9
@@ -1,9 +0,0 @@
|
||||
from typing import Any
|
||||
from werkzeug.wrappers import BaseRequest as Request, BaseResponse as Response
|
||||
|
||||
logo = ... # type: Any
|
||||
TEMPLATE = ... # type: Any
|
||||
|
||||
def iter_sys_path(): ...
|
||||
def render_testapp(req): ...
|
||||
def test_app(environ, start_response): ...
|
||||
-14
@@ -1,14 +0,0 @@
|
||||
from typing import Any
|
||||
|
||||
class UserAgentParser:
|
||||
platforms = ... # type: Any
|
||||
browsers = ... # type: Any
|
||||
def __init__(self): ...
|
||||
def __call__(self, user_agent): ...
|
||||
|
||||
class UserAgent:
|
||||
string = ... # type: Any
|
||||
def __init__(self, environ_or_string): ...
|
||||
def to_header(self): ...
|
||||
def __nonzero__(self): ...
|
||||
__bool__ = ... # type: Any
|
||||
Vendored
-49
@@ -1,49 +0,0 @@
|
||||
from typing import Any
|
||||
from werkzeug._internal import _DictAccessorProperty
|
||||
|
||||
class cached_property(property):
|
||||
__name__ = ... # type: Any
|
||||
__module__ = ... # type: Any
|
||||
__doc__ = ... # type: Any
|
||||
func = ... # type: Any
|
||||
def __init__(self, func, name=None, doc=None): ...
|
||||
def __set__(self, obj, value): ...
|
||||
def __get__(self, obj, type=None): ...
|
||||
|
||||
class environ_property(_DictAccessorProperty):
|
||||
read_only = ... # type: Any
|
||||
def lookup(self, obj): ...
|
||||
|
||||
class header_property(_DictAccessorProperty):
|
||||
def lookup(self, obj): ...
|
||||
|
||||
class HTMLBuilder:
|
||||
def __init__(self, dialect): ...
|
||||
def __call__(self, s): ...
|
||||
def __getattr__(self, tag): ...
|
||||
|
||||
html = ... # type: Any
|
||||
xhtml = ... # type: Any
|
||||
|
||||
def get_content_type(mimetype, charset): ...
|
||||
def format_string(string, context): ...
|
||||
def secure_filename(filename): ...
|
||||
def escape(s, quote=None): ...
|
||||
def unescape(s): ...
|
||||
def redirect(location, code=302, Response=None): ...
|
||||
def append_slash_redirect(environ, code=301): ...
|
||||
def import_string(import_name, silent=False): ...
|
||||
def find_modules(import_path, include_packages=False, recursive=False): ...
|
||||
def validate_arguments(func, args, kwargs, drop_extra=True): ...
|
||||
def bind_arguments(func, args, kwargs): ...
|
||||
|
||||
class ArgumentValidationError(ValueError):
|
||||
missing = ... # type: Any
|
||||
extra = ... # type: Any
|
||||
extra_positional = ... # type: Any
|
||||
def __init__(self, missing=None, extra=None, extra_positional=None): ...
|
||||
|
||||
class ImportStringError(ImportError):
|
||||
import_name = ... # type: Any
|
||||
exception = ... # type: Any
|
||||
def __init__(self, import_name, exception): ...
|
||||
Vendored
-85
@@ -1,85 +0,0 @@
|
||||
from typing import Any, Optional
|
||||
from wsgiref.types import WSGIEnvironment, InputStream
|
||||
|
||||
def responder(f): ...
|
||||
def get_current_url(environ, root_only=False, strip_querystring=False, host_only=False, trusted_hosts=None): ...
|
||||
def host_is_trusted(hostname, trusted_list): ...
|
||||
def get_host(environ, trusted_hosts=None): ...
|
||||
def get_content_length(environ: WSGIEnvironment) -> Optional[int]: ...
|
||||
def get_input_stream(environ: WSGIEnvironment, safe_fallback: bool = ...) -> InputStream: ...
|
||||
def get_query_string(environ): ...
|
||||
def get_path_info(environ, charset='', errors=''): ...
|
||||
def get_script_name(environ, charset='', errors=''): ...
|
||||
def pop_path_info(environ, charset='', errors=''): ...
|
||||
def peek_path_info(environ, charset='', errors=''): ...
|
||||
def extract_path_info(environ_or_baseurl, path_or_url, charset='', errors='', collapse_http_schemes=True): ...
|
||||
|
||||
class SharedDataMiddleware:
|
||||
app = ... # type: Any
|
||||
exports = ... # type: Any
|
||||
cache = ... # type: Any
|
||||
cache_timeout = ... # type: Any
|
||||
fallback_mimetype = ... # type: Any
|
||||
def __init__(self, app, exports, disallow=None, cache=True, cache_timeout=..., fallback_mimetype=''): ...
|
||||
def is_allowed(self, filename): ...
|
||||
def get_file_loader(self, filename): ...
|
||||
def get_package_loader(self, package, package_path): ...
|
||||
def get_directory_loader(self, directory): ...
|
||||
def generate_etag(self, mtime, file_size, real_filename): ...
|
||||
def __call__(self, environ, start_response): ...
|
||||
|
||||
class DispatcherMiddleware:
|
||||
app = ... # type: Any
|
||||
mounts = ... # type: Any
|
||||
def __init__(self, app, mounts=None): ...
|
||||
def __call__(self, environ, start_response): ...
|
||||
|
||||
class ClosingIterator:
|
||||
def __init__(self, iterable, callbacks=None): ...
|
||||
def __iter__(self): ...
|
||||
def __next__(self): ...
|
||||
def close(self): ...
|
||||
|
||||
def wrap_file(environ, file, buffer_size=8192): ...
|
||||
|
||||
class FileWrapper:
|
||||
file = ... # type: Any
|
||||
buffer_size = ... # type: Any
|
||||
def __init__(self, file, buffer_size=8192): ...
|
||||
def close(self): ...
|
||||
def seekable(self): ...
|
||||
def seek(self, *args): ...
|
||||
def tell(self): ...
|
||||
def __iter__(self): ...
|
||||
def __next__(self): ...
|
||||
|
||||
class _RangeWrapper:
|
||||
iterable = ... # type: Any
|
||||
byte_range = ... # type: Any
|
||||
start_byte = ... # type: Any
|
||||
end_byte = ... # type: Any
|
||||
read_length = ... # type: Any
|
||||
seekable = ... # type: Any
|
||||
end_reached = ... # type: Any
|
||||
def __init__(self, iterable, start_byte=0, byte_range=None): ...
|
||||
def __iter__(self): ...
|
||||
def __next__(self): ...
|
||||
def close(self): ...
|
||||
|
||||
def make_line_iter(stream, limit=None, buffer_size=..., cap_at_buffer=False): ...
|
||||
def make_chunk_iter(stream, separator, limit=None, buffer_size=..., cap_at_buffer=False): ...
|
||||
|
||||
class LimitedStream:
|
||||
limit = ... # type: Any
|
||||
def __init__(self, stream, limit): ...
|
||||
def __iter__(self): ...
|
||||
@property
|
||||
def is_exhausted(self): ...
|
||||
def on_exhausted(self): ...
|
||||
def on_disconnect(self): ...
|
||||
def exhaust(self, chunk_size=...): ...
|
||||
def read(self, size=None): ...
|
||||
def readline(self, size=None): ...
|
||||
def readlines(self, size=None): ...
|
||||
def tell(self): ...
|
||||
def __next__(self): ...
|
||||
Reference in new issue
Block a user