Welcome to eitparser’s documentation!

eit package

Submodules

eit.EitSupport module

class eit.EitSupport.EitList(path=None)[source]

Bases: object

EIT_EXTENDED_EVENT_DESCRIPOR = 78
EIT_SHORT_EVENT_DESCRIPTOR = 77
getEitDate()[source]
getEitDescription()[source]
getEitDuration()[source]
getEitExtendedDescription()[source]
getEitLengthInSeconds()[source]
getEitName()[source]
getEitShortDescription()[source]
getEitStartDate()[source]
getEitStartTime()[source]
getEitTsId()[source]
getEitWhen()[source]
getEitsid()[source]
eit.EitSupport.emcDebugOut(msg)[source]
eit.EitSupport.language_iso639_2to3(alpha2)[source]
eit.EitSupport.parseMJD(MJD)[source]
eit.EitSupport.unBCD(byte)[source]

eit.eitparser module

class eit.eitparser.Bytes[source]

Bases: object

append(b)[source]
static join(blist)[source]

join the list of bytes

strip()[source]

strip me

toString()[source]
class eit.eitparser.EitList(path=None, debug=False)[source]

Bases: object

EIT_EXTENDED_EVENT_DESCRIPOR = 78
EIT_SHORT_EVENT_DESCRIPTOR = 77
getEitDate()[source]
getEitDescription()[source]
getEitDuration()[source]
getEitExtendedDescription()[source]
getEitLengthInSeconds()[source]
getEitName()[source]
getEitShortDescription()[source]
getEitStartDate()[source]
getEitStartTime()[source]
getEitTsId()[source]
getEitWhen()[source]
getEitsid()[source]
log(msg)[source]
static readeit(eitroot, debug=False)[source]
static readeitFile(eitfile, debug=False)[source]
class eit.eitparser.Event(eitList, name)[source]

Bases: object

appendDescription(lang, ISO_639_language_code, prev1_ISO_639_language_code, delim='\n\n')[source]
fixEncoding()[source]
joinDescriptor()[source]
log(msg)[source]
readCodepage(data, ofs)[source]
readDescription(data, ofsStart, ofsEnd=None)[source]

read my description from the given offset

static readLanguageCode(data, ofs)[source]

read the language code from the given offset in the data

eit.eitparser.bord(b)[source]

binary ord - just for code compatibility

eit.eitparser.language_iso639_2to3(alpha2)[source]
eit.eitparser.main()[source]
eit.eitparser.parseMJD(MJD)[source]
eit.eitparser.unBCD(byte)[source]

Module contents

setup module

tests package

Submodules

tests.test_eit module

Created on 2020-11-09

@author: wf

class tests.test_eit.TestEitParser(methodName='runTest')[source]

Bases: unittest.case.TestCase

test the standalone EIT Parser

setUp()[source]

Hook method for setting up the test fixture before exercising it.

tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

testEitParser()[source]

test the Event Information Table parser

Module contents

Indices and tables