No project description provided
Project description
rwandaphoneformat
rwandaphoneformat is a Python library for dealing with formtatting rwandan phone numbers.
Installation
Use the package manager pip or poetry to install rwandaphoneformat.
pip install rwandaphoneformat
or
poetry add rwandaphoneformat
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
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file rwandaphoneformat-0.1.11.tar.gz
.
File metadata
- Download URL: rwandaphoneformat-0.1.11.tar.gz
- Upload date:
- Size: 1.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.0 Linux/6.2.0-1012-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb9caee5472db4d7f095509dc1ddade67a137280e6a39f24b63a62a02abf3e41 |
|
MD5 | 3b320d229720d1cb02e8a0fa338c7f29 |
|
BLAKE2b-256 | 0d09466cfea444c2bc91a0243d527a665a4be67f53d9750b62a2c778c983bffd |
File details
Details for the file rwandaphoneformat-0.1.11-py3-none-any.whl
.
File metadata
- Download URL: rwandaphoneformat-0.1.11-py3-none-any.whl
- Upload date:
- Size: 2.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.0 Linux/6.2.0-1012-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 254f8eaf7bbb148274dcc0ee2e547780e7deaea645d66acfccac684fc3f6c9dc |
|
MD5 | 8af64d1bd5171a11dc29e242c9407aad |
|
BLAKE2b-256 | d05a46e673b9fdebbe229d570d2bb82886d4370d3c5a7ad507836820690dabb7 |