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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for password_state_client-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9372b54da29ed7a3ddd84e60bb8cd9cf482e9b80a157bd7f854a20682cb0282 |
|
MD5 | 127f7405f368872b019eec6ad7faba6a |
|
BLAKE2b-256 | b65d7ccc1daa33cad714e7bbfa04f94169d7074fd7932fec1821c132eb5b045d |
Close
Hashes for password_state_client-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76e150c436b34083d0a5825ece87891a632bd8f4fe9b3df43f6a956b5eb5487b |
|
MD5 | e15597ae7403a56fd8504e58b28647c3 |
|
BLAKE2b-256 | 73600e31e13ea74433dc2c7d92bb775d86aec7b2e10d6d24a1883700b9ff0bd3 |