Name | phone_format JSON |
Version |
0.1.5
JSON |
| download |
home_page | None |
Summary | This project includes different phone formatting |
upload_time | 2024-06-13 20:44:34 |
maintainer | None |
docs_url | None |
author | Jean Eric TUYISHIMIRE |
requires_python | <4.0,>=3.8 |
license | MIT |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# phone-format
phone-format is a Python library for dealing with formatting phone numbers.
## Installation
Use the package manager [pip](https://pip.pypa.io/en/stable/)
or [poetry](https://python-poetry.org/) to install rwandaphoneformat.
```bash
pip install phone_format
```
or
```bash
poetry add phone_format
```
## Usage
```python
from phone_format.format_phone import RwandaPhoneFormat
# returns '250780000000'
RwandaPhoneFormat.format_phone('0780000000')
# returns '250780000000'
RwandaPhoneFormat.format_phone('+250780000000')
# returns '250780000000'
RwandaPhoneFormat.format_phone('780000000')
# returns '250780000000'
RwandaPhoneFormat.format_phone('250780000000')
# returns '1', here it returns the input,
# if the input is not formatted as a Rwandan phone
RwandaPhoneFormat.format_phone('1')
```
## Contributing
Pull requests are welcome. For major changes, please open an issue first
to discuss what you would like to change.
## License
[MIT](https://choosealicense.com/licenses/mit/)
Raw data
{
"_id": null,
"home_page": null,
"name": "phone_format",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.8",
"maintainer_email": null,
"keywords": null,
"author": "Jean Eric TUYISHIMIRE",
"author_email": "81187224+tjeaneric@users.noreply.github.com",
"download_url": "https://files.pythonhosted.org/packages/dc/f7/aff1a4b6c7d835711d935ae35ad9952575b030cf62c1cb46b52e50d9ae6f/phone_format-0.1.5.tar.gz",
"platform": null,
"description": "# phone-format\n\nphone-format is a Python library for dealing with formatting phone numbers.\n\n## Installation\n\nUse the package manager [pip](https://pip.pypa.io/en/stable/)\nor [poetry](https://python-poetry.org/) to install rwandaphoneformat.\n\n```bash\npip install phone_format\n```\n\nor\n\n```bash\npoetry add phone_format\n```\n\n## Usage\n\n```python\nfrom phone_format.format_phone import RwandaPhoneFormat\n\n# returns '250780000000'\nRwandaPhoneFormat.format_phone('0780000000')\n\n# returns '250780000000'\nRwandaPhoneFormat.format_phone('+250780000000')\n\n# returns '250780000000'\nRwandaPhoneFormat.format_phone('780000000')\n\n# returns '250780000000'\nRwandaPhoneFormat.format_phone('250780000000')\n\n# returns '1', here it returns the input, \n# if the input is not formatted as a Rwandan phone\nRwandaPhoneFormat.format_phone('1')\n```\n\n## Contributing\n\nPull requests are welcome. For major changes, please open an issue first\nto discuss what you would like to change.\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)",
"bugtrack_url": null,
"license": "MIT",
"summary": "This project includes different phone formatting",
"version": "0.1.5",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "2076bdb2dd429b2e4ea3549643f71b6e1091cd1b294ad0c5c875bc884d339696",
"md5": "8a7f40846f90f3a77ad8b2a640665317",
"sha256": "27a5ba1cd830af7479a8ff541ecad45c6d04198d864f9c77f915b7aa31f429a1"
},
"downloads": -1,
"filename": "phone_format-0.1.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "8a7f40846f90f3a77ad8b2a640665317",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.8",
"size": 2148,
"upload_time": "2024-06-13T20:44:33",
"upload_time_iso_8601": "2024-06-13T20:44:33.382296Z",
"url": "https://files.pythonhosted.org/packages/20/76/bdb2dd429b2e4ea3549643f71b6e1091cd1b294ad0c5c875bc884d339696/phone_format-0.1.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "dcf7aff1a4b6c7d835711d935ae35ad9952575b030cf62c1cb46b52e50d9ae6f",
"md5": "2e505434b2b0e0da5d99292046a92560",
"sha256": "d1e1fddbe0c2190c08ad0dec2f826ed4ac4b2bfd13efa6b78f616f195daf86be"
},
"downloads": -1,
"filename": "phone_format-0.1.5.tar.gz",
"has_sig": false,
"md5_digest": "2e505434b2b0e0da5d99292046a92560",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.8",
"size": 1595,
"upload_time": "2024-06-13T20:44:34",
"upload_time_iso_8601": "2024-06-13T20:44:34.670724Z",
"url": "https://files.pythonhosted.org/packages/dc/f7/aff1a4b6c7d835711d935ae35ad9952575b030cf62c1cb46b52e50d9ae6f/phone_format-0.1.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-06-13 20:44:34",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "phone_format"
}