Acquire.Client._wallet module

class Wallet[source]

Bases: object

This class holds a wallet that can be used to simplify sending passwords and one-time-password (OTP) codes to an acquire identity service.

This holds a wallet of passwords and (optionally) OTP secrets that are encrypted using a local keypair that is unlocked by a password supplied by the user locally.

By default this will create the wallet in your home directory ($HOME/.acquire_wallet). If you want the wallet to be saved in a different directory, specify that as “wallet_dir”.

get_service(service_url=None, service_uid=None, service_type=None, autofetch=True)[source]

Return the service at either ‘service_url’, or that has UID ‘service_uid’. This will return the cached service if it exists, or will add a new service if we are able to validate it from a trusted registry

get_services()[source]

Return all of the trusted services known to this wallet

remove_all_services()[source]

Remove all trusted services from this Wallet

remove_service(service)[source]

Remove the cached service info for the passed service

send_password(url, username=None, password=None, otpcode=None, remember_password=True, remember_device=None, dryrun=None)[source]

Send a password and one-time code to the supplied login url