Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pallets/werkzeug
/ functions
Functions
2,000 in github.com/pallets/werkzeug
⨍
Functions
2,000
◇
Types & classes
303
↳
Endpoints
1
↓ 5 callers
Method
get_rules
(self, map: "Map")
src/werkzeug/routing/rules.py:534
↓ 5 callers
Function
iri_to_uri
Convert an IRI to a URI. All non-ASCII and unsafe characters are quoted. If the URL has a domain, it is encoded to Punycode. >>> iri_to_uri('
src/werkzeug/urls.py:753
↓ 5 callers
Method
items
(self, multi=False)
src/werkzeug/datastructures.py:734
↓ 5 callers
Function
iter_multi_items
Iterates over the items of a mapping yielding keys and values without dropping any from more complex structures.
src/werkzeug/datastructures.py:21
↓ 5 callers
Function
main
()
tests/test_local.py:68
↓ 5 callers
Function
make_app
Helper function that creates a plnt app.
examples/manage-plnt.py:7
↓ 5 callers
Function
parse_date
Parse an :rfc:`2822` date into a timezone-aware :class:`datetime.datetime` object, or ``None`` if parsing fails. This is a wrapper for :func:
src/werkzeug/http.py:931
↓ 5 callers
Method
push
Add a new item to the top of the stack.
src/werkzeug/local.py:140
↓ 5 callers
Method
readline
Reads one line from the stream.
src/werkzeug/wsgi.py:1005
↓ 5 callers
Method
repr
(self, obj: object)
src/werkzeug/debug/repr.py:230
↓ 5 callers
Method
reset
(self)
src/werkzeug/debug/console.py:45
↓ 5 callers
Function
safe_join
Safely join zero or more untrusted path components to a base directory to avoid escaping the base directory. :param directory: The trusted ba
src/werkzeug/security.py:110
↓ 5 callers
Function
stream_encode_multipart
Encode a dict of values (either strings or file descriptors or :class:`FileStorage` objects.) into a multipart encoded string stored in a file
src/werkzeug/test.py:53
↓ 5 callers
Method
unlink
(self, omd)
src/werkzeug/datastructures.py:642
↓ 5 callers
Function
url_encode
URL encode a dict/`MultiDict`. If a value is `None` it will not appear in the result string. Per default only values are encoded into the target
src/werkzeug/urls.py:931
↓ 5 callers
Method
values
(self, multi=1)
tests/test_datastructures.py:22
↓ 4 callers
Method
__get__
(self, instance: "LocalProxy", owner: t.Optional[type] = None)
src/werkzeug/local.py:308
↓ 4 callers
Method
__init__
(self, have_match_for: t.Set[str], websocket_mismatch: bool)
src/werkzeug/routing/exceptions.py:144
↓ 4 callers
Function
_encode_idna
(domain: str)
src/werkzeug/_internal.py:403
↓ 4 callers
Method
_ensure_sequence
This method can be called by methods that need a sequence. If `mutable` is true, it will also ensure that the response sequence is a
src/werkzeug/wrappers/response.py:353
↓ 4 callers
Function
_get_environ
(obj: t.Union["WSGIEnvironment", "Request"])
src/werkzeug/_internal.py:164
↓ 4 callers
Method
_load_form_data
Method used internally to retrieve submitted data. After calling this sets `form` and `files` on the request object to multi dicts fi
src/werkzeug/wrappers/request.py:259
↓ 4 callers
Method
_split_auth
(self)
src/werkzeug/urls.py:298
↓ 4 callers
Method
_value_matches
Check if a value matches a given accept item.
src/werkzeug/datastructures.py:1683
↓ 4 callers
Function
_wsgi_decoding_dance
( s: str, charset: str = "utf-8", errors: str = "replace" )
src/werkzeug/_internal.py:149
↓ 4 callers
Function
_wsgi_encoding_dance
( s: str, charset: str = "utf-8", errors: str = "replace" )
src/werkzeug/_internal.py:155
↓ 4 callers
Method
add_file
Adds a new file to the dict. `file` can be a file name or a :class:`file`-like or a :class:`FileStorage` object. :param name: the na
src/werkzeug/datastructures.py:1547
↓ 4 callers
Method
bind_to_context
(self)
examples/plnt/webapp.py:31
↓ 4 callers
Method
check_pin_trust
Checks if the request passed the pin test. This returns `True` if the request is trusted on a pin/cookie basis and returns `False` if not.
src/werkzeug/debug/__init__.py:413
↓ 4 callers
Function
check_type
(context: str, obj: object, need: t.Type = str)
src/werkzeug/middleware/lint.py:38
↓ 4 callers
Method
close
(self)
src/werkzeug/wsgi.py:552
↓ 4 callers
Method
close
(self)
src/werkzeug/middleware/lint.py:94
↓ 4 callers
Method
contains_weak
Check if an etag is part of the set including weak and strong tags.
src/werkzeug/datastructures.py:2398
↓ 4 callers
Method
count
(self)
examples/plnt/utils.py:121
↓ 4 callers
Function
f
(**kwargs)
examples/coolmagic/utils.py:35
↓ 4 callers
Method
generate_etag
(self, mtime: datetime, file_size: int, real_filename: str)
src/werkzeug/middleware/shared_data.py:218
↓ 4 callers
Function
get_content_type
Returns the full content type string with charset for a mimetype. If the mimetype represents text, the charset parameter will be appended, ot
src/werkzeug/utils.py:172
↓ 4 callers
Method
get_description
Get the description.
src/werkzeug/exceptions.py:93
↓ 4 callers
Method
get_headers
( self, environ: t.Optional["WSGIEnvironment"] = None, scope: t.Optional[dict] = None,
src/werkzeug/exceptions.py:648
↓ 4 callers
Method
get_json
( self, force: bool = ..., silent: "te.Literal[False]" = ..., cache: bool = ... )
src/werkzeug/wrappers/request.py:555
↓ 4 callers
Method
get_response
(self)
examples/cupoftee/application.py:76
↓ 4 callers
Method
index
Get the position of an entry or raise :exc:`ValueError`. :param key: The key to be looked up. .. versionchanged:: 0.5 Thi
src/werkzeug/datastructures.py:1718
↓ 4 callers
Method
init_database
(self)
examples/plnt/webapp.py:28
↓ 4 callers
Method
keys
(self, lower=False)
src/werkzeug/datastructures.py:999
↓ 4 callers
Function
parse_accept_header
(value: t.Optional[str])
src/werkzeug/http.py:473
↓ 4 callers
Function
parse_etags
Parse an etag header. :param value: the tag header to parse :return: an :class:`~werkzeug.datastructures.ETags` object.
src/werkzeug/http.py:893
↓ 4 callers
Method
receive_data
(self, data: Optional[bytes])
src/werkzeug/sansio/multipart.py:138
↓ 4 callers
Function
render_template
(template, **context)
examples/couchy/utils.py:45
↓ 4 callers
Function
render_template
(template, **context)
examples/shorty/utils.py:55
↓ 4 callers
Method
seek
(self, *args: t.Any)
src/werkzeug/wsgi.py:563
↓ 4 callers
Method
set_data
Sets a new string as response. The value must be a string or bytes. If a string is set it's encoded to the charset of the response (u
src/werkzeug/wrappers/response.py:322
↓ 4 callers
Method
sort
(self, key=None, reverse=False)
src/werkzeug/datastructures.py:87
↓ 4 callers
Method
title
(self)
examples/simplewiki/database.py:102
↓ 4 callers
Function
uri_to_iri
Convert a URI to an IRI. All valid UTF-8 characters are unquoted, leaving all reserved and invalid characters quoted. If the URL has a domain,
src/werkzeug/urls.py:715
↓ 4 callers
Function
url_for
(endpoint, _external=False, **values)
examples/couchy/utils.py:38
↓ 4 callers
Function
url_for
(endpoint, _external=False, **values)
examples/shorty/utils.py:48
↓ 4 callers
Function
url_join
Join a base URL and a possibly relative URL to form an absolute interpretation of the latter. :param base: the base URL for the join operatio
src/werkzeug/urls.py:999
↓ 4 callers
Method
values
A :class:`werkzeug.datastructures.CombinedMultiDict` that combines :attr:`args` and :attr:`form`. For GET requests, only ``args`` are
src/werkzeug/wrappers/request.py:440
↓ 4 callers
Method
write
(data: bytes)
src/werkzeug/serving.py:248
↓ 3 callers
Method
__init__
(self, map: "Map", *items: str)
src/werkzeug/routing/converters.py:91
↓ 3 callers
Method
__repr__
(self)
src/werkzeug/datastructures.py:2452
↓ 3 callers
Method
__setitem__
Like :meth:`set` but also supports index/slice based setting.
src/werkzeug/datastructures.py:1220
↓ 3 callers
Function
_add_subclass_info
( inner: str, obj: object, base: t.Union[t.Type, t.Tuple[t.Type, ...]] )
src/werkzeug/debug/repr.py:83
↓ 3 callers
Function
_ansi_style
(value: str, *styles: str)
src/werkzeug/serving.py:440
↓ 3 callers
Method
_get_current_object
()
src/werkzeug/local.py:491
↓ 3 callers
Method
_load_key
(self, key)
examples/cupoftee/db.py:21
↓ 3 callers
Function
_make_chunk_iter
Helper for the line and chunk iter functions.
src/werkzeug/wsgi.py:669
↓ 3 callers
Method
_next
(self)
src/werkzeug/wsgi.py:643
↓ 3 callers
Function
_prefix_names
ast parse and prefix names with `.` to avoid collision with user vars
src/werkzeug/routing/rules.py:287
↓ 3 callers
Method
_split_netloc
(self)
src/werkzeug/urls.py:292
↓ 3 callers
Function
_url_unquote_legacy
(value: str, unsafe: str = "")
src/werkzeug/urls.py:450
↓ 3 callers
Method
_validate_value
(self, value)
src/werkzeug/datastructures.py:1113
↓ 3 callers
Method
add_etag
Add an etag for the current response if there is none yet. .. versionchanged:: 2.0 SHA-1 is used to generate the value. MD5 may n
src/werkzeug/wrappers/response.py:832
↓ 3 callers
Method
build
Building URLs works pretty much the other way round. Instead of `match` you call `build` and pass it the endpoint and a dict of argum
src/werkzeug/routing/map.py:821
↓ 3 callers
Function
cache_control_property
Return a new property object for a cache header. Useful if you want to add support for a cache extension in a subclass. .. versionchanged:: 2
src/werkzeug/datastructures.py:1949
↓ 3 callers
Method
call_on_close
Adds a function to the internal list of functions that should be called as part of closing down the response. Since 0.7 this function
src/werkzeug/wrappers/response.py:210
↓ 3 callers
Method
close
(self)
examples/cupoftee/db.py:62
↓ 3 callers
Method
contains_raw
When passed a quoted tag it will check if this tag is part of the set. If the tag is weak it is checked against weak and strong tags,
src/werkzeug/datastructures.py:2410
↓ 3 callers
Method
deepcopy
Return a deep copy of this object.
src/werkzeug/datastructures.py:516
↓ 3 callers
Method
encode_netloc
Encodes the netloc part to an ASCII safe URL as bytes.
src/werkzeug/urls.py:166
↓ 3 callers
Method
force_type
Enforce that the WSGI response is a response object of the current type. Werkzeug will use the :class:`Response` internally in many s
src/werkzeug/wrappers/response.py:229
↓ 3 callers
Method
from_environ
Turn an environ dict back into a builder. Any extra kwargs override the args extracted from the environ. .. versionchanged:: 2.0
src/werkzeug/test.py:463
↓ 3 callers
Function
generate_etag
Generate an etag for some data. .. versionchanged:: 2.0 Use SHA-1. MD5 may not be available in some environments.
src/werkzeug/http.py:922
↓ 3 callers
Method
get_etag
Return a tuple in the form ``(etag, is_weak)``. If there is no ETag the return value is ``(None, None)``.
src/werkzeug/sansio/response.py:504
↓ 3 callers
Function
get_host
Return the host for the given parameters. This first checks the ``host_header``. If it's not present, then ``server`` is used. The host will
src/werkzeug/sansio/utils.py:56
↓ 3 callers
Function
get_input_stream
Returns the input stream from the WSGI environment and wraps it in the most sensible way possible. The stream returned is not the raw WSGI str
src/werkzeug/wsgi.py:136
↓ 3 callers
Function
is_resource_modified
Convenience method for conditional requests. :param http_range: Range HTTP header :param http_if_range: If-Range HTTP header :param http_i
src/werkzeug/sansio/http.py:17
↓ 3 callers
Method
lists
(self)
src/werkzeug/datastructures.py:1489
↓ 3 callers
Method
log
(self, type: str, message: str, *args: t.Any)
src/werkzeug/serving.py:432
↓ 3 callers
Method
lookup
(self, instance: t.Any)
src/werkzeug/_internal.py:274
↓ 3 callers
Function
make_app
()
examples/manage-shorty.py:8
↓ 3 callers
Method
make_middleware
Wrap a WSGI application so that local data is released automatically after the response has been sent for a request.
src/werkzeug/local.py:229
↓ 3 callers
Method
make_sequence
Converts the response iterator in a list. By default this happens automatically if required. If `implicit_sequence_conversion` is di
src/werkzeug/wrappers/response.py:378
↓ 3 callers
Function
make_wiki
Helper function that creates a new wiki instance.
examples/manage-simplewiki.py:7
↓ 3 callers
Method
next_event
(self)
src/werkzeug/sansio/multipart.py:149
↓ 3 callers
Method
open
(self, *args, **kwargs)
tests/test_test.py:770
↓ 3 callers
Function
page_missing
Displayed if page or revision does not exist.
examples/simplewiki/actions.py:188
↓ 3 callers
Function
parse_dict_header
Parse lists of key, value pairs as described by RFC 2068 Section 2 and convert them into a python dict (or any other mapping object created from
src/werkzeug/http.py:350
↓ 3 callers
Function
parse_form_data
Parse the form data in the environ and return it as tuple in the form ``(stream, form, files)``. You should only call this method if the tran
src/werkzeug/formparser.py:74
↓ 3 callers
Function
parse_list_header
Parse lists as described by RFC 2068 Section 2. In particular, parse comma-separated lists where the elements of the list may include quoted-
src/werkzeug/http.py:320
← previous
next →
101–200 of 2,000, ranked by callers