poku package

Submodules

poku.buku module

buku specific functions

poku.buku.item_to_dict(b_item)[source]

convert buku item to universal dict

poku.buku.tags_to_tagstring(tag_list)[source]

convert list of tags to tagstring

poku.exceptions module

Custom Exceptions

exception poku.exceptions.PocketGetAccessTokenException[source]

Bases: Exception

Raise when pocket access token request fails

exception poku.exceptions.PocketGetItemsException[source]

Bases: Exception

Raise when pocket item pull fails

exception poku.exceptions.PocketGetRequestTokenException[source]

Bases: Exception

Raise when pocket request token request fails

poku.pocket module

Pocket specific utils

poku.pocket.generate_auth_url(request_token)[source]

return auth url for user to authorize application

poku.pocket.get_access_token(consumer_key, request_token)[source]

get access token from api

poku.pocket.get_items(consumer_key, access_token)[source]

get a list pocket items from api

poku.pocket.get_request_token(consumer_key)[source]

get request token from api

poku.pocket.item_to_dict(p_item)[source]

convert pocket item to universal dict

poku.poku module

Main module.

poku.poku.main()[source]
poku.poku.parse_args(args)[source]

parse arguments using configargparse module

poku.utils module

General util functions

poku.utils.dict_list_difference(l1, l2)[source]

return items in l1 but not in l2

poku.utils.dict_list_ensure_unique(item_list)[source]

ensure all items in list have a unique url (newer wins)

poku.utils.sort_dict_items(item_list)[source]

sort list of dict items based on update time

Module contents

Top-level package for poku.