code stringlengths 3 6.57k |
|---|
AttributeError("Read-Only property.") |
getattr(obj, self.attr) |
cached_property(object) |
__init__(self, func) |
getattr(func, '__doc__') |
__get__(self, obj, cls) |
self.func(obj) |
lazy_attribute(object) |
__init__(self, func) |
functools.update_wrapper(self, func, updated=[]) |
__get__(self, obj, cls) |
self.getter(cls) |
setattr(cls, self.__name__, value) |
BottleException(Exception) |
RouteError(BottleException) |
RouteReset(BottleException) |
RouterUnknownModeError(RouteError) |
RouteSyntaxError(RouteError) |
RouteBuildError(RouteError) |
_re_flatten(p) |
re.sub(r'(\\*) |
m.group(0) |
len(m.group(1) |
m.group(1) |
Router(object) |
path (e.g. `/contact`) |
wildcards (e.g. `/wiki/<page>`) |
__init__(self, strict=False) |
_re_flatten(conf or self.default_pattern) |
str(int(x) |
str(float(x) |
add_filter(self, name, func) |
a (regexp, to_python, to_url) |
re.compile('(\\\\*) |
_itertokens(self, rule) |
self.rule_syntax.finditer(rule) |
match.start() |
match.groups() |
len(g[0]) |
match.group(0) |
len(g[0]) |
match.end() |
match.end() |
len(rule) |
add(self, rule, method, target, name=None) |
self._itertokens(rule) |
keys.append(key) |
filters.append((key, in_filter) |
builder.append((key, out_filter or str) |
re.escape(key) |
builder.append((None, key) |
self.static.setdefault(method, {}) |
self.build(rule) |
re.compile('^(%s) |
RouteSyntaxError("Could not add Route: %s (%s) |
_e() |
getargs(path) |
re_match(path) |
groupdict() |
wildcard_filter(url_args[name]) |
HTTPError(400, 'Path has wrong format.') |
getargs(path) |
re_match(path) |
groupdict() |
_re_flatten(pattern) |
if (flatpat, method) |
warnings.warn(msg % (method, rule) |
self.dyna_routes.setdefault(method, []) |
append(whole_rule) |
len(self.dyna_routes[method]) |
self._compile(method) |
_compile(self, method) |
range(0, len(all_rules) |
for (_, flatpat, _, _) |
join('(^%s$) |
re.compile(combined) |
for (_, _, target, getargs) |
comborules.append((combined, rules) |
build(self, _name, *anons, **query) |
self.builder.get(_name) |
RouteBuildError("No route with that name.", _name) |
enumerate(anons) |
join([f(query.pop(n) |
for (n,f) |
urlencode(query) |
RouteBuildError('Missing URL argument: %r' % _e() |
match(self, environ) |
a (target, url_args) |
HTTPError(400/404/405) |
upper() |
getargs(path) |
combined(path) |
getargs(path) |
set([]) |
set(methods) |
set(self.static) |
allowed.add(verb) |
set(self.dyna_regexes) |
combined(path) |
allowed.add(method) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.