8.2.7.34. Site

class Site(sitemap, host='localhost', port=0, delay=0.1, until=30, run_options=None, idle_timeout=0, url_prefix=None, **kwargs)[source]

Methods

__delattr__

Implement delattr(self, name).

__dir__

Default dir() implementation.

__eq__

Return self==value.

__format__

Default object formatter.

__ge__

Return self>=value.

__getattribute__

Return getattr(self, name).

__getstate__

Helper for pickle.

__gt__

Return self>value.

__hash__

Return hash(self).

__init__

__init_subclass__

This method is called when a class is subclassed.

__le__

Return self<=value.

__lt__

Return self<value.

__ne__

Return self!=value.

__new__

__reduce__

Helper for pickle.

__reduce_ex__

Helper for pickle.

__repr__

Return repr(self).

__setattr__

Implement setattr(self, name, value).

__sizeof__

Size of object in memory, in bytes.

__str__

Return str(self).

__subclasshook__

Abstract classes can override this to customize issubclass().

_repr_html_

alive_view

app

format

get_port

run

shutdown_site

update_last_activity

wait_server

__init__(sitemap, host='localhost', port=0, delay=0.1, until=30, run_options=None, idle_timeout=0, url_prefix=None, **kwargs)[source]

Attributes

__annotations__

__dict__

__doc__

__module__

__weakref__

list of weak references to the object

is_running

url

__init__(sitemap, host='localhost', port=0, delay=0.1, until=30, run_options=None, idle_timeout=0, url_prefix=None, **kwargs)[source]
__repr__()[source]

Return repr(self).

get_port(host=None, port=None, **kw)[source]
format(string)[source]
_repr_html_()[source]
property url
update_last_activity(response=None)[source]
static alive_view()[source]
app()[source]
static shutdown_site(shutdown, subsites)[source]
run(**options)[source]
property is_running
wait_server(elapsed=0)[source]
__annotations__ = {}
__dict__ = mappingproxy({'__module__': 'schedula.utils.drw', '__init__': <function Site.__init__>, '__repr__': <function Site.__repr__>, 'get_port': <function Site.get_port>, 'format': <function Site.format>, '_repr_html_': <function Site._repr_html_>, 'url': <property object>, 'update_last_activity': <function Site.update_last_activity>, 'alive_view': <staticmethod(<function Site.alive_view>)>, 'app': <function Site.app>, 'shutdown_site': <staticmethod(<function Site.shutdown_site>)>, 'run': <function Site.run>, 'is_running': <property object>, 'wait_server': <function Site.wait_server>, '__dict__': <attribute '__dict__' of 'Site' objects>, '__weakref__': <attribute '__weakref__' of 'Site' objects>, '__doc__': None, '__annotations__': {}})
__doc__ = None
__module__ = 'schedula.utils.drw'
__weakref__

list of weak references to the object