Skip to main content

No project description provided

Project description

Passwords Package

A package to interface with the Passwordstate API to retrieve passwords.

Setup

Install dependencies in requirements.txt

Initialize an object with the api base url and the api key:

  • api_base_url (str): the base url of the Passwordstate api
  • api_key (str): the api secret key
api_base_url = "https://passwords.mydomain.com"
api_key = "123mykey789"
pw_lookup = passwords.PasswordstateLookup(
    api_base_url,
    api_key
)

Usage

Use the object's methods to find passwords. eg:

pw_lookup.get_pw_by_title(5678, "my_password_title")
# returns the password with the given title in the given password list, as a string

or

pw_lookup.get_pw(1234)
# returns the password with id 1234 as a string

or

pw_lookup.get_pw_list(5678)
# returns a list of dictionaries including passwords for the password list with id 5678

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

password_state_client-0.0.1.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distribution

password_state_client-0.0.1-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page