accounting.base_account package

Submodules

accounting.base_account.commands module

The console commands for the base account management.

accounting.base_account.commands.init_base_accounts_command() None

Initializes the base accounts.

accounting.base_account.converters module

The path converters for the base account management.

class accounting.base_account.converters.BaseAccountConverter(map: Map, *args: t.Any, **kwargs: t.Any)

Bases: BaseConverter

The account converter to convert the account code and to the corresponding base account in the routes.

to_python(value: str) BaseAccount

Converts an account code to a base account.

Parameters:

value – The account code.

Returns:

The corresponding base account.

to_url(value: BaseAccount) str

Converts a base account to its code.

Parameters:

value – The base account.

Returns:

The code.

accounting.base_account.queries module

The queries for the base account management.

accounting.base_account.queries.get_base_account_query() list[BaseAccount]

Returns the base accounts, optionally filtered by the query.

Returns:

The base accounts.

accounting.base_account.views module

The views for the base account management.

accounting.base_account.views.bp: Blueprint = <Blueprint 'base-account'>

The view blueprint for the base account management.

Module contents

The base account management.

accounting.base_account.init_app(app: Flask, bp: Blueprint) None

Initialize the application.

Parameters:
  • app – The Flask application.

  • bp – The blueprint of the accounting application.

Returns:

None.