Module flexpass

Main public API.

Functions

get_password(name[, warn_if_notfound])

Scan all registered backends, ordered by decreasing priority, and return the first password found with the given name.

set_password(name, password, **options)

Set the given password in the writable backend with the highest priority.

delete_password(name[, warn_if_notfound])

Delete the given password in all writable backends where the password was set.

list_passwords()

List all available passwords.

get_backend(name_or_cls)

Get instanciated backend by name (or by subclasss of Backend if only one backend is registered for this subclass).

get_backends()

Get all instanciated backends.

get_backend_definitions()

Get all registered backend definitions.

register_backend([backend_cls, name, ...])

Register a new Backend.

Classes

PasswordInfo(name)

Information about a password retrieved through list_passwords().

Backend(*, name, priority, readonly, **options)

Base class for backend implementations.

BackendDefinition(*, backend_cls, name, ...)

Definition of a backend, used particularly before the backend instanciation.

Exceptions

BackendNotFound([backend, details])

No backend found for this name or class.

BackendError([backend, details])

Generic error raised by a backend.

BackendNotAvailable([backend, details])

Backend currently not available, or no backend available.