Skip to main content

This is the simplest client for quick work with vaultwarden.

Project description

VaultDweller

This is the simplest client for quick work with vaultwarden.

Installation

pip install vaultdweller

Usage

You can get credits by name or by ID.

The names of repositories, collections, and records are not unique in vaultWarden, only the IDs are unique. Therefore, if you are searching by name and the name of the record is duplicated, the first one found will be returned. In such cases, you can add the name of the collection and/or storage There are synchronous and asynchronous search methods.

I tested on python 3.11, I think it will work on earlier versions, maybe it will be necessary to fix the typing.

vault = VaultWarden(
    url=url,
    email=email,
    password=master_password,
    client_id=client_id,
    client_secret=client_secret,
    device_id=device_id,
)
by_id_async = await vault.get_creds_by_id('ea27e9e3-f4c0-45ca-afd3-f7e722303a4b')

by_name_async = await vault.creds_by_name('item_name_1')
by_name_sync = vault.creds_by_name_sync('item_name_2', collection='Collection_1')

# change password
await vault.change_password(by_name_async.item_id, 'new_password')

#generate new totp
by_name_async.get_current_totp()

Results

username='some_user'
password='some_password'
topt='111111'                   # one time password
uri='https://localhost/Login'
custom_fields=None              # if you added custom field in item 

Requirements:

  • pyotp>=2.9.0
  • httpx>=0.28.1
  • pycryptodome>=3.22.0
  • hkdf>=0.0.3

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

vaultdweller-0.2.1.tar.gz (10.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vaultdweller-0.2.1-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file vaultdweller-0.2.1.tar.gz.

File metadata

  • Download URL: vaultdweller-0.2.1.tar.gz
  • Upload date:
  • Size: 10.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.1

File hashes

Hashes for vaultdweller-0.2.1.tar.gz
Algorithm Hash digest
SHA256 a604f6752c9a2370bd3188ff8987327c0a3c9c0cbcfcc1e403e1c39a6412d60e
MD5 875f38ca5bcbd8f4d07d65e91f538692
BLAKE2b-256 1f9441f7a9847b2034b73cde167106bf1eb5748bfe729a02be02060a2d308e33

See more details on using hashes here.

File details

Details for the file vaultdweller-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: vaultdweller-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 11.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.1

File hashes

Hashes for vaultdweller-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9639967f4e0b17c6b938f64e8e26ca572314c1f7d728f93b60662b099d86241a
MD5 df9e563a35952e360a2e3f163b8eaa2e
BLAKE2b-256 172a797b26a22ebccd2e008b48bcd2add2e2af678ac90d29304fbfa99cee842e

See more details on using hashes here.

Supported by

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