Skip to main content

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

MIT

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

phone_format-0.1.4.tar.gz (1.6 kB view details)

Uploaded Source

Built Distribution

phone_format-0.1.4-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

Details for the file phone_format-0.1.4.tar.gz.

File metadata

  • Download URL: phone_format-0.1.4.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-1021-azure

File hashes

Hashes for phone_format-0.1.4.tar.gz
Algorithm Hash digest
SHA256 2f2b9c70a82496c832b05b43129e47a5bb33a764d485fbaeffa3de72d3e708e6
MD5 93e5b1c17e738f7e30f62f66b7d8febc
BLAKE2b-256 7d311e29e694f8e5b6a31322f3024205975d25ff4ad250eac07b17bcbba9f164

See more details on using hashes here.

File details

Details for the file phone_format-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: phone_format-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 2.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.1 Linux/6.5.0-1021-azure

File hashes

Hashes for phone_format-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 af5744f2fbe6556b786505ed4916f669f03b0d491dc40da34a9d92969633a6d7
MD5 fd7e2fc1ffec76dc98e1da7e7ef9db09
BLAKE2b-256 3bf2bf6091e7547de0140471a816188b115d6c9aa0afbd96e8e75f18ef5f0780

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page