Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SolSaviour/INFO1112-Materials
/ functions
Functions
341 in github.com/SolSaviour/INFO1112-Materials
⨍
Functions
341
◇
Types & classes
68
↳
Endpoints
5
↓ 56 callers
Method
get
Equals :meth:`route`.
Week 6/server.py:933
↓ 40 callers
Method
append
Add a new value to the list of values for this key.
Week 6/server.py:2168
↓ 27 callers
Method
update
If the first parameter is a string, all keys are prefixed with this namespace. Apart from that it works just as the usual dict.update().
Week 6/server.py:2442
↓ 19 callers
Function
tob
(s, enc='utf8')
Week 6/server.py:161
↓ 18 callers
Function
_hkey
(key)
Week 6/server.py:1603
↓ 18 callers
Method
setdefault
(self, key, value)
Week 6/server.py:2456
↓ 17 callers
Function
depr
(major, minor, cause, fix)
Week 6/server.py:188
↓ 17 callers
Method
replace
Replace the list of values with a single value.
Week 6/server.py:2172
↓ 14 callers
Method
items
(self)
Week 6/server.py:2117
↓ 12 callers
Function
make_default_app_wrapper
Return a callable that relays calls to the current default app.
Week 6/server.py:3172
↓ 10 callers
Method
copy
Return a new :class:`Request` with a shallow :attr:`environ` copy.
Week 6/server.py:1536
↓ 10 callers
Method
decode
Returns a copy with all keys and values de- or recoded to match :attr:`input_encoding`. Some libraries (e.g. WTForms) want a
Week 6/server.py:2207
↓ 10 callers
Method
run
Calls :func:`run` with the same parameters.
Week 6/server.py:860
↓ 7 callers
Function
_hval
(value)
Week 6/server.py:1609
↓ 7 callers
Function
makelist
(data)
Week 6/server.py:198
↓ 7 callers
Method
route
A decorator to bind a function to a request URL. Example:: @app.route('/hello/<name>') def hello(name):
Week 6/server.py:883
↓ 7 callers
Function
touni
(s, enc='utf8', err='strict')
Week 6/server.py:167
↓ 6 callers
Function
_local_property
()
Week 6/server.py:1903
↓ 6 callers
Method
apply
(self, callback, route)
Week 6/server.py:2001
↓ 6 callers
Function
load
Import a module or fetch an object from a module. * ``package.module`` returns `module` as a module object. * ``pack.mod:name`` retu
Week 6/server.py:3595
↓ 5 callers
Method
add
Add a new rule or replace the target for an existing rule.
Week 6/server.py:372
↓ 5 callers
Method
allitems
(self)
Week 6/server.py:2120
↓ 5 callers
Method
close
Close the application and all installed plugins.
Week 6/server.py:855
↓ 4 callers
Function
_cli_error
(cli_msg)
Week 6/server.py:4366
↓ 4 callers
Method
_define
(Unstable) Shortcut for plugins to define own config parameters.
Week 6/server.py:2540
↓ 4 callers
Method
_iter_overlays
(self)
Week 6/server.py:2549
↓ 4 callers
Method
_mount_wsgi
(self, prefix, app, **options)
Week 6/server.py:717
↓ 4 callers
Method
_on_change
(self, key, value)
Week 6/server.py:2519
↓ 4 callers
Method
add_header
Add an additional response header, not removing duplicates.
Week 6/server.py:1762
↓ 4 callers
Function
html_escape
Escape HTML special characters ``&<>`` and quotes ``'"``.
Week 6/server.py:3086
↓ 4 callers
Function
run
Start a server instance. This method blocks until the server terminates. :param app: WSGI application or target string supported by
Week 6/server.py:3633
↓ 4 callers
Method
search
Search name in all directories specified in lookup. First without, then with common extensions. Return first hit.
Week 6/server.py:3826
↓ 3 callers
Method
__delitem__
(self, key)
Week 6/server.py:2100
↓ 3 callers
Method
__init__
(self, app, rule, method, callback, name=None, plugins=None,
Week 6/server.py:516
↓ 3 callers
Method
_ekey
Translate header field name to CGI/WSGI environ key.
Week 6/server.py:2286
↓ 3 callers
Method
_fix
(self, s, encoding=None)
Week 6/server.py:2199
↓ 3 callers
Method
_set_virtual
Recursively set or update virtual keys. Do nothing if non-virtual value is present.
Week 6/server.py:2493
↓ 3 callers
Method
add_route
Add a route object, but do not change the :data:`Route.app` attribute.
Week 6/server.py:876
↓ 3 callers
Method
install
Add a plugin to the list of plugins and prepare it for being applied to all routes of this application. A plugin may be a simple
Week 6/server.py:814
↓ 3 callers
Method
load_dict
Load values from a dictionary structure. Nesting can be used to represent namespaces. >>> c = ConfigDict() >>> c
Week 6/server.py:2423
↓ 3 callers
Method
meta_set
Set the meta field for a key to a new value.
Week 6/server.py:2532
↓ 3 callers
Method
prepare
Do all on-demand work immediately (useful for debugging).
Week 6/server.py:551
↓ 3 callers
Method
push
Add a new :class:`Bottle` instance to the stack
Week 6/server.py:2600
↓ 3 callers
Method
render
Render the template with the specified local variables and return a single byte or unicode string. If it is a byte string, the encoding
Week 6/server.py:3861
↓ 3 callers
Function
template
Get a rendered template as a string iterator. You can use a name, a filename or a template string as first parameter. Template rendering
Week 6/server.py:4214
↓ 3 callers
Method
trigger_hook
Trigger a hook and return a list of results.
Week 6/server.py:703
↓ 3 callers
Method
values
(self)
Week 6/server.py:2114
↓ 3 callers
Method
write_code
(self, line, comment='')
Week 6/server.py:4208
↓ 2 callers
Method
__setitem__
(self, key, value)
Week 6/server.py:2106
↓ 2 callers
Function
_cli_parse
(args)
Week 6/server.py:30
↓ 2 callers
Method
_copy_file
(self, fp, chunk_size=2 ** 16)
Week 6/server.py:2771
↓ 2 callers
Method
_get_body_string
read body until content-length or MEMFILE_MAX into a string. Raise HTTPError(413) on requests that are to large.
Week 6/server.py:1357
↓ 2 callers
Function
_lscmp
Compares two strings in a cryptographically safe way: Runtime is not affected by length of common prefix.
Week 6/server.py:3048
↓ 2 callers
Method
_make_overlay
(Unstable) Create a new overlay that acts like a chained map: Values missing in the overlay are copied from the source map. Both maps
Week 6/server.py:2555
↓ 2 callers
Function
_parse_qsl
(qs)
Week 6/server.py:3036
↓ 2 callers
Function
_re_flatten
Turn all capturing groups in a regular expression pattern into non-capturing groups.
Week 6/server.py:296
↓ 2 callers
Method
build
Build an URL by filling the wildcards in a rule.
Week 6/server.py:457
↓ 2 callers
Function
decorator
(func)
Week 6/server.py:3153
↓ 2 callers
Method
execute
(self, _stdout, kwargs)
Week 6/server.py:3985
↓ 2 callers
Method
flush_text
(self)
Week 6/server.py:4182
↓ 2 callers
Method
get_undecorated_callback
Return the callback. If the callback is a decorated function, try to recover the original function.
Week 6/server.py:580
↓ 2 callers
Function
getargspec
(func)
Week 6/server.py:90
↓ 2 callers
Method
iteritems
(self)
Week 6/server.py:2142
↓ 2 callers
Method
keys
(self)
Week 6/server.py:2109
↓ 2 callers
Method
match
Return a (target, url_args) tuple or raise HTTPError(400/404/405).
Week 6/server.py:470
↓ 2 callers
Function
parse_date
Parse rfc1123, rfc850 and asctime timestamps and return UTC epoch.
Week 6/server.py:2961
↓ 2 callers
Method
path_shift
Shift path segments from :attr:`path` to :attr:`script_name` and vice versa. :param shift: The number of path segments to shi
Week 6/server.py:1469
↓ 2 callers
Method
reset
Forget any cached values. The next time :attr:`call` is accessed, all plugins are re-applied.
Week 6/server.py:546
↓ 2 callers
Method
reset
Reset all routes (force plugins to be re-applied) and clear all caches. If an ID or route object is given, only that specific route
Week 6/server.py:841
↓ 2 callers
Function
update_wrapper
(wrapper, wrapped, *a, **ka)
Week 6/server.py:178
↓ 2 callers
Function
view
Decorator: renders a template for a handler. The handler can control its behavior like that: - return a dict of template vars to f
Week 6/server.py:4247
↓ 1 callers
Method
__get__
(self, obj, cls)
Week 6/server.py:218
↓ 1 callers
Method
__setattr__
(self, name, value)
Week 6/server.py:1139
↓ 1 callers
Method
_add_change_listener
(self, func)
Week 6/server.py:2524
↓ 1 callers
Method
_cast
Try to convert the parameter into something WSGI compatible and set correct HTTP headers when possible. Support: False, str, unicode,
Week 6/server.py:1027
↓ 1 callers
Function
_cli_patch
(cli_args)
Week 6/server.py:52
↓ 1 callers
Method
_compile
(self, method)
Week 6/server.py:445
↓ 1 callers
Method
_delete_virtual
Recursively delete virtual entry. Do nothing if key is not virtual.
Week 6/server.py:2506
↓ 1 callers
Function
_file_iter_range
Yield chunks from a range in a file, optionally closing it at the end. No chunk is bigger than maxread.
Week 6/server.py:2820
↓ 1 callers
Method
_handle
(self, environ)
Week 6/server.py:978
↓ 1 callers
Method
_include
(self, _env, _name=None, **kwargs)
Week 6/server.py:3978
↓ 1 callers
Method
_itertokens
(self, rule)
Week 6/server.py:352
↓ 1 callers
Method
_make_callback
(self)
Week 6/server.py:566
↓ 1 callers
Method
_mount_app
(self, prefix, app, **options)
Week 6/server.py:751
↓ 1 callers
Function
_raise
(*a)
Week 6/server.py:143
↓ 1 callers
Function
abort
Aborts execution and causes a HTTP error.
Week 6/server.py:2803
↓ 1 callers
Method
add_hook
Attach a callback to a hook. Three hooks are currently implemented: before_request Executed once before each request. Th
Week 6/server.py:681
↓ 1 callers
Method
all_plugins
Yield all Plugins affecting this route.
Week 6/server.py:555
↓ 1 callers
Method
call
The route callback with all plugins applied. This property is created on demand and then cached to speed up subsequent requests.
Week 6/server.py:541
↓ 1 callers
Function
compile_inst
(inst)
Week 5/programs/compiler.py:6
↓ 1 callers
Function
cookie_is_encoded
Return True if the argument looks like a encoded cookie.
Week 6/server.py:3079
↓ 1 callers
Function
decompile_inst
Inst is a byte of information where 6 bits are opcodes and 2 bits are reg addrs
Week 5/programs/decompiler.py:3
↓ 1 callers
Function
fork_and_run
()
Week 3/programs/another_fork_example.py:4
↓ 1 callers
Method
get_event_loop
(self)
Week 6/server.py:3518
↓ 1 callers
Method
get_header
Return the value of a header within the mulripart part.
Week 6/server.py:2747
↓ 1 callers
Method
getunicode
Return the value as a unicode string, or the default.
Week 6/server.py:2218
↓ 1 callers
Function
http_date
(value)
Week 6/server.py:2951
↓ 1 callers
Method
keys
(self)
Week 6/server.py:2319
↓ 1 callers
Function
load_app
Load a bottle application from a module and make sure that the import does not affect the current default application, but returns a separate
Week 6/server.py:3615
↓ 1 callers
Method
load_config
Load values from an ``*.ini`` style config file. A configuration file consists of sections, each led by a ``[section]`` head
Week 6/server.py:2380
next →
1–100 of 341, ranked by callers