MCPcopy Create free account

hub / github.com/pallets/werkzeug / functions

Functions2,000 in github.com/pallets/werkzeug

↓ 3 callersMethodrange_for_length
If the range is for bytes, the length is not None and there is exactly one range and it is satisfiable it returns a ``(start, stop)``
src/werkzeug/datastructures.py:2510
↓ 3 callersMethodread
(self, size=-1)
tests/test_wrappers.py:459
↓ 3 callersMethodrender_template
(self, template_name, **context)
examples/shortly/shortly.py:103
↓ 3 callersMethodrender_traceback_html
(self, include_title: bool = True)
src/werkzeug/debug/tbtools.py:272
↓ 3 callersMethodsave
Save the file to a destination path or file object. If the destination is a file object you have to close it yourself after the call.
src/werkzeug/datastructures.py:2978
↓ 3 callersFunctionsend_from_directory
Send a file from within a directory using :func:`send_file`. This is a secure way to serve files from a folder, such as static files or uploa
src/werkzeug/utils.py:549
↓ 3 callersMethodset_cookie
Sets a cookie in the client's cookie jar. The server name is required and has to match the one that is also passed to the open call.
src/werkzeug/test.py:894
↓ 3 callersMethodsync
(self)
examples/cupoftee/network.py:16
↓ 3 callersMethodtell
(self)
src/werkzeug/wsgi.py:567
↓ 3 callersMethodto_header
Convert the stored values into a cache control header.
src/werkzeug/datastructures.py:2193
↓ 3 callersFunctionunquote_etag
Unquote a single etag: >>> unquote_etag('W/"bar"') ('bar', True) >>> unquote_etag('"bar"') ('bar', False) :param etag: the etag
src/werkzeug/http.py:868
↓ 3 callersFunctionunquote_header_value
r"""Unquotes a header value. (Reversal of :func:`quote_header_value`). This does not use the real unquoting but what browsers are actually us
src/werkzeug/http.py:225
↓ 2 callersMethod__enter__
Do any setup, then run one step of the watch to populate the initial filesystem state.
src/werkzeug/_reloader.py:232
↓ 2 callersMethod__getitem__
(self, key, _get_mode=False)
src/werkzeug/datastructures.py:890
↓ 2 callersMethod__init__
(self, rfile: t.IO[bytes])
src/werkzeug/serving.py:89
↓ 2 callersMethod__init__
(self, string=None, custom=None, *args, **kwargs)
tests/test_routing.py:1240
↓ 2 callersMethod__new__
(metacls, name, this_bases, d)
examples/cupoftee/application.py:49
↓ 2 callersMethod__setattr__
(self, name: str, value: t.Any)
src/werkzeug/local.py:90
↓ 2 callersFunction_check_str_tuple
Ensure tuple items are all strings or all bytes.
src/werkzeug/_internal.py:81
↓ 2 callersFunction_dt_as_utc
(dt: None)
src/werkzeug/_internal.py:228
↓ 2 callersFunction_exhaust
(stream: t.IO[bytes])
src/werkzeug/formparser.py:52
↓ 2 callersMethod_exhaust_chunks
Exhaust the stream by reading until the limit is reached or the client disconnects, yielding each chunk. :param chunk_size: How many
src/werkzeug/wsgi.py:931
↓ 2 callersFunction_get_args_for_reloading
Determine how the script was executed, and return the args needed to execute it again in a new process.
src/werkzeug/_reloader.py:165
↓ 2 callersMethod_get_form
Common behavior for getting the :attr:`form` and :attr:`files` properties. :param name: Name of the internal cached attribute.
src/werkzeug/test.py:600
↓ 2 callersFunction_get_server
( environ: "WSGIEnvironment", )
src/werkzeug/wsgi.py:76
↓ 2 callersFunction_hash_internal
Internal password hash helper. Supports plaintext without salt, unsalted and salted passwords. In case salted passwords are used hmac is use
src/werkzeug/security.py:27
↓ 2 callersFunction_is_extended_parameter
Per RFC 5987/8187, "extended" values may *not* be quoted. This is in keeping with browser implementations. So we test using this function to s
src/werkzeug/http.py:193
↓ 2 callersFunction_iter_data
Iterate over a mapping that might have a list of values, yielding all key, value pairs. Almost like iter_multi_items but only allows lists, no
src/werkzeug/test.py:223
↓ 2 callersFunction_iter_module_paths
Find the filesystem paths associated with imported modules.
src/werkzeug/_reloader.py:38
↓ 2 callersMethod_keys_impl
This function exists so __len__ can be implemented more efficiently, saving one list creation from an iterator.
src/werkzeug/datastructures.py:1461
↓ 2 callersMethod_make_base_url
(scheme: str, host: str, script_root: str)
src/werkzeug/test.py:511
↓ 2 callersMethod_next_chunk
(self)
src/werkzeug/wsgi.py:620
↓ 2 callersFunction_normalize
(hostname: str)
src/werkzeug/sansio/utils.py:24
↓ 2 callersMethod_opener
(self, filename: str)
src/werkzeug/middleware/shared_data.py:147
↓ 2 callersFunction_options_header_vkw
(value, kw)
src/werkzeug/datastructures.py:834
↓ 2 callersMethod_parse_content_type
(self)
src/werkzeug/datastructures.py:2938
↓ 2 callersMethod_parse_content_type
(self)
src/werkzeug/sansio/request.py:344
↓ 2 callersFunction_remove_by_pattern
(paths: t.Set[str], exclude_patterns: t.Set[str])
src/werkzeug/_reloader.py:58
↓ 2 callersMethod_set_form
Common behavior for setting the :attr:`form` and :attr:`files` properties. :param name: Name of the internal cached attribute.
src/werkzeug/test.py:618
↓ 2 callersMethod_specificity
Returns a tuple describing the value's specificity.
src/werkzeug/datastructures.py:1679
↓ 2 callersMethod_split_host
(self)
src/werkzeug/urls.py:308
↓ 2 callersFunction_url_decode_impl
( pair_iter: t.Iterable[t.AnyStr], charset: str, include_empty: bool, errors: str )
src/werkzeug/urls.py:910
↓ 2 callersFunction_url_encode_impl
( obj: t.Union[t.Mapping[str, str], t.Iterable[t.Tuple[str, str]]], charset: str, sort: bool,
src/werkzeug/urls.py:420
↓ 2 callersFunction_warn_if_string
Helper for the response objects to check if the iterable returned to the WSGI server is not a string.
src/werkzeug/wrappers/response.py:32
↓ 2 callersMethodaddress_string
(self)
src/werkzeug/serving.py:385
↓ 2 callersMethodcalculate_content_length
Returns the content length if available or `None` otherwise.
src/werkzeug/wrappers/response.py:345
↓ 2 callersMethodconnection_dropped
Called if the connection was closed by the client. By default nothing happens.
src/werkzeug/serving.py:370
↓ 2 callersMethoddecode_netloc
Decodes the netloc part into a string.
src/werkzeug/urls.py:187
↓ 2 callersMethoddelete_cookie
Delete a cookie. Fails silently if key doesn't exist. :param key: the key (name) of the cookie to be deleted. :param path: if the co
src/werkzeug/sansio/response.py:245
↓ 2 callersFunctiondelfoo
()
tests/test_local.py:47
↓ 2 callersMethoddispatch
(self, environ, start_response)
examples/couchy/application.py:29
↓ 2 callersFunctiondump_cookie
Create a Set-Cookie header without the ``Set-Cookie`` prefix. The return value is usually restricted to ascii as the vast majority of values
src/werkzeug/http.py:1173
↓ 2 callersMethoddump_locals
(self, d: t.Dict[str, t.Any])
src/werkzeug/debug/repr.py:269
↓ 2 callersMethoddump_object
(self, obj: object)
src/werkzeug/debug/repr.py:245
↓ 2 callersFunctiondump_options_header
The reverse function to :func:`parse_options_header`. :param header: the header to dump :param options: a dict of options to append.
src/werkzeug/http.py:252
↓ 2 callersMethodencode_query_args
(self, query_args: t.Union[t.Mapping[str, t.Any], str])
src/werkzeug/routing/map.py:738
↓ 2 callersMethodextract_wsgi
Extract the server's set-cookie headers as cookies into the cookie jar.
src/werkzeug/test.py:209
↓ 2 callersMethodfreeze
Make the response object ready to be pickled. Does the following: * Buffer the response into a list, ignoring :attr:`im
src/werkzeug/wrappers/response.py:452
↓ 2 callersFunctiongen_salt
Generate a random string of SALT_CHARS with specified ``length``.
src/werkzeug/security.py:19
↓ 2 callersFunctiongenerate_adhoc_ssl_context
Generates an adhoc SSL context for the development server.
src/werkzeug/serving.py:549
↓ 2 callersFunctiongenerate_adhoc_ssl_pair
( cn: t.Optional[str] = None, )
src/werkzeug/serving.py:459
↓ 2 callersMethodget_app_iter
Returns the application iterator for the given environ. Depending on the request method and the current status code the return value
src/werkzeug/wrappers/response.py:571
↓ 2 callersMethodget_body
Get the HTML body.
src/werkzeug/exceptions.py:109
↓ 2 callersFunctionget_content_length
Returns the content length from the WSGI environment as integer. If it's not available or chunked transfer encoding is used, ``None`` is retur
src/werkzeug/wsgi.py:121
↓ 2 callersFunctionget_contents
(filename)
tests/test_formparser.py:37
↓ 2 callersFunctionget_current_url
Recreate the URL for a request from the parts in a WSGI environment. The URL is an IRI, not a URI, so it may contain Unicode characters.
src/werkzeug/wsgi.py:38
↓ 2 callersMethodget_file_loader
(self, filename: str)
src/werkzeug/middleware/shared_data.py:154
↓ 2 callersMethodget_file_location
Returns a tuple with the location of the file in the form ``(server, location)``. If the netloc is empty in the URL or points to loca
src/werkzeug/urls.py:230
↓ 2 callersFunctionget_machine_id
()
src/werkzeug/debug/__init__.py:47
↓ 2 callersFunctionget_pin_and_cookie_name
Given an application object this returns a semi-stable 9 digit pin code and a random key. The hope is that this is stable between restarts to
src/werkzeug/debug/__init__.py:137
↓ 2 callersMethodget_response
Get a response object. If one was passed to the exception it's returned directly. :param environ: the optional environ for the reque
src/werkzeug/exceptions.py:131
↓ 2 callersMethodget_response
( self, environ: t.Optional[t.Union["WSGIEnvironment", "Request"]] = None, scope: t.Op
src/werkzeug/routing/exceptions.py:38
↓ 2 callersMethodget_wsgi_response
Returns the final WSGI response as tuple. The first item in the tuple is the application iterator, the second the status and the thir
src/werkzeug/wrappers/response.py:600
↓ 2 callersMethodgetheaders
(self, name: str)
src/werkzeug/test.py:162
↓ 2 callersFunctionhash_pin
(pin: str)
src/werkzeug/debug/__init__.py:40
↓ 2 callersFunctionimport_string
Imports an object based on a string. This is useful if you want to use import paths as endpoints or something similar. An import path can be
src/werkzeug/utils.py:595
↓ 2 callersFunctionis_entity_header
Check if a header is an entity header. .. versionadded:: 0.5 :param header: the header to test. :return: `True` if it's an entity header
src/werkzeug/http.py:1111
↓ 2 callersFunctionis_hop_by_hop_header
Check if a header is an HTTP/1.1 "Hop-by-Hop" header. .. versionadded:: 0.5 :param header: the header to test. :return: `True` if it's a
src/werkzeug/http.py:1122
↓ 2 callersMethodis_strong
Check if an etag is strong.
src/werkzeug/datastructures.py:2394
↓ 2 callersMethoditems
Return an iterator of ``(key, value)`` pairs. :param multi: If set to `True` the iterator returned will have a pair for
src/werkzeug/datastructures.py:477
↓ 2 callersMethoditems
(self, multi=False)
src/werkzeug/datastructures.py:1475
↓ 2 callersMethoditer_rules
Iterate over all rules or the rules of an endpoint. :param endpoint: if provided only the rules for that endpoint ar
src/werkzeug/routing/map.py:155
↓ 2 callersFunctioniterable_middleware
Guarantee that the app returns an iterable
tests/test_test.py:731
↓ 2 callersMethodkeys
(self)
src/werkzeug/datastructures.py:1469
↓ 2 callersMethodlists
(self)
src/werkzeug/datastructures.py:748
↓ 2 callersFunctionload_ssl_context
Loads SSL context from cert/private key files and optional protocol. Many parameters are directly taken from the API of :py:class:`ssl.SSLCont
src/werkzeug/serving.py:579
↓ 2 callersMethodlog
(self, type: str, message: str, *args: t.Any)
src/werkzeug/serving.py:761
↓ 2 callersMethodlog_reload
(self, filename: str)
src/werkzeug/_reloader.py:275
↓ 2 callersFunctionmake_app
()
examples/manage-couchy.py:5
↓ 2 callersFunctionmake_call_asserter
Utility to assert a certain number of function calls. :param func: Additional callback for each function call. .. code-block:: python
tests/test_datastructures.py:899
↓ 2 callersMethodmake_redirect_url
Creates a redirect URL. :internal:
src/werkzeug/routing/map.py:743
↓ 2 callersMethodon_disconnect
What should happen if a disconnect is detected? The return value of this function is returned from read functions in case the client
src/werkzeug/wsgi.py:921
↓ 2 callersMethodon_exhausted
This is called when the stream tries to read past the limit. The return value of this function is returned from the reading function.
src/werkzeug/wsgi.py:912
↓ 2 callersFunctionopenShell
* Helper function for shell initialization
src/werkzeug/debug/shared/debugger.js:93
↓ 2 callersMethodparse
( self, stream: t.IO[bytes], boundary: bytes, content_length: t.Optional[int] )
src/werkzeug/formparser.py:405
↓ 2 callersFunctionparse_authorization_header
Parse an HTTP basic/digest authorization header transmitted by the web browser. The return value is either `None` if the header was invalid or
src/werkzeug/http.py:654
↓ 2 callersFunctionparse_cache_control_header
( value: t.Optional[str], on_update: _t_cc_update, cls: None = None )
src/werkzeug/http.py:524
↓ 2 callersFunctionparse_cookie
Parse a cookie from a string. The same key can be provided multiple times, the values are stored in-order. The default :class:`MultiDict` wil
src/werkzeug/sansio/http.py:97
↓ 2 callersFunctionparse_csp_header
( value: t.Optional[str], on_update: _t_csp_update, cls: None = None )
src/werkzeug/http.py:572
↓ 2 callersMethodparse_from_environ
Parses the information from the environment as form data. :param environ: the WSGI environment to be used for parsing. :return: A tup
src/werkzeug/formparser.py:224
← previousnext →201–300 of 2,000, ranked by callers