{ "info": { "author": "Sector Labs", "author_email": "open-source@sectorlabs.ro", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3.7" ], "description": "# py-phone-number-fmt\n\n[![License](https://img.shields.io/:license-mit-blue.svg)](http://doge.mit-license.org)\n[![PyPi](https://badge.fury.io/py/py-phone-number-fmt.svg)](https://pypi.python.org/pypi/py-phone-number-fmt)\n[![CircleCI](https://circleci.com/gh/SectorLabs/py-phone-number-fmt/tree/master.svg?style=svg&circle-token=134c614a21ff3a5ca674d34d67d3b65b429b86d8)](https://circleci.com/gh/SectorLabs/py-phone-number-fmt/tree/master)\n\nSanitize, validate and format phone numbers into E.164 valid phone numbers.\n\nGoogle's libphonenumber on steroids. Tries all sorts of crazy combinations in an attempt to create a valid phone number. Useful for those of us who have to deal with poorly sanitized data.\n\n[See the list of test cases](./tests/test_format_phone_number.py)\n\n## Installation\n\n $ pip install py-phone-number-fmt\n\n## Usage\n\n from phonenumberfmt import format_phone_number\n\n # implied phone region is the country of which to\n # use the dialing prefix in case the number appears\n # to be local\n result = format_phone_number('778\\173 0.92', implied_phone_region='RO')\n assert result == '+40778173092'\n\nThe resulting phone number will be formatted according to the E.164 standard. Want to change the output format? Pass the third, optional parameter `fmt` with a valid member of `phonenumbers.NumberFormat`:\n\n from phonenumbers import NumberFormat\n result = format_phone_number(\n '778\\173 0.92',\n implied_phone_region='RO',\n fmt=NumberFormat.INTERNATIONAL, # default is NumberFormat.E164\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/SectorLabs/py-phone-number-fmt", "keywords": "phone number,phone,formatting,validation", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "py-phone-number-fmt", "package_url": "https://pypi.org/project/py-phone-number-fmt/", "platform": "", "project_url": "https://pypi.org/project/py-phone-number-fmt/", "project_urls": { "Homepage": "https://github.com/SectorLabs/py-phone-number-fmt" }, "release_url": "https://pypi.org/project/py-phone-number-fmt/1.0/", "requires_dist": null, "requires_python": "", "summary": "Sanitize, validate and format phone numbers into E.164 valid phone numbers.", "version": "1.0" }, "last_serial": 5975821, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "89f585e1a407eb5ae12d91a2a9ee63fa", "sha256": "29707902770e081816fadc4806363558a5e18598220956903b4cb9e603a2a27d" }, "downloads": -1, "filename": "py-phone-number-fmt-1.0.tar.gz", "has_sig": false, "md5_digest": "89f585e1a407eb5ae12d91a2a9ee63fa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4846, "upload_time": "2019-10-15T09:26:35", "url": "https://files.pythonhosted.org/packages/14/06/1c09d17d21dbc36204b38acbfea225fed70104c238cbc1958c120f476cff/py-phone-number-fmt-1.0.tar.gz" } ], "1.0b1": [ { "comment_text": "", "digests": { "md5": "10c9c9256ad8c47636cba744e14794c3", "sha256": "dc7f4a10e2c0e32177226739a9178968cfa2f0f3055204aa44277f7ad5b3eeab" }, "downloads": -1, "filename": "py-phone-number-fmt-1.0b1.tar.gz", "has_sig": false, "md5_digest": "10c9c9256ad8c47636cba744e14794c3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4844, "upload_time": "2019-09-27T06:06:44", "url": "https://files.pythonhosted.org/packages/b3/cf/d15a42d476c87bcff797e230ed7327950e0d1054ffb2fa5b2a684fe3bfde/py-phone-number-fmt-1.0b1.tar.gz" } ], "1.0b2": [ { "comment_text": "", "digests": { "md5": "3e1559af5d541802e333cd64db85cc3d", "sha256": "b5db591973dbd62a90ff50a19f0010e3ef18e17387a8adbbd46251e94290c7cb" }, "downloads": -1, "filename": "py-phone-number-fmt-1.0b2.tar.gz", "has_sig": false, "md5_digest": "3e1559af5d541802e333cd64db85cc3d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4861, "upload_time": "2019-09-27T07:58:58", "url": "https://files.pythonhosted.org/packages/23/32/1fc565096bc97d68e8af30e93d44965bf93388ea2cf6eb4a0ef60194bb83/py-phone-number-fmt-1.0b2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "89f585e1a407eb5ae12d91a2a9ee63fa", "sha256": "29707902770e081816fadc4806363558a5e18598220956903b4cb9e603a2a27d" }, "downloads": -1, "filename": "py-phone-number-fmt-1.0.tar.gz", "has_sig": false, "md5_digest": "89f585e1a407eb5ae12d91a2a9ee63fa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4846, "upload_time": "2019-10-15T09:26:35", "url": "https://files.pythonhosted.org/packages/14/06/1c09d17d21dbc36204b38acbfea225fed70104c238cbc1958c120f476cff/py-phone-number-fmt-1.0.tar.gz" } ] }