Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(10) | Call(2) | Derive(0) | Import(8)
Describes a file event. Avoid to use watchdog event to have relpaths instead of fullpaths. In addition, if watchdog is replaced by another library, the rest of the code will not need to change.
src/b/a/baboon-0.1.4/baboon/common/stanza/rsync.py baboon(Download)
from sleekxmpp.xmlstream import register_stanza_plugin, ElementBase, ET from sleekxmpp import Iq from baboon.common.file import FileEvent
file_event_type = FileEvent.DELETE file_event = FileEvent(self['node'], file_event_type, element.text) files.append(file_event)
src/b/a/baboon-HEAD/baboon/common/stanza/rsync.py baboon(Download)
from sleekxmpp.xmlstream import register_stanza_plugin, ElementBase, ET from sleekxmpp import Iq from baboon.common.file import FileEvent
file_event_type = FileEvent.DELETE file_event = FileEvent(self['node'], file_event_type, element.text) files.append(file_event)
src/b/a/baboon-0.1.4/baboon/baboon/monitor.py baboon(Download)
from baboon.baboon.config import config from baboon.common.file import FileEvent, pending from baboon.common.eventbus import eventbus from baboon.common.logger import logger
src/b/a/baboon-HEAD/baboon/baboon/monitor.py baboon(Download)
from baboon.baboon.config import config from baboon.common.file import FileEvent, pending from baboon.common.eventbus import eventbus from baboon.common.logger import logger
src/b/a/baboon-0.1.4/baboon/baboond/task.py baboon(Download)
from baboon.common.utils import exec_cmd from baboon.common.eventbus import eventbus from baboon.common.file import FileEvent from baboon.common.logger import logger from baboon.common.errors.baboon_exception import BaboonException
src/b/a/baboon-0.1.4/baboon/baboon/initializor.py baboon(Download)
from baboon.baboon.config import config from baboon.common.file import FileEvent from baboon.common.eventbus import eventbus from baboon.common.logger import logger
src/b/a/baboon-HEAD/baboon/baboond/task.py baboon(Download)
from baboon.common.utils import exec_cmd from baboon.common.eventbus import eventbus from baboon.common.file import FileEvent from baboon.common.logger import logger from baboon.common.errors.baboon_exception import BaboonException
src/b/a/baboon-HEAD/baboon/baboon/initializor.py baboon(Download)
from baboon.baboon.config import config from baboon.common.file import FileEvent from baboon.common.eventbus import eventbus from baboon.common.logger import logger