MCPcopy Create free account

hub / github.com/pallets/werkzeug / functions

Functions2,000 in github.com/pallets/werkzeug

Methodoptions
Call :meth:`open` with ``method`` set to ``OPTIONS``.
src/werkzeug/test.py:1163
Methodorder_link
(self, name, title)
examples/cupoftee/pages.py:13
Functionpage_index
Index of all pages.
examples/simplewiki/specialpages.py:10
Functionpage_not_found
(req)
examples/i18nurls/views.py:28
Methodpages
Return the number of pages.
examples/couchy/utils.py:99
Methodpages
Return the number of pages.
examples/plnt/utils.py:145
Methodpages
(self)
examples/simplewiki/utils.py:140
Methodpages
Return the number of pages.
examples/shorty/utils.py:109
Functionparse_age
Parses a base-10 integer count of seconds into a timedelta. If parsing fails, the return value is `None`. :param value: a string consisting
src/werkzeug/http.py:992
Functionparse_cookie
Parse a cookie from a string or WSGI environ. The same key can be provided multiple times, the values are stored in-order. The default :class
src/werkzeug/http.py:1133
Methodparse_multipart
(stream, boundary, content_length)
tests/test_formparser.py:398
Methodpassword
The password if it was part of the URL, `None` otherwise. This undergoes URL decoding and will always be a string.
src/werkzeug/urls.py:129
Methodpassword
When the authentication type is basic this is the password transmitted by the client, else `None`.
src/werkzeug/datastructures.py:2655
Methodpattern
(self)
tests/conftest.py:111
Functionpeek_path_info
Returns the next segment on the `PATH_INFO` or `None` if there is none. Works like :func:`pop_path_info` without modifying the environment:
src/werkzeug/wsgi.py:307
Methodpin
(self)
src/werkzeug/debug/__init__.py:300
Methodpin_cookie_name
The name of the pin cookie.
src/werkzeug/debug/__init__.py:311
Methodpop
(self, index=-1)
src/werkzeug/datastructures.py:81
Methodpop
(self, key, default=None)
src/werkzeug/datastructures.py:137
Methodpop
(self, key, default=_missing)
src/werkzeug/datastructures.py:213
Methodpop
Pop the first item for a list on the dict. Afterwards the key is removed from the dict, so additional values are discarded: >>> d =
src/werkzeug/datastructures.py:555
Methodpop
(self, key=None, default=_missing)
src/werkzeug/datastructures.py:1341
Functionpop_path_info
Removes and returns the next segment of `PATH_INFO`, pushing it onto `SCRIPT_NAME`. Returns `None` if there is nothing left on `PATH_INFO`.
src/werkzeug/wsgi.py:240
Methodpopitem
(self)
src/werkzeug/datastructures.py:140
Methodpopitem
Pop an item from the dict.
src/werkzeug/datastructures.py:582
Methodpopitem
(self)
src/werkzeug/datastructures.py:811
Methodpopitem
(self)
src/werkzeug/datastructures.py:1344
Methodpopitemlist
(self)
src/werkzeug/datastructures.py:170
Methodpopitemlist
(self)
src/werkzeug/datastructures.py:822
Methodpoplist
(self, key)
src/werkzeug/datastructures.py:173
Methodport
The port in the URL as an integer if it was present, `None` otherwise. This does not fill in default ports.
src/werkzeug/urls.py:92
Methodpragma
The Pragma general-header field is used to include implementation-specific directives that might apply to any recipient along the requ
src/werkzeug/sansio/request.py:370
Methodprevious
Return the URL for the previous page.
examples/couchy/utils.py:89
Methodprevious
Return the URL for the previous page.
examples/plnt/utils.py:135
Methodprevious
(self)
examples/simplewiki/utils.py:128
Methodprevious
Return the URL for the previous page.
examples/shorty/utils.py:99
Methodprocess
(self)
examples/cupoftee/pages.py:24
Methodprocess
(self, id)
examples/cupoftee/pages.py:51
Methodprocess
(self)
examples/cupoftee/pages.py:61
Methodprop
(self)
tests/test_utils.py:83
Functionproxy
(self: "DebugReprGenerator", obj: t.Iterable, recursive: bool)
src/werkzeug/debug/repr.py:101
Methodqop
Indicates what "quality of protection" the client has applied to the message for HTTP digest auth. Note that this is a single token, n
src/werkzeug/datastructures.py:2712
Methodquery_string
The query string. If you set this to a string :attr:`args` will no longer be available.
src/werkzeug/test.py:664
Functionquote
(string: bytes)
src/werkzeug/urls.py:533
Functionr_op
(obj: t.Any, other: t.Any)
src/werkzeug/local.py:372
Methodrange
The parsed `Range` header. .. versionadded:: 0.7 :rtype: :class:`~werkzeug.datastructures.Range`
src/werkzeug/sansio/request.py:470
Methodraw_password
The password if it was part of the URL, `None` otherwise. Unlike :attr:`password` this one is not being decoded.
src/werkzeug/urls.py:139
Methodraw_username
The username if it was part of the URL, `None` otherwise. Unlike :attr:`username` this one is not being decoded.
src/werkzeug/urls.py:122
Methodread
Return one byte at a time regardless of requested size.
tests/test_wsgi.py:191
Methodreadable
(self)
src/werkzeug/wsgi.py:1057
Methodreadable
(self)
src/werkzeug/serving.py:94
Methodreadinto
(self, buf: bytearray)
src/werkzeug/serving.py:107
Methodreadline
(self, *args: t.Any)
src/werkzeug/middleware/lint.py:68
Methodreadline
(self, size=-1)
tests/test_wrappers.py:462
Methodrealm
This is the server realm sent back for HTTP digest auth.
src/werkzeug/datastructures.py:2662
Functionrecent_changes
Display the recent changes.
examples/simplewiki/specialpages.py:20
Functionredirect_loop_app
(environ, start_response)
tests/test_test.py:34
Functionredirect_with_get_app
(environ, start_response)
tests/test_test.py:39
Methodrefresh
Rebinds and refreshes the URL. Call this if you modified the rule in place. :internal:
src/werkzeug/routing/rules.py:537
Methodremove
(self, item)
src/werkzeug/datastructures.py:72
Methodremove
(self, key)
src/werkzeug/datastructures.py:1329
Functionremove_hop_by_hop_headers
Remove all HTTP/1.1 "Hop-by-Hop" headers from a list or :class:`Headers` object. This operation works in-place. .. versionadded:: 0.5 :
src/werkzeug/http.py:1096
Methodrender_line
(line: str, cls: str)
src/werkzeug/debug/tbtools.py:388
Functionrequest_demo_app
(request)
tests/test_wrappers.py:37
Functionreset_context_vars
()
tests/test_local.py:21
Functionresponder
Marks a function as responder. Decorate a function with it and it will automatically call the return value as WSGI application. Example::
src/werkzeug/wsgi.py:25
Methodretry_after
The Retry-After response-header field can be used with a 503 (Service Unavailable) response to indicate how long the service is expect
src/werkzeug/sansio/response.py:424
Methodroot_url
The request URL scheme, host, and root path. This is the root that the application is accessed from.
src/werkzeug/sansio/request.py:226
Methodrun
(self)
src/werkzeug/_reloader.py:354
Methodrun_step
(self)
src/werkzeug/_reloader.py:287
Methodrun_wsgi
(self)
src/werkzeug/serving.py:237
Methodrunapp
()
src/werkzeug/middleware/profiler.py:102
Methodruncode
(self, code: CodeType)
src/werkzeug/debug/console.py:178
Functionrunserver
Start a new development server.
examples/manage-coolmagic.py:20
Functionrunserver
Start a new development server.
examples/manage-i18nurls.py:20
Functionrunserver
Start a new development server.
examples/manage-couchy.py:38
Functionrunserver
Start a new development server.
examples/manage-simplewiki.py:41
Functionrunserver
Start a new development server.
examples/manage-plnt.py:78
Functionrunserver
Start a new development server.
examples/manage-shorty.py:40
Functionrunserver
Start a new development server.
examples/manage-cupoftee.py:33
Functionrunserver
Start a new development server.
examples/manage-webpylike.py:25
Methodscript_root
Alias for :attr:`self.root_path`. ``environ["SCRIPT_ROOT"]`` without a trailing slash.
src/werkzeug/wrappers/request.py:492
Functionsecure_filename
r"""Pass it a filename and it will return a secure version of it. This filename can then safely be stored on a regular file system and passed
src/werkzeug/utils.py:197
Methodseek
(self, n: int, mode: int = 0)
src/werkzeug/debug/console.py:35
Methodserver_name
The server name (read-only, use :attr:`host` to set)
src/werkzeug/test.py:694
Methodserver_port
The server port as integer (read-only, use :attr:`host` to set)
src/werkzeug/test.py:699
Methodserver_version
(self)
src/werkzeug/serving.py:154
Methodset
(self, _key, _value, **kw)
src/werkzeug/datastructures.py:1317
Methodsetdefault
(self, key, default=None)
src/werkzeug/datastructures.py:131
Methodsetdefault
(self, key, default=None)
src/werkzeug/datastructures.py:206
Methodsetdefault
Returns the value for the key if it is in the dict, otherwise it returns `default` and sets that value for `key`. :param key: The key
src/werkzeug/datastructures.py:439
Methodsetdefault
(self, key, default)
src/werkzeug/datastructures.py:1347
Methodsetlist
(self, key, new_list)
src/werkzeug/datastructures.py:176
Methodsetlist
Remove the old values for a key and add new ones. Note that the list you pass the values in will be shallow-copied before it is inserted in
src/werkzeug/datastructures.py:421
Methodsetlist
(self, key, new_list)
src/werkzeug/datastructures.py:779
Methodsetlist
(self, key, values)
src/werkzeug/datastructures.py:1320
Methodsetlistdefault
(self, key, default_list=None)
src/werkzeug/datastructures.py:179
Methodsetlistdefault
Like `setdefault` but sets multiple values. The list returned is not a copy, but the list that is actually used internally. This mea
src/werkzeug/datastructures.py:453
Methodsetlistdefault
(self, key, default_list=None)
src/werkzeug/datastructures.py:784
Methodsetlistdefault
(self, key, default)
src/werkzeug/datastructures.py:1350
← previousnext →1,301–1,400 of 2,000, ranked by callers