pycontacts package

Submodules

pycontacts.configs module

All configurations for pycontacts

class pycontacts.configs.ConfigAuthFiles[source]

Bases: Config

Parameters for authentication files

client_secret = '/home/runner/.config/pycontacts/client_secret.json'
token = '/home/runner/.config/pycontacts/token.pickle'
class pycontacts.configs.ConfigFix[source]

Bases: Config

Parameters about fixing data in the database

doit = True

pycontacts.main module

main

pycontacts.main.dump_contacts() → None[source]
pycontacts.main.fix_phones()[source]
pycontacts.main.get_summary(entry) → None | str[source]
pycontacts.main.get_token()[source]
pycontacts.main.is_bad_phone(entry, number) → bool[source]
pycontacts.main.is_special_phone(entry, number) → bool[source]
pycontacts.main.main()[source]
pycontacts.main.show_bad_phones()[source]
pycontacts.main.unfilled_contact(entry: ContactEntry) → bool[source]

A contact which is unfilled is one which does not have neither name or family name :param entry: :return:

pycontacts.main.unfilled_contacts_delete()[source]
pycontacts.main.unfilled_contacts_show()[source]
pycontacts.main.yield_all_entries(contacts_client) → Generator[ContactEntry][source]

pycontacts.static module

version which can be consumed from within the module

pycontacts.utils module

This is a generic object dumper for debugging purposes. Its funny I have not found a good implementation of this… See the links for discussions of this topic.

References: - https://stackoverflow.com/questions/192109/ is-there-a-built-in-function-to-print-all-the-current-properties-and-values-of-a - https://gist.github.com/passos/1071857

pycontacts.utils.dump(obj) → None[source]
pycontacts.utils.flat_dump(obj) → None[source]

Dump object to stdout. Only dumps the immediate members of the object :param obj:

pycontacts.utils.object_to_members_or_string(obj)[source]

Module contents

Initialize the module