Schwifty

Latest version: v2024.6.1

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

Scan your dependencies

Page 1 of 9

2024.06.1

-------------------------
Fixed
~~~~~
* The ``BIC.from_bank_code`` now handles banks correctly that have no value for the BIC field in the
registry.

Changed
~~~~~~~
* Use ``hatch fmt`` and ``hatch test`` commands for internal development.

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

Page 1 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.