Useful utility that allows you to generate cell phone numbers of all countries of the world
pip3 install autonumber
- Mac & Linux
pip install autonumber
- Windows
git clone https://github.com/rodukov/autonumber
cd autonumber
Command | Description | Optional |
---|---|---|
country_tag | This is the country code | no |
operator_tag | operator code | no |
max_length | number length, without plus sign | no |
minimum | range beginning | yes, 0 by default |
maximum | end of range | yes, maximum default value by default |
This example generates Polish numbers.
>>> from autonumber import autonumber
>>> numbers = autonumber.load(country_tag="48", operator_tag="532", max_length=11, minimum=0, maximum=25)
>>> print(numbers)
['+48532000000', '+48532000001', '+48532000002', '+48532000003', '+48532000004', '+48532000005', '+48532000006', '+48532000007', '+48532000008', '+48532000009', '+48532000010', '+48532000011', '+48532000012', '+48532000013', '+48532000014', '+48532000015', '+48532000016', '+48532000017', '+48532000018', '+48532000019', '+48532000020', '+48532000021', '+48532000022', '+48532000023', '+48532000024', '+48532000025']