rodukov / autonumber

Useful utility that allows you to generate cell phone numbers of all countries of the world

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Auto Number Awesome

Useful utility that allows you to generate cell phone numbers of all countries of the world

Installing

Via pypi(recommended)

pip3 install autonumber - Mac & Linux
pip install autonumber - Windows

Via github

git clone https://github.com/rodukov/autonumber
cd autonumber

Documentation

Method autonumber.load

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

Example

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']

About

Useful utility that allows you to generate cell phone numbers of all countries of the world

License:GNU General Public License v3.0


Languages

Language:Python 100.0%