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)
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.8.tar.gz
(3.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file yopass_api-0.0.8.tar.gz.
File metadata
- Download URL: yopass_api-0.0.8.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/1.4.2 CPython/3.11.3 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5af30b4a654891f88c27fe70c0f3e343c12c771a2fe892acbee758c137f20664
|
|
| MD5 |
b885ebc1e2b13646a4a1f9cb5eee5af6
|
|
| BLAKE2b-256 |
0d49164679c7f5dd7ca67f4173daca6fa2ebb952dc650f60eee88ed48687ad14
|
File details
Details for the file yopass_api-0.0.8-py3-none-any.whl.
File metadata
- Download URL: yopass_api-0.0.8-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/1.4.2 CPython/3.11.3 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9395ac6e076e0cd9ad8c53da7e5959b2d16121ecfcbe632635b5ef09fdac722
|
|
| MD5 |
dbce365106aa102c21c48145a084f459
|
|
| BLAKE2b-256 |
cc54e90276756e3c70e0da6feda3215651ec7ebec969e9f8c9ddef2297955ea1
|