pycape.token module#

class pycape.token.Token(token)[source]#

Bases: object

A Cape Personal Access Token (PAT).

See https://docs.capeprivacy.com/reference/user-tokens for more info.

Parameters:

token (str) – String representing the Personal Access Token.

classmethod from_disk(location)[source]#

Load a PAT from location.

property raw#
to_disk(location)[source]#

Write the PAT to location.

property token#