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

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/s/p/Spacelog-HEAD/backend/indexer.py   Spacelog(Download)
from django.utils.html import strip_tags
 
from backend.parser import TranscriptParser, MetaParser
from backend.api import Act, KeyScene, Character, Glossary, LogLine
from backend.util import seconds_to_timestamp
                print "Indexing %s..." % filename
                path = os.path.join(self.folder_path, filename)
                parser = TranscriptParser(path)
                indexer = TranscriptIndexer(self.redis_conn, self.mission_name, "%s/%s" % (self.mission_name, filename), parser)
                indexer.index()

src/s/p/Spacelog-HEAD/backend/reformat.py   Spacelog(Download)
 
import sys
from backend.parser import TranscriptParser
from backend.util import seconds_to_timestamp
 
def reformat(filename):
    parser = TranscriptParser(filename)