This module will allow you to use Python and Yopass in automation projects
Project description
yopass_api
This is a module to work with a (the) Yopass backend created by Johan Haals. This module will allow you to use Python and self-hosted Yopass in automation projects.
Installing
pip install yopass_api
Basic Example
This is a basic example of store secret, get link and fetch secret:
from yopass_api import Yopass
yopass = Yopass(api="https://api.yopass.se")
secret_password = yopass.generate_passphrase(length=5)
secret_id = yopass.store(
message="test",
password=secret_password,
expiration="1w",
one_time=False,
)
secret_url = yopass.secret_url(secret_id=secret_id, password=secret_password)
print(secret_url)
message = yopass.fetch(secret_id=secret_id, password=secret_password)
print(message)
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
yopass_api-0.0.5.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for yopass_api-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92e24a606fbc56ef02818c47a5782ee2e9b969b228ffeef4234a29a8f73c6762 |
|
MD5 | 03f49ca86bb6f91f782277434caec99c |
|
BLAKE2b-256 | 27ba12b2d489bae3839dc0f0b506c422160868f5eb26162d11a08076475477e1 |