Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(51)  |  Call(0)  |  Derive(30)  |  Import(21)
Common parent class for all message plugins, will try to help enforce
the plugin protocol at runtime. 

src/f/l/flashbake-HEAD/src/flashbake/plugins/scrivener.py   flashbake(Download)
by Jason Penney, jasonpenney.net'''
 
from flashbake.plugins import (
    AbstractFilePlugin, AbstractMessagePlugin, PluginError,
    PLUGIN_ERRORS)
class ScrivenerWordcountMessage(AbstractMessagePlugin):
    """ Display Wordcount for Scrivener Files """
 
    def __init__(self, plugin_spec):
        AbstractMessagePlugin.__init__(self, plugin_spec, False)

src/f/l/flashbake-0.27/src/flashbake/plugins/scrivener.py   flashbake(Download)
by Jason Penney, jasonpenney.net'''
 
from flashbake.plugins import (
    AbstractFilePlugin, AbstractMessagePlugin, PluginError,
    PLUGIN_ERRORS)
class ScrivenerWordcountMessage(AbstractMessagePlugin):
    """ Display Wordcount for Scrivener Files """
 
    def __init__(self, plugin_spec):
        AbstractMessagePlugin.__init__(self, plugin_spec, False)

src/f/l/flashbake-HEAD/src/flashbake/plugins/weather.py   flashbake(Download)
 /etc/localtime available to determine city from ISO ID. '''
 
from flashbake.plugins import AbstractMessagePlugin
from flashbake.plugins.timezone import findtimezone
from flashbake.plugins import timezone
class Weather(AbstractMessagePlugin):
    def __init__(self, plugin_spec):
        AbstractMessagePlugin.__init__(self, plugin_spec, True)
        self.define_property('city')
        self.define_property('units', required=False, default='imperial')

src/f/l/flashbake-HEAD/src/flashbake/plugins/music.py   flashbake(Download)
'''  music.py - Plugin for gathering last played tracks from music player. '''
 
from flashbake.plugins import AbstractMessagePlugin
import flashbake
import logging
class Banshee(AbstractMessagePlugin):
    def __init__(self, plugin_spec):
        """ Add an optional property for specifying a different location for the
            Banshee database. """
        AbstractMessagePlugin.__init__(self, plugin_spec)
class iTunes(AbstractMessagePlugin):
    ''' Based on Andrew Heiss' plugin which is MIT licensed which should be compatible. '''
    def __init__(self, plugin_spec):
        AbstractMessagePlugin.__init__(self, plugin_spec)
        self.define_property('osascript')

src/f/l/flashbake-0.27/src/flashbake/plugins/music.py   flashbake(Download)
'''  music.py - Plugin for gathering last played tracks from music player. '''
 
from flashbake.plugins import AbstractMessagePlugin
import flashbake
import logging
class Banshee(AbstractMessagePlugin):
    def __init__(self, plugin_spec):
        """ Add an optional property for specifying a different location for the
            Banshee database. """
        AbstractMessagePlugin.__init__(self, plugin_spec)
class iTunes(AbstractMessagePlugin):
    ''' Based on Andrew Heiss' plugin which is MIT licensed which should be compatible. '''
    def __init__(self, plugin_spec):
        AbstractMessagePlugin.__init__(self, plugin_spec)
        self.define_property('osascript')

src/f/l/flashbake-HEAD/src/flashbake/plugins/uptime.py   flashbake(Download)
'''  uptime.py - Stock plugin to calculate the system's uptime and add to the commit message.'''
 
from flashbake.plugins import AbstractMessagePlugin
from subprocess import Popen, PIPE
import flashbake
class UpTime(AbstractMessagePlugin):
    def addcontext(self, message_file, config):
        """ Add the system's up time to the commit context. """
 
        uptime = self.__calcuptime()

src/f/l/flashbake-HEAD/src/flashbake/plugins/timezone.py   flashbake(Download)
'''  timezone.py - Stock plugin to find the system's time zone add to the commit message.'''
 
from flashbake.plugins import AbstractMessagePlugin
import logging
import os
class TimeZone(AbstractMessagePlugin):
    def __init__(self, plugin_spec):
        AbstractMessagePlugin.__init__(self, plugin_spec, False)
        self.share_property('tz', plugin_spec=PLUGIN_SPEC)
 

src/f/l/flashbake-HEAD/src/flashbake/plugins/microblog.py   flashbake(Download)
'''  microblog.py - microblog plugins by Ben Snider, bensnider.com '''
 
from flashbake.plugins import AbstractMessagePlugin
from urllib2 import HTTPError, URLError
from xml.etree.ElementTree import ElementTree
class Twitter(AbstractMessagePlugin):
    def __init__(self, plugin_spec):
        AbstractMessagePlugin.__init__(self, plugin_spec, True)
        self.service_url = 'http://twitter.com'
        self.optional_field_info = { \

src/f/l/flashbake-HEAD/src/flashbake/plugins/location.py   flashbake(Download)
#    along with flashbake.  If not, see <http://www.gnu.org/licenses/>.
 
from flashbake.plugins import AbstractMessagePlugin
from urllib2 import HTTPError, URLError
from xml.dom import minidom
class Location(AbstractMessagePlugin):
    def __init__(self, plugin_spec):
        AbstractMessagePlugin.__init__(self, plugin_spec, True)
        self.share_property('location_location')
 

src/f/l/flashbake-HEAD/src/flashbake/plugins/lastfm.py   flashbake(Download)
import urllib
import json
from flashbake.plugins import AbstractMessagePlugin
 
 
 
LASTFM = "http://ws.audioscrobbler.com/2.0/?method="
PLUGIN_SPEC = 'flashbake.plugins.lastfm:LastFM'
 
class LastFM(AbstractMessagePlugin):

  1 | 2 | 3  Next