amoorion.methods.accounts_method

Accounts: which platforms have their secrets.

Classes

AccountStatus(*, platform, ready[, missing, ...])

Whether a platform is ready: its missing secrets by name, never by value.

Accounts([vault, view, inbox, dataset])

Tells which platforms can work right now.

class amoorion.methods.accounts_method.AccountStatus(*, platform, ready, missing=[], error=None)[source]

Bases: Model

Whether a platform is ready: its missing secrets by name, never by value.

Parameters:
  • platform (str)

  • ready (bool)

  • missing (list[str])

  • error (str | None)

model_config = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class amoorion.methods.accounts_method.Accounts(vault=None, view=None, inbox=None, dataset=None)[source]

Bases: Method

Tells which platforms can work right now. Asks the vault, not the platforms.

Parameters:
run(params)[source]

Try every secret of every plugin; what can’t be read counts as missing.

Parameters:

params (Model)

Return type:

list[AccountStatus]