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 rwandaphoneformat import in_250_format

# returns '250780000000'
in_250_format('0780000000')

# returns '250780000000'
in_250_format('+250780000000')

# returns '250780000000'
in_250_format('780000000')

# returns '250780000000'
in_250_format('250780000000')

# returns '1', here it returns the input, 
# if the input is not formatted as a Rwandan phone
in_250_format('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.0.tar.gz (1.6 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: phone_format-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 ff2bdd0128e620711c4efd145c95bde6d994794f286e0e0c8425a6c372e7de2e
MD5 1f50fa27c7bdb6b01fad2a911a066220
BLAKE2b-256 02f40c2803cbecd9f0cff42f380d0b3fa915ce4187230d56a315f4cb8d0ec463

See more details on using hashes here.

File details

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

File metadata

  • Download URL: phone_format-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f10825665182c8fd007279b331a882e296a39a1bdc0ba1e42766ff69b7fd8dd8
MD5 a389b3aa57f1801fd6c2372408c51046
BLAKE2b-256 56449da34f6184a21e7226e106f3cbb9f94d7b91d2a1d8769434d9b6075bed2a

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