Skip to main content

Asyncio-compatible client for the KeePassXC browser protocol.

Project description

keepassxc-async

Asyncio-compatible client for the KeePassXC browser protocol.

Tested with KeePassXC 2.7.6. Please open an issue if there is an incompatibility with a different version.

Usage

Minimal example to connect to a database for the first time:

import asyncio
from keepassxc.database import Client, generate_identification_key

async def main():
    async with await Client.create() as client:
        await client.wait_unlocked()
        identification_key = generate_identification_key()
        assoc, meta = await client.associate(identification_key)
        print(f"Connected to KeePassXC {meta.version} with ID {assoc.id!r}.")

if __name__ == '__main__':
    asyncio.run(main())

For a complete example with different operations and including error handling, see examples/example.py.

License

MIT License. Copyright © 2024 Max Lang. See LICENSE for details.

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

keepassxc-async-0.0.1.tar.gz (11.2 kB view hashes)

Uploaded Source

Built Distribution

keepassxc_async-0.0.1-py3-none-any.whl (8.2 kB view hashes)

Uploaded Python 3

Supported by

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