mt940 package

class mt940.JSONEncoder(*, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, sort_keys=False, indent=None, separators=None, default=None)[source]

Bases: JSONEncoder

default(o: Any) Any[source]

Custom JSON encoder for MT940 models.

Parameters:

o – The object to serialize.

Returns:

The serialized form of the object.

mt940.parse(src: Any, encoding: str | None = None, processors: dict[str, list[Any]] | None = None, tags: dict[Any, Any] | None = None) Transactions[source]

Parses mt940 data and returns transactions object

Parameters:

src – file handler to read, filename to read or raw data as string

Returns:

Collection of transactions

Return type:

Transactions

Submodules