Schwifty

Latest version: v2025.1.0

Safety actively analyzes 714860 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 9

2024.06.0

-------------------------
Changed
~~~~~~~
* Stop using the "elfprooef" algorithm when validating Dutch IBANs, since the administrative
authority says it should not be checked any more.

2024.05.4

-------------------------
Added
~~~~~
* The ``IBAN`` and ``BBAN`` classes now have an additional property ``currency_code`` for countries
like Seychelles, Guatemala or Mauritius.

Fixed
~~~~~
* Also allow the BIC lookup for non-primary banks. For countries like Switzerland the lookup did
fail for banks which did not have the primary-flag set, even though an appropriate mapping was
available.
* ``IBAN.random()`` now also works for countries which have a currency code included in their BBAN
e.g. Mauritius or Seychelles.
* ``IBAN.random()`` now also works for aspirational countries, where no information of the BBAN
structure is available, e.g. Comoros.

2024.05.3

-------------------------
Added
~~~~~
* There is a new classmethod ``IBAN.random()`` that allows you to create random, but valid IBANs.

.. code-block:: pycon

>>> IBAN.random()
<IBAN=LT435012771675726758>

You can narrow down the generated values by providing the corresponding parameters to this
function. E.g. to get only Spanish IBANs you can do

.. code-block:: pycon

>>> IBAN.random(country_code="ES")
<IBAN=ES8801253179194914182449>

Changed
~~~~~~~
* Some missing bank associations have been added to the Portoguese bank registry by
`tiagoafseixas <https://github.com/tiagoafseixas>`_

2024.05.2

-------------------------
Fixed
~~~~~
* Add `typing-extensions` as explicit dependency for Python < 3.11 to support the `Self` type.

2024.05.1

-------------------------
Changed
~~~~~~~
* Remove custom collection logic of the bank registry for ``pyinstaller``. The changes introduced in
`92 <https://github.com/mdomke/schwifty/pull/92>`_ were wrong and have been reverted. Usage
example

.. code-block:: bash

$ pyinstaller <script> --collect-data schwifty --copy-metadata schwifty

2024.05.0

-------------------------
Fixed
~~~~~
* Loading JSON data into a Pydantic model with an ``IBAN`` or ``BIC``-field
(``Model.model_validate_json()``) was previously broken and has been fixed now.

Added
~~~~~
* JSON schema generation for Pydantic models.

Changed
~~~~~~~
* Updated bank registries.
* Remove the dependency to ``iso3166`` since its functionallity is already covered by ``pycountry``

Page 2 of 9

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.