diff options
| author | alex <alex@pdp7.net> | 2026-12-05 22:09:29 +0100 |
|---|---|---|
| committer | alex <alex@pdp7.net> | 2026-12-05 22:09:29 +0100 |
| commit | 23199f5526db9be1d43a900dc8b8674a7babb966 (patch) | |
| tree | a71fb5363998439c2edfada2940fe9ead8841180 /scripts/p7s/bitwarden.py | |
| parent | abd668108d9932e39c5de075b9aee116f667987f (diff) | |
WIPworkstation
Somewhat blocked by https://bugzilla.redhat.com/show_bug.cgi?id=2521543
Diffstat (limited to 'scripts/p7s/bitwarden.py')
| -rw-r--r-- | scripts/p7s/bitwarden.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/p7s/bitwarden.py b/scripts/p7s/bitwarden.py index ab6cc4f2..6d17d3b1 100644 --- a/scripts/p7s/bitwarden.py +++ b/scripts/p7s/bitwarden.py @@ -40,3 +40,11 @@ def get_item(server, email, uuid): with b.login(server, email): b.sync() return b.get_item(uuid) + + +@contextlib.contextmanager +def default(): + b = Bitwarden() + with b.login("https://vaultwarden.pdp7.net", "alex@corcoles.net"): + b.sync() + yield b |
