synapse.lookup package

Submodules

synapse.lookup.cvss module

synapse.lookup.iana module

synapse.lookup.iso3166 module

Provides data for the ISO 3166-1 Country codes.

Reference:

https://en.wikipedia.org/wiki/ISO_3166

synapse.lookup.iso3166.makeColLook(rows, scol, dcol)[source]

synapse.lookup.macho module

synapse.lookup.macho.getLoadCmdTypes()[source]
synapse.lookup.macho.getSectionTypes()[source]

synapse.lookup.pe module

synapse.lookup.pe.getLangCodes()[source]
synapse.lookup.pe.getRsrcTypes()[source]

synapse.lookup.phonenum module

synapse.lookup.phonenum.formPhoneNode(node, valu)[source]
synapse.lookup.phonenum.getPhoneInfo(numb)[source]

Walk the phone info tree to find the best-match info for the given number.

Example

info = getPhoneInfo(17035551212) country = info.get(‘cc’)

synapse.lookup.phonenum.initPhoneTree()[source]
synapse.lookup.phonenum.phnode(valu)[source]

synapse.lookup.timezones module

Timezones are defined per RFC822 5.1 (plus GMT and UTC), with values representing offsets from UTC in milliseconds.

synapse.lookup.timezones.getTzNames()[source]

Return a tuple of all supported timezone names.

synapse.lookup.timezones.getTzOffset(name, defval=None)[source]

Return tuple of the UTC offset in milliseconds and an info dict.