Name | iban-validation-py JSON |
Version |
0.1.2
JSON |
| download |
home_page | None |
Summary | A package to facilitate validation of IBANs and selecting Bank_id and Branch_id |
upload_time | 2024-12-26 18:06:51 |
maintainer | None |
docs_url | None |
author | Eric |
requires_python | >=3.9 |
license | MIT |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# iban_validation_py
A package to facilitate validation of IBANs and selecting Bank_id and Branch_id in Python.
## Short examples
There are three way to interact with the API:
- Validate the iban with `validate_iban` this does not indicate what is incorrect when the iban in invalid.
- Validate the iban with `validate_iban_with_error` does the same and give an error message when the iban is invalid.
- create an `IbanValidation` which allows to select the validated iban, the branch_id and bank_id when relevant.
See below code for illustration:
```python
import iban_validation_py
from iban_validation_py import IbanValidation
result = iban_validation_py.validate_iban('AL47212110090000000235698741')
assert(result is True)
result = iban_validation_py.validate_iban('AL47212110090000000235698741VV')
assert(result is False)
result, message = iban_validation_py.validate_iban_with_error('AL47212110090000000235698741VV')
assert(result is False)
assert(message == 'IBAN Validation failed: The length of the input Iban does match the length for that country')
# # Valid IBAN
iban = IbanValidation('AL47212110090000000235698741')
assert('AL47212110090000000235698741' == iban.stored_iban)
assert('212' == iban.iban_bank_id)
assert('11009' == iban.iban_branch_id)
```
Raw data
{
"_id": null,
"home_page": null,
"name": "iban-validation-py",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": null,
"author": "Eric",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/72/dc/38fcf14aeb4155509a30123cf1a32f222ca83012214368eca9c678b66baf/iban_validation_py-0.1.2.tar.gz",
"platform": null,
"description": "# iban_validation_py\nA package to facilitate validation of IBANs and selecting Bank_id and Branch_id in Python.\n\n## Short examples\n\nThere are three way to interact with the API:\n - Validate the iban with `validate_iban` this does not indicate what is incorrect when the iban in invalid.\n - Validate the iban with `validate_iban_with_error` does the same and give an error message when the iban is invalid.\n - create an `IbanValidation` which allows to select the validated iban, the branch_id and bank_id when relevant.\n\n See below code for illustration:\n\n```python\nimport iban_validation_py\nfrom iban_validation_py import IbanValidation\n\nresult = iban_validation_py.validate_iban('AL47212110090000000235698741')\nassert(result is True)\nresult = iban_validation_py.validate_iban('AL47212110090000000235698741VV')\nassert(result is False)\nresult, message = iban_validation_py.validate_iban_with_error('AL47212110090000000235698741VV')\nassert(result is False)\nassert(message == 'IBAN Validation failed: The length of the input Iban does match the length for that country') \n\n# # Valid IBAN\niban = IbanValidation('AL47212110090000000235698741')\nassert('AL47212110090000000235698741' == iban.stored_iban)\nassert('212' == iban.iban_bank_id)\nassert('11009' == iban.iban_branch_id)\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A package to facilitate validation of IBANs and selecting Bank_id and Branch_id",
"version": "0.1.2",
"project_urls": {
"Homepage": "https://github.com/ericqu/iban_validation",
"Issues": "https://github.com/ericqu/iban_validation/issues"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "456ad2f0c435e7d2121b51249c6e67e7d351b8b761be1f0a9830392b020d3c8a",
"md5": "0fbd6659c06ac181a00c74b5f5a78bf1",
"sha256": "f62bd13b3603f18f35c1f6b60e8a2188636821301f309820a427ef72405f1705"
},
"downloads": -1,
"filename": "iban_validation_py-0.1.2-cp310-cp310-macosx_11_0_arm64.whl",
"has_sig": false,
"md5_digest": "0fbd6659c06ac181a00c74b5f5a78bf1",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": ">=3.9",
"size": 282017,
"upload_time": "2024-12-26T18:06:32",
"upload_time_iso_8601": "2024-12-26T18:06:32.593235Z",
"url": "https://files.pythonhosted.org/packages/45/6a/d2f0c435e7d2121b51249c6e67e7d351b8b761be1f0a9830392b020d3c8a/iban_validation_py-0.1.2-cp310-cp310-macosx_11_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "57a196b72dd05115a717d7927c9c754fd15bde55a69ca136ace1763f9b4683df",
"md5": "9be49e56185fd019c83a219831860fa1",
"sha256": "add48cda89f1b8f16c6f766e57f1f2b59d640266f32c3e91d985d13a13ecd733"
},
"downloads": -1,
"filename": "iban_validation_py-0.1.2-cp311-cp311-macosx_11_0_arm64.whl",
"has_sig": false,
"md5_digest": "9be49e56185fd019c83a219831860fa1",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": ">=3.9",
"size": 281699,
"upload_time": "2024-12-26T18:06:35",
"upload_time_iso_8601": "2024-12-26T18:06:35.042336Z",
"url": "https://files.pythonhosted.org/packages/57/a1/96b72dd05115a717d7927c9c754fd15bde55a69ca136ace1763f9b4683df/iban_validation_py-0.1.2-cp311-cp311-macosx_11_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "6e994cfa82682ed9c5b6705f7871f569fd6f31e1ac024bc535a604a77ccd1f21",
"md5": "cda8b87999c3a3d16a759e0c9a572c2d",
"sha256": "5ade934aa8567450a2e1132878f5657c9d7ce304046b717f00f1dc24e366fb0e"
},
"downloads": -1,
"filename": "iban_validation_py-0.1.2-cp312-cp312-macosx_11_0_arm64.whl",
"has_sig": false,
"md5_digest": "cda8b87999c3a3d16a759e0c9a572c2d",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.9",
"size": 281456,
"upload_time": "2024-12-26T18:06:36",
"upload_time_iso_8601": "2024-12-26T18:06:36.541629Z",
"url": "https://files.pythonhosted.org/packages/6e/99/4cfa82682ed9c5b6705f7871f569fd6f31e1ac024bc535a604a77ccd1f21/iban_validation_py-0.1.2-cp312-cp312-macosx_11_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "437556bf1dc211cfe282645690a09652a60c81a87953edebfb1849303a5e91dd",
"md5": "55e3607ba3df3e4f92a058ff4300e7f5",
"sha256": "e47e33733799ef4bc73a29d45cefb73ca5db279a44b04c6274271c413f299b5c"
},
"downloads": -1,
"filename": "iban_validation_py-0.1.2-cp39-cp39-macosx_11_0_arm64.whl",
"has_sig": false,
"md5_digest": "55e3607ba3df3e4f92a058ff4300e7f5",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9",
"size": 282151,
"upload_time": "2024-12-26T18:06:38",
"upload_time_iso_8601": "2024-12-26T18:06:38.994864Z",
"url": "https://files.pythonhosted.org/packages/43/75/56bf1dc211cfe282645690a09652a60c81a87953edebfb1849303a5e91dd/iban_validation_py-0.1.2-cp39-cp39-macosx_11_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "cc6520b92c15910b53c5ebc5ca50502f0affb26acce4c0b5a5df5678d78b759a",
"md5": "2bbd2bb895c8bf8fec1441617a9f28f1",
"sha256": "afbc4fb64d18bcd77786af6e9c62aa6ace270bb5baf01b0fd2dcbd5e5cec2c0a"
},
"downloads": -1,
"filename": "iban_validation_py-0.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "2bbd2bb895c8bf8fec1441617a9f28f1",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9",
"size": 322792,
"upload_time": "2024-12-26T18:06:40",
"upload_time_iso_8601": "2024-12-26T18:06:40.557989Z",
"url": "https://files.pythonhosted.org/packages/cc/65/20b92c15910b53c5ebc5ca50502f0affb26acce4c0b5a5df5678d78b759a/iban_validation_py-0.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a27b3f3f66f024bb56134d58121f3d1b43329965aa2d9adbdd904bfcfda6c92b",
"md5": "21c1b252ae023fb0e965849acd0d02c6",
"sha256": "2e06b7b74d7fb1430a75d4b609d5f16c07461d8c7b6895998999c5a7ac4baa26"
},
"downloads": -1,
"filename": "iban_validation_py-0.1.2-cp39-cp39-manylinux_2_24_x86_64.whl",
"has_sig": false,
"md5_digest": "21c1b252ae023fb0e965849acd0d02c6",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9",
"size": 322888,
"upload_time": "2024-12-26T18:06:42",
"upload_time_iso_8601": "2024-12-26T18:06:42.559985Z",
"url": "https://files.pythonhosted.org/packages/a2/7b/3f3f66f024bb56134d58121f3d1b43329965aa2d9adbdd904bfcfda6c92b/iban_validation_py-0.1.2-cp39-cp39-manylinux_2_24_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "bcbcc08c078092af0a9c6565b71a3e8230b21b68b07183a89f2fd0670a9d3267",
"md5": "3414fad2ba81e13d3869d360c82e621e",
"sha256": "93d3e3dcad11bc18cfe8e42f48fdfe977438d3612c7be309c0447ac5d6637f81"
},
"downloads": -1,
"filename": "iban_validation_py-0.1.2-cp39-none-win_amd64.whl",
"has_sig": false,
"md5_digest": "3414fad2ba81e13d3869d360c82e621e",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9",
"size": 181869,
"upload_time": "2024-12-26T18:06:47",
"upload_time_iso_8601": "2024-12-26T18:06:47.645289Z",
"url": "https://files.pythonhosted.org/packages/bc/bc/c08c078092af0a9c6565b71a3e8230b21b68b07183a89f2fd0670a9d3267/iban_validation_py-0.1.2-cp39-none-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "72dc38fcf14aeb4155509a30123cf1a32f222ca83012214368eca9c678b66baf",
"md5": "f3175c07dd14a2023128810c408a323e",
"sha256": "b09266c75981c7995e52b67f512f0e8a645e2e33079996303c1e45b1ea4e1ad9"
},
"downloads": -1,
"filename": "iban_validation_py-0.1.2.tar.gz",
"has_sig": false,
"md5_digest": "f3175c07dd14a2023128810c408a323e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 47251,
"upload_time": "2024-12-26T18:06:51",
"upload_time_iso_8601": "2024-12-26T18:06:51.008330Z",
"url": "https://files.pythonhosted.org/packages/72/dc/38fcf14aeb4155509a30123cf1a32f222ca83012214368eca9c678b66baf/iban_validation_py-0.1.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-26 18:06:51",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ericqu",
"github_project": "iban_validation",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "iban-validation-py"
}