This project includes different phone formatting
Project description
phone-format
phone-format is a Python library for dealing with formatting phone numbers.
Installation
Use the package manager pip or poetry to install rwandaphoneformat.
pip install phone_format
or
poetry add phone_format
Usage
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file phone_format-0.1.6.tar.gz.
File metadata
- Download URL: phone_format-0.1.6.tar.gz
- Upload date:
- Size: 1.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.1 Linux/6.5.0-1025-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eaa3520dfa1fce64d86948d2d3d514906e943358e5e64139260f29574af2f123
|
|
| MD5 |
9df81ee78f289d5dcb908b70d9f8377c
|
|
| BLAKE2b-256 |
7545c816454d9c2775fbf6aa7520c3502c469f7fcd99009399dbfb9b9ff36076
|
File details
Details for the file phone_format-0.1.6-py3-none-any.whl.
File metadata
- Download URL: phone_format-0.1.6-py3-none-any.whl
- Upload date:
- Size: 2.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.1 Linux/6.5.0-1025-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b1fdcd0eca9dbda9b93e3a2cff142d123cc29158fd7d2dfb5ec86686676bef5
|
|
| MD5 |
f26910bec5288ebaaafc33bddb213698
|
|
| BLAKE2b-256 |
98c2cb92dfa37ce8786c9a50db621a017b0b02ea77df886cd7a264c9f4ce5f69
|