3.1. nordigen_cli package
3.1.1. Subpackages
- 3.1.1.1. nordigen_cli.apiclient package
- 3.1.1.1.1. Submodules
- 3.1.1.1.2. nordigen_cli.apiclient.authentication module
- 3.1.1.1.3. nordigen_cli.apiclient.base module
ClientState
NordigenClientBase
NordigenClientBase.access_token
NordigenClientBase.base_url
NordigenClientBase.delete()
NordigenClientBase.do_init
NordigenClientBase.do_refresh()
NordigenClientBase.do_signon()
NordigenClientBase.do_signon_request()
NordigenClientBase.do_token_refresh()
NordigenClientBase.endpoints
NordigenClientBase.get()
NordigenClientBase.get_access_token()
NordigenClientBase.get_refresh_token()
NordigenClientBase.init()
NordigenClientBase.post()
NordigenClientBase.prerequest()
NordigenClientBase.r_client
NordigenClientBase.refresh_callback
NordigenClientBase.refresh_token
NordigenClientBase.request()
NordigenClientBase.retrieve_callback
NordigenClientBase.set_access_token()
NordigenClientBase.set_refresh_token()
NordigenClientBase.signon_callback
NordigenClientBase.state
NordigenClientBase.t_client
ResourceClient
TokenClient
- 3.1.1.1.4. nordigen_cli.apiclient.client module
NordigenClient
NordigenClient.accept_agreement()
NordigenClient.create_end_user_agreement()
NordigenClient.create_requisition()
NordigenClient.delete_agreement()
NordigenClient.delete_requisition()
NordigenClient.list_account_transactions()
NordigenClient.list_agreements()
NordigenClient.list_banks()
NordigenClient.list_requisitions()
NordigenClient.show_account_balances()
NordigenClient.show_account_details()
NordigenClient.show_account_metadata()
NordigenClient.show_agreement()
NordigenClient.show_bank()
NordigenClient.show_requisition()
- 3.1.1.1.5. nordigen_cli.apiclient.endpoints module
BaseEndpoints
BaseEndpoints.account_balances
BaseEndpoints.account_details
BaseEndpoints.account_metadata
BaseEndpoints.agreement
BaseEndpoints.agreement_accept
BaseEndpoints.agreements
BaseEndpoints.bank
BaseEndpoints.banks
BaseEndpoints.requisition
BaseEndpoints.requisitions
BaseEndpoints.token_new
BaseEndpoints.token_refresh
BaseEndpoints.transactions
Endpoints
- 3.1.1.1.6. nordigen_cli.apiclient.errors module
- 3.1.1.1.7. Module contents
- 3.1.1.2. nordigen_cli.commands package
- 3.1.1.2.1. Submodules
- 3.1.1.2.2. nordigen_cli.commands.accounts module
- 3.1.1.2.3. nordigen_cli.commands.agreements module
- 3.1.1.2.4. nordigen_cli.commands.approvals module
- 3.1.1.2.5. nordigen_cli.commands.banks module
- 3.1.1.2.6. nordigen_cli.commands.callbacks module
- 3.1.1.2.7. nordigen_cli.commands.client module
- 3.1.1.2.8. nordigen_cli.commands.config module
- 3.1.1.2.9. nordigen_cli.commands.requisitions module
- 3.1.1.2.10. Module contents
- 3.1.1.3. nordigen_cli.formatters package
- 3.1.1.4. nordigen_cli.models package
- 3.1.1.4.1. Submodules
- 3.1.1.4.2. nordigen_cli.models.mixins module
- 3.1.1.4.3. nordigen_cli.models.model module
Account
AccountBalance
AccountDetail
AccountSchema
AccountTransactions
BalanceAmountSchema
BalanceSchema
BankTransaction
CurrencyExchangeSchema
DetailSchema
DetailSchema.bban
DetailSchema.bic
DetailSchema.cashAccountType
DetailSchema.currency
DetailSchema.details
DetailSchema.displayName
DetailSchema.iban
DetailSchema.linkedAccounts
DetailSchema.maskedPan
DetailSchema.model_config
DetailSchema.msisdn
DetailSchema.name
DetailSchema.ownerAddressStructured
DetailSchema.ownerAddressUnstructured
DetailSchema.ownerName
DetailSchema.product
DetailSchema.resourceId
DetailSchema.scan
DetailSchema.status
DetailSchema.usage
EndUserAgreement
EndUserAgreementRequest
EnduserAcceptanceDetailsRequest
ErrorResponse
Integration
IntegrationRetrieve
IntegrationRetrieve.bic
IntegrationRetrieve.countries
IntegrationRetrieve.id
IntegrationRetrieve.identification_codes
IntegrationRetrieve.logo
IntegrationRetrieve.max_access_valid_for_days
IntegrationRetrieve.model_config
IntegrationRetrieve.name
IntegrationRetrieve.supported_features
IntegrationRetrieve.supported_payments
IntegrationRetrieve.transaction_total_days
JWTObtainPairRequest
JWTRefreshRequest
OwnerAddressStructuredSchema
PaginatedEndUserAgreementList
PaginatedRequisitionList
Requisition
Requisition.account_selection
Requisition.accounts
Requisition.agreement
Requisition.created
Requisition.id
Requisition.institution_id
Requisition.link
Requisition.model_config
Requisition.redirect
Requisition.redirect_immediate
Requisition.reference
Requisition.ssn
Requisition.status
Requisition.user_language
Requisition.validate_empty_agreement()
Requisition.validate_empty_link()
RequisitionRequest
SpectacularJWTObtain
SpectacularJWTRefresh
SpectacularRequisition
SpectacularRequisition.account_selection
SpectacularRequisition.accounts
SpectacularRequisition.agreement
SpectacularRequisition.created
SpectacularRequisition.id
SpectacularRequisition.institution_id
SpectacularRequisition.link
SpectacularRequisition.model_config
SpectacularRequisition.redirect
SpectacularRequisition.redirect_immediate
SpectacularRequisition.reference
SpectacularRequisition.ssn
SpectacularRequisition.status
SpectacularRequisition.user_language
StatusEnum
TransactionAmountSchema
TransactionSchema
TransactionSchema.additionalInformation
TransactionSchema.bankTransactionCode
TransactionSchema.bookingDate
TransactionSchema.bookingDateTime
TransactionSchema.checkId
TransactionSchema.creditorAccount
TransactionSchema.creditorId
TransactionSchema.creditorName
TransactionSchema.currencyExchange
TransactionSchema.debtorAccount
TransactionSchema.debtorName
TransactionSchema.endToEndId
TransactionSchema.entryReference
TransactionSchema.internalTransactionId
TransactionSchema.mandateId
TransactionSchema.model_config
TransactionSchema.proprietaryBankTransactionCode
TransactionSchema.purposeCode
TransactionSchema.remittanceInformationStructured
TransactionSchema.remittanceInformationStructuredArray
TransactionSchema.remittanceInformationUnstructured
TransactionSchema.remittanceInformationUnstructuredArray
TransactionSchema.transactionAmount
TransactionSchema.transactionId
TransactionSchema.ultimateCreditor
TransactionSchema.ultimateDebtor
TransactionSchema.valueDate
TransactionSchema.valueDateTime
- 3.1.1.4.4. nordigen_cli.models.renderable module
ReprAccountTransactions
ReprTransactionSchema
ReprTransactionSchema.bookingDateTime
ReprTransactionSchema.creditorName
ReprTransactionSchema.from_model()
ReprTransactionSchema.model_config
ReprTransactionSchema.remittanceInformationUnstructured
ReprTransactionSchema.transactionAmount
ReprTransactionSchema.transactionCurrency
ReprTransactionSchema.transactionId
ReprTransactionSchema.valueDateTime
- 3.1.1.4.5. nordigen_cli.models.token module
- 3.1.1.4.6. Module contents
3.1.2. Submodules
3.1.3. nordigen_cli.config module
3.1.4. nordigen_cli.exception_handler module
- class nordigen_cli.exception_handler.ExceptionHandler(app: Typer)[source]
Bases:
object
- handle_command(func: Callable) Callable [source]
Decorator to wrap commands with exception handling
- nordigen_cli.exception_handler.handle_404_error(exc: PageNotFoundError)[source]
- nordigen_cli.exception_handler.handle_invalid_token(exc: TokenFormatError)[source]
3.1.5. nordigen_cli.format_error module
- nordigen_cli.format_error.show_config_report(config: BaseConfigManager) None [source]
show the configuration error
3.1.6. nordigen_cli.format_output module
- class nordigen_cli.format_output.FormattingManager[source]
Bases:
object
Manages available formatters and handles formatting requests
- class nordigen_cli.format_output.JsonFormatter[source]
Bases:
OutputFormatter
[green]Format[/green] output as JSON
- class nordigen_cli.format_output.OutputFormatter[source]
Bases:
ABC
Base class for output formatters
- class nordigen_cli.format_output.TableFormatter[source]
Bases:
OutputFormatter
Format output as a Rich table
3.1.7. nordigen_cli.nordigen_cli module
- nordigen_cli.nordigen_cli.list_country_codes(ctx: Context)[source]
list ISO 3166 2-letter country codes
- nordigen_cli.nordigen_cli.list_endusers(ctx)[source]
list any enduser ids that are associated with requisitions
- nordigen_cli.nordigen_cli.main(ctx: ~typer.models.Context, _: ~typing.Annotated[bool | None, <typer.models.OptionInfo object at 0x7fb0c011f8c0>] = None, profile: ~typing.Annotated[str | None, <typer.models.OptionInfo object at 0x7fb0c011f800>] = 'default', secret_id: ~typing.Annotated[str, <typer.models.OptionInfo object at 0x7fb0c011fa10>] = None, secret_key: ~typing.Annotated[str, <typer.models.OptionInfo object at 0x7fb0c011fa70>] = None, api: ~typing.Annotated[str, <typer.models.OptionInfo object at 0x7fb0c011fb00>] = None, config_file: ~typing.Annotated[~pathlib.Path, <typer.models.OptionInfo object at 0x7fb0c011fb90>] = PosixPath('/home/tomhodder/.config/nordigen_cli/config.json'), config_dir: ~typing.Annotated[~pathlib.Path, <typer.models.OptionInfo object at 0x7fb0c011fc20>] = PosixPath('/home/tomhodder/.config/nordigen_cli'), access_token_file: ~typing.Annotated[~pathlib.Path, <typer.models.OptionInfo object at 0x7fb0c011fcb0>] = PosixPath('/home/tomhodder/.config/nordigen_cli/access.json'), request_token_file: ~typing.Annotated[~pathlib.Path, <typer.models.OptionInfo object at 0x7fb0c011fd40>] = PosixPath('/home/tomhodder/.config/nordigen_cli/default/request.json'), verbose: ~typing.Annotated[int | None, <typer.models.OptionInfo object at 0x7fb0c011fdd0>] = None, output_format: ~typing.Annotated[~fast_api.config.FormatChoices | None, <typer.models.OptionInfo object at 0x7fb0c011fe60>] = None)[source]
Nordigen API client
3.1.8. nordigen_cli.redirect_handler module
- class nordigen_cli.redirect_handler.ServerThread(app)[source]
Bases:
Thread
- run()[source]
Method representing the thread’s activity.
You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.
3.1.9. nordigen_cli.redirect_handler2 module
3.1.10. nordigen_cli.settings module
- class nordigen_cli.settings.SettingsConfig(_case_sensitive: bool | None = None, _nested_model_default_partial_update: bool | None = None, _env_prefix: str | None = None, _env_file: DotenvType | None = PosixPath('.'), _env_file_encoding: str | None = None, _env_ignore_empty: bool | None = None, _env_nested_delimiter: str | None = None, _env_parse_none_str: str | None = None, _env_parse_enums: bool | None = None, _cli_prog_name: str | None = None, _cli_parse_args: bool | list[str] | tuple[str, ...] | None = None, _cli_settings_source: CliSettingsSource[Any] | None = None, _cli_parse_none_str: str | None = None, _cli_hide_none_type: bool | None = None, _cli_avoid_json: bool | None = None, _cli_enforce_required: bool | None = None, _cli_use_class_docs_for_groups: bool | None = None, _cli_exit_on_error: bool | None = None, _cli_prefix: str | None = None, _cli_flag_prefix_char: str | None = None, _cli_implicit_flags: bool | None = None, _cli_ignore_unknown_args: bool | None = None, _secrets_dir: PathType | None = None, *, config_file: Path = PosixPath('/home/tomhodder/.config/nordigen_cli/config.json'), config_dir: Path = PosixPath('/home/tomhodder/.config/nordigen_cli'), profile: str = 'default')[source]
Bases:
BaseSettings
represents values that need to be available to determine the settings from various path and profile options that must be set up front
- config_dir: Path
- config_file: Path
- model_config: ClassVar[SettingsConfigDict] = {'arbitrary_types_allowed': True, 'case_sensitive': False, 'cli_avoid_json': False, 'cli_enforce_required': False, 'cli_exit_on_error': True, 'cli_flag_prefix_char': '-', 'cli_hide_none_type': False, 'cli_ignore_unknown_args': False, 'cli_implicit_flags': False, 'cli_parse_args': None, 'cli_parse_none_str': None, 'cli_prefix': '', 'cli_prog_name': None, 'cli_use_class_docs_for_groups': False, 'env_file': None, 'env_file_encoding': None, 'env_ignore_empty': False, 'env_nested_delimiter': None, 'env_parse_enums': None, 'env_parse_none_str': None, 'env_prefix': '', 'extra': 'forbid', 'json_file': None, 'json_file_encoding': None, 'nested_model_default_partial_update': False, 'protected_namespaces': ('model_', 'settings_'), 'secrets_dir': None, 'toml_file': None, 'validate_default': True, 'yaml_file': None, 'yaml_file_encoding': None}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- profile: str
- class nordigen_cli.settings.SettingsDisplay(_case_sensitive: bool | None = None, _nested_model_default_partial_update: bool | None = None, _env_prefix: str | None = None, _env_file: DotenvType | None = PosixPath('.'), _env_file_encoding: str | None = None, _env_ignore_empty: bool | None = None, _env_nested_delimiter: str | None = None, _env_parse_none_str: str | None = None, _env_parse_enums: bool | None = None, _cli_prog_name: str | None = None, _cli_parse_args: bool | list[str] | tuple[str, ...] | None = None, _cli_settings_source: CliSettingsSource[Any] | None = None, _cli_parse_none_str: str | None = None, _cli_hide_none_type: bool | None = None, _cli_avoid_json: bool | None = None, _cli_enforce_required: bool | None = None, _cli_use_class_docs_for_groups: bool | None = None, _cli_exit_on_error: bool | None = None, _cli_prefix: str | None = None, _cli_flag_prefix_char: str | None = None, _cli_implicit_flags: bool | None = None, _cli_ignore_unknown_args: bool | None = None, _secrets_dir: PathType | None = None, *, verbose: int = 1, output_format: FormatChoices = FormatChoices.RICH)[source]
Bases:
BaseSettings
display settings that are used to determine how the output is displayed
- model_config: ClassVar[SettingsConfigDict] = {'arbitrary_types_allowed': True, 'case_sensitive': False, 'cli_avoid_json': False, 'cli_enforce_required': False, 'cli_exit_on_error': True, 'cli_flag_prefix_char': '-', 'cli_hide_none_type': False, 'cli_ignore_unknown_args': False, 'cli_implicit_flags': False, 'cli_parse_args': None, 'cli_parse_none_str': None, 'cli_prefix': '', 'cli_prog_name': None, 'cli_use_class_docs_for_groups': False, 'env_file': None, 'env_file_encoding': None, 'env_ignore_empty': False, 'env_nested_delimiter': None, 'env_parse_enums': None, 'env_parse_none_str': None, 'env_prefix': '', 'extra': 'forbid', 'json_file': None, 'json_file_encoding': None, 'nested_model_default_partial_update': False, 'protected_namespaces': ('model_', 'settings_'), 'secrets_dir': None, 'toml_file': None, 'validate_default': True, 'yaml_file': None, 'yaml_file_encoding': None}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- output_format: FormatChoices
- verbose: int
- class nordigen_cli.settings.SettingsRuntime(_case_sensitive: bool | None = None, _nested_model_default_partial_update: bool | None = None, _env_prefix: str | None = None, _env_file: DotenvType | None = PosixPath('.'), _env_file_encoding: str | None = None, _env_ignore_empty: bool | None = None, _env_nested_delimiter: str | None = None, _env_parse_none_str: str | None = None, _env_parse_enums: bool | None = None, _cli_prog_name: str | None = None, _cli_parse_args: bool | list[str] | tuple[str, ...] | None = None, _cli_settings_source: CliSettingsSource[Any] | None = None, _cli_parse_none_str: str | None = None, _cli_hide_none_type: bool | None = None, _cli_avoid_json: bool | None = None, _cli_enforce_required: bool | None = None, _cli_use_class_docs_for_groups: bool | None = None, _cli_exit_on_error: bool | None = None, _cli_prefix: str | None = None, _cli_flag_prefix_char: str | None = None, _cli_implicit_flags: bool | None = None, _cli_ignore_unknown_args: bool | None = None, _secrets_dir: PathType | None = None, *, api: str, secret_id: str, secret_key: str, access_token_file: Path = PosixPath('/home/tomhodder/.config/nordigen_cli/access.json'), request_token_file: Path = PosixPath('/home/tomhodder/.config/nordigen_cli/default/request.json'), verbose: int = 1, output_format: FormatChoices = FormatChoices.RICH)[source]
Bases:
BaseSettings
- access_token_file: Path
- api: str
- model_config: ClassVar[SettingsConfigDict] = {'arbitrary_types_allowed': True, 'case_sensitive': False, 'cli_avoid_json': False, 'cli_enforce_required': False, 'cli_exit_on_error': True, 'cli_flag_prefix_char': '-', 'cli_hide_none_type': False, 'cli_ignore_unknown_args': False, 'cli_implicit_flags': False, 'cli_parse_args': None, 'cli_parse_none_str': None, 'cli_prefix': '', 'cli_prog_name': None, 'cli_use_class_docs_for_groups': False, 'env_file': None, 'env_file_encoding': None, 'env_ignore_empty': False, 'env_nested_delimiter': None, 'env_parse_enums': None, 'env_parse_none_str': None, 'env_prefix': '', 'extra': 'forbid', 'json_file': None, 'json_file_encoding': None, 'nested_model_default_partial_update': False, 'protected_namespaces': ('model_', 'settings_'), 'secrets_dir': None, 'toml_file': None, 'validate_default': True, 'yaml_file': None, 'yaml_file_encoding': None}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- output_format: FormatChoices
- request_token_file: Path
- secret_id: str
- secret_key: str
- verbose: int