{ "info": { "author": "Camilo Cortes,Astrid Cely", "author_email": "", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3" ], "description": "\n
\n

\n \"Logo\"\n

addressValidator

\n

\n \"Contributors\"\n \"Forks\"\n \"starts\"\n \"Awesome\"\n \"Slack\"\n

\n

\n Validate urban and rural addresses in Colombia\n
\n Explore the docs\u00bb\n
\n
\n Report Bug\n \u00b7\n Request Feature\n

\n

\n\n\n
\n Table of Contents\n
    \n
  1. \n About The Project\n
  2. \n
  3. \n Documentation\n \n \n \n
  4. \n
  5. Roadmap
  6. \n
  7. Contributing
  8. \n
  9. License
  10. \n
\n
\n\n\n## About The Project\nthe project was developed through the definition of Mealy machines, regular expressions, regular grammars, Automata, for the validation of all addresses currently valid in Colombia.\n\nthe standardization of [urban addresses of the ministry of education](https://www.mineducacion.gov.co/1621/articles-193290_estandar_direcciones_urbanas.pdf) was used as a guideline. \n\n## Documentation\n\n\n### Getting Started\n\n#### Installation\n\n```bash\npip install addressValidator\n\nor\n\npy -m pip install addressValidator\n```\nlatest stable version `addressValidator==1.2.1`\n\n### Usage\n\n* Example \n ```python\n from addressValidator import address_validator\n \n address = \"Calle 3BC #10-2 Barrio San Juan Apartamento 201\"\n if address_validator(address):\n print(address+\" direccion valida\")\n else:\n print(address+\" direccion invalida\")\n ```\n\n_For more examples, please refer to the [Examples packages](https://github.com/CamiloCortesM/addressValidator/tree/main/examples)_\n\n\n### Functions\nwe can use 4 functions to validate both urban and rural addresses\n\n#### address_validator\n\naddress_validator function receives as a parameter a mandatory string which will be evaluated and will return a boolean if valid or not.\n\n```python\nfrom addressValidator import address_validator\n\n# address_validator(str) -> bool\naddress = address_validator(\"Calle 13B #10-3\")\nprint(address)// #True\n```\nif the address is not valid it will return False\n\n```python\nfrom addressValidator import address_validator\n\n# address_validator(str) -> bool\naddress = address_validator(\"Calle 13sur 13-121B\")\nprint(address)// #False\n```\n#### address_validator_dian\nfucntion address_validator_dian returns the address validation according to [dian nomenclature](https://www.mineducacion.gov.co/1621/articles-193290_estandar_direcciones_urbanas.pdf)\n\n```python\nfrom addressValidator import address_validator_dian\n\n# address_validator_dian(str) -> bool\naddress = address_validator_dian(\"Cl 13 B 10 3\")\nprint(address)// #True\n```\nif the address is not valid it will return False\n\n```python\nfrom addressValidator import address_validator_dian\n\n# address_validator_dian(str) -> bool\naddress = address_validator_dian(\"Cl 13 sur 13 121 B\")\nprint(address)// #False\n```\n\n#### address_validator_file\naddress_validator_file function receives a text file, does not return any value, this function creates a text file with the respective validations.\n```python\nfrom addressValidator import address_validator_file\n\n# address_validator_file(file) -> None\nwith open(\"address.txt\") as file_object:\n address_validator_file(file_object) # create output.txt\n\n```\nhere we can see that we read a file called [address.txt](https://github.com/CamiloCortesM/addressValidator/blob/main/examples/address.txt) that we find in the examples folder this function will return the validations of all the strings as we can see in the [output.txt](https://github.com/CamiloCortesM/addressValidator/blob/main/examples/output.txt) file.All this for urban and rural addresses \n\n#### address_validator_file_dian\n\nThe function address_validator_file_dian receives a text file, creates a text file with the validations of the addresses with dian nomenclature \n```python\nfrom addressValidator import address_validator_file_dian\n\n# address_validator_file_dian(file) -> None\nwith open(\"addressDian.txt\") as file_object:\n address_validator_file_dian(file_object) # create output.txt\n\n```\nWe read the [addressDian](https://github.com/CamiloCortesM/addressValidator/blob/main/examples/addressDian.txt) file from the root path and send the document to the function and it returns the validations in an `output.txt` file. Validations with file for dian nomenclature is in the [output_dian.txt](https://github.com/CamiloCortesM/addressValidator/blob/main/examples/output_dian.txt) file\n\n\n## Roadmap\n\nSee the [open issues](https://github.com/CamiloCortesM/addressValidator/issues) for a list of proposed features (and known issues).\n\n\n## Contributing\n\nContributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n\n## License\n\nDistributed under the MIT License. See `LICENSE` for more information.\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/CamiloCortesM/addressValidator", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "addressValidator", "package_url": "https://pypi.org/project/addressValidator/", "platform": null, "project_url": "https://pypi.org/project/addressValidator/", "project_urls": { "Bug Tracker": "https://github.com/CamiloCortesM/addressValidator/issues", "Homepage": "https://github.com/CamiloCortesM/addressValidator" }, "release_url": "https://pypi.org/project/addressValidator/1.2.2/", "requires_dist": null, "requires_python": ">=3.6", "summary": "validation of all addresses in colombia", "version": "1.2.2", "yanked": false, "yanked_reason": null }, "last_serial": 15546527, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "cd1134171ee3130c9183909652b498b6", "sha256": "2897a5cbeea3fe60608a89a50b9cd5137f81bcdfe65a0aed3a10bf878832a0f1" }, "downloads": -1, "filename": "addressValidator-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "cd1134171ee3130c9183909652b498b6", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 5214, "upload_time": "2022-10-16T06:31:36", "upload_time_iso_8601": "2022-10-16T06:31:36.796352Z", "url": "https://files.pythonhosted.org/packages/95/1f/1c5c8a0a3139d9ec0844382e797ca05c857e8fb53bcca3c1025707b749b8/addressValidator-1.0.0-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "f02881f8d927e170f70c6b38becaa347", "sha256": "b3041497f39bce815f8af3f81f7ff32912a745ffd9ae74b08eedf525142bd43b" }, "downloads": -1, "filename": "addressValidator-1.0.0.tar.gz", "has_sig": false, "md5_digest": "f02881f8d927e170f70c6b38becaa347", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 4615, "upload_time": "2022-10-16T06:31:38", "upload_time_iso_8601": "2022-10-16T06:31:38.596747Z", "url": "https://files.pythonhosted.org/packages/4b/e5/adc4cd6989cc4133c8a2f549e309e5527a9a168c1acb9d46d3e1c4397012/addressValidator-1.0.0.tar.gz", "yanked": false, "yanked_reason": null } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "b4852bd680033c1e566fa8441bd3cba6", "sha256": "cd3603ab4fe95bea7d7d65b497d9cff84f977ff89763418710110adacfc7698e" }, "downloads": -1, "filename": "addressValidator-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "b4852bd680033c1e566fa8441bd3cba6", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 5247, "upload_time": "2022-10-16T06:46:34", "upload_time_iso_8601": "2022-10-16T06:46:34.669681Z", "url": "https://files.pythonhosted.org/packages/43/2b/96eb1e63f5d3e87a29333e2b5c7d2c7ac08ecdbbd2776388ae7430338c5b/addressValidator-1.0.1-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "40da610e9cf87fee7baec2edd35a5f7d", "sha256": "a3a0801d161d51173b01837a23f1454ef169b4aa27cbff07731d1f686a834a9f" }, "downloads": -1, "filename": "addressValidator-1.0.1.tar.gz", "has_sig": false, "md5_digest": "40da610e9cf87fee7baec2edd35a5f7d", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 4652, "upload_time": "2022-10-16T06:46:37", "upload_time_iso_8601": "2022-10-16T06:46:37.259608Z", "url": "https://files.pythonhosted.org/packages/88/50/10422cd5a3bc3066e3bb8a21883bef97cd84c5894943367f85c6c739883a/addressValidator-1.0.1.tar.gz", "yanked": false, "yanked_reason": null } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "a7bb06de2d2f62e7e3144965b9096e67", "sha256": "80113b7682fca1afbfb13b77079be5b3617ba54ad70e6dc414c55aecea54d0d0" }, "downloads": -1, "filename": "addressValidator-1.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "a7bb06de2d2f62e7e3144965b9096e67", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 4937, "upload_time": "2022-10-16T07:20:23", "upload_time_iso_8601": "2022-10-16T07:20:23.505368Z", "url": "https://files.pythonhosted.org/packages/ba/df/23fd38ad02a9a24267759325db710fa244fd162f232e6ddc29d76f7cc017/addressValidator-1.0.2-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "4a16cde9ef8d9b8db751d955accd4543", "sha256": "f68866b4546e01a60b63f01fde4d6a19d5b82917a40648e2a55691765714e537" }, "downloads": -1, "filename": "addressValidator-1.0.2.tar.gz", "has_sig": false, "md5_digest": "4a16cde9ef8d9b8db751d955accd4543", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 4519, "upload_time": "2022-10-16T07:20:26", "upload_time_iso_8601": "2022-10-16T07:20:26.981410Z", "url": "https://files.pythonhosted.org/packages/e0/6c/12af46aa926bb0b4df2aef6d372b7ac963fe891ec9ea10a27e8fc7b30789/addressValidator-1.0.2.tar.gz", "yanked": false, "yanked_reason": null } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "63be3eff2908190f4ec42f10e983ff94", "sha256": "91d943f46f24b5656cfba7dd5c904fce6f6bcb320ecc79e4b18779a4638ebed5" }, "downloads": -1, "filename": "addressValidator-1.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "63be3eff2908190f4ec42f10e983ff94", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 5183, "upload_time": "2022-10-16T19:16:27", "upload_time_iso_8601": "2022-10-16T19:16:27.256569Z", "url": "https://files.pythonhosted.org/packages/52/d4/7c6243b5a790af31168ba85638561e2acc09f1babc9ae5a747b37169cc1d/addressValidator-1.0.3-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "10f1a8846b273ac007b2cc216b77dd85", "sha256": "44be0c0462c8e89f08905cff3c108ebf822a15bf9341e2c26f825481bca4da6c" }, "downloads": -1, "filename": "addressValidator-1.0.3.tar.gz", "has_sig": false, "md5_digest": "10f1a8846b273ac007b2cc216b77dd85", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 4584, "upload_time": "2022-10-16T19:16:31", "upload_time_iso_8601": "2022-10-16T19:16:31.595231Z", "url": "https://files.pythonhosted.org/packages/34/80/8e107e4e3a5ed6f0566d53a796605b7e5fb1182c6ff2a82e93b0d0f12de9/addressValidator-1.0.3.tar.gz", "yanked": false, "yanked_reason": null } ], "1.2.1": [ { "comment_text": "", "digests": { "md5": "522549d2e31f4745cd0cdc6744f33302", "sha256": "23123511eb581b8c256cde5a9be61b9ff3994c5b3c4a1c44eee18633c8f6afe7" }, "downloads": -1, "filename": "addressValidator-1.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "522549d2e31f4745cd0cdc6744f33302", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 7079, "upload_time": "2022-10-17T22:48:45", "upload_time_iso_8601": "2022-10-17T22:48:45.233035Z", "url": "https://files.pythonhosted.org/packages/20/af/6ca699c367365052fabc08603da8f41f785ef278ec4dee280f852da2e092/addressValidator-1.2.1-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "1ca90f6fe7cb349f4ac5e82ce0878b5b", "sha256": "14a6764312ac02c46772f6c062dcc1b38db3cb1b310a3d3c61e95b753a23e461" }, "downloads": -1, "filename": "addressValidator-1.2.1.tar.gz", "has_sig": false, "md5_digest": "1ca90f6fe7cb349f4ac5e82ce0878b5b", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 6861, "upload_time": "2022-10-17T22:48:47", "upload_time_iso_8601": "2022-10-17T22:48:47.100751Z", "url": "https://files.pythonhosted.org/packages/ad/b2/7bed16cb3569bd692eb7765ea1e953868630059ff720bf2d7b3abaa15229/addressValidator-1.2.1.tar.gz", "yanked": false, "yanked_reason": null } ], "1.2.2": [ { "comment_text": "", "digests": { "md5": "801400b0127da4e8d37050b6fc133e9c", "sha256": "f999d767b8da3fd5b2787edb6019cf7f0571a35363699973415e76457caabeb2" }, "downloads": -1, "filename": "addressValidator-1.2.2-py3-none-any.whl", "has_sig": false, "md5_digest": "801400b0127da4e8d37050b6fc133e9c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 7265, "upload_time": "2022-10-27T02:39:42", "upload_time_iso_8601": "2022-10-27T02:39:42.949611Z", "url": "https://files.pythonhosted.org/packages/0b/d2/73431cc864079ae55440aa60b80a286bbeb4cffc03f725522bd5867ca302/addressValidator-1.2.2-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "3ee6f1e06b964dfeef30c5e1dc984b54", "sha256": "dc011accf04e32664148fa91718aba3f2b7404fa9d8cd615ce93e683801f32a1" }, "downloads": -1, "filename": "addressValidator-1.2.2.tar.gz", "has_sig": false, "md5_digest": "3ee6f1e06b964dfeef30c5e1dc984b54", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 7045, "upload_time": "2022-10-27T02:39:46", "upload_time_iso_8601": "2022-10-27T02:39:46.290687Z", "url": "https://files.pythonhosted.org/packages/46/16/7c5fd5999d91d617dce1a7a856a00585d2fe06e918be1a722bed7495accc/addressValidator-1.2.2.tar.gz", "yanked": false, "yanked_reason": null } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "801400b0127da4e8d37050b6fc133e9c", "sha256": "f999d767b8da3fd5b2787edb6019cf7f0571a35363699973415e76457caabeb2" }, "downloads": -1, "filename": "addressValidator-1.2.2-py3-none-any.whl", "has_sig": false, "md5_digest": "801400b0127da4e8d37050b6fc133e9c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 7265, "upload_time": "2022-10-27T02:39:42", "upload_time_iso_8601": "2022-10-27T02:39:42.949611Z", "url": "https://files.pythonhosted.org/packages/0b/d2/73431cc864079ae55440aa60b80a286bbeb4cffc03f725522bd5867ca302/addressValidator-1.2.2-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "3ee6f1e06b964dfeef30c5e1dc984b54", "sha256": "dc011accf04e32664148fa91718aba3f2b7404fa9d8cd615ce93e683801f32a1" }, "downloads": -1, "filename": "addressValidator-1.2.2.tar.gz", "has_sig": false, "md5_digest": "3ee6f1e06b964dfeef30c5e1dc984b54", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 7045, "upload_time": "2022-10-27T02:39:46", "upload_time_iso_8601": "2022-10-27T02:39:46.290687Z", "url": "https://files.pythonhosted.org/packages/46/16/7c5fd5999d91d617dce1a7a856a00585d2fe06e918be1a722bed7495accc/addressValidator-1.2.2.tar.gz", "yanked": false, "yanked_reason": null } ], "vulnerabilities": [] }