Skip to content

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

License

Notifications You must be signed in to change notification settings

rodukov/autonumber

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages