synapse.lookup package

Submodules

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.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]