status Package

status Package

class hanyuu.status.Base[source]

Bases: object

Simple base class that sets the attribute :attr:cache to a :class:memcache.Client ready to be used.

cache[source]
class hanyuu.status.Site[source]

Bases: hanyuu.status.Base

Object that encapsulates state of the website.

dj[source]

Returns the current DJ that is live.

Returns a abstractions.users.DJ object.

thread[source]

Returns the current thread URL.

Returns a unicode string or None

class hanyuu.status.Stream[source]

Bases: hanyuu.status.Base

Wrapping class around the memcache server and variables relevant to the status of the streaming server.

current[source]

Gets the current song metadata playing on the master server.

Returns a unicode object.

listeners[source]

Returns the total amount of listeners as an integer.

This is the listeners combined from all relay servers.

online[source]

Returns if the master server is online or not.

Returns a boolean type.

peak_listeners[source]
class hanyuu.status.Streamer[source]

Bases: hanyuu.status.Base

Object that encapsulates state of the AFK streamer.

requests_enabled[source]

Returns a bool indicating if the AFK streamer accepts requests.

This is False if either Requests got disabled explicitely or the AFK streamer is not streaming at the moment.

hanyuu.status.memcache_client()[source]

Returns a pylibmc.Client object.

streamstatus Module

Project Versions

Table Of Contents

Previous topic

servers Package

Next topic

streamer Package

This Page