library for get operation and region to phone number Russia
Project description
phoneparser library
library for get operation and region to phone number Russia
install
git clone https://github.com/The-wartexny/phoneparser.git
cd phoneparser
or install to pip
pip install phoneparser
fast start
import phoneparser
parser = phoneparser.PhoneParser()
print(parser.parse('79272097409'))
batch processing
from phoneparser import PhoneParser
parser = PhoneParser()
numbers = ['79275842018', '79161234567', '+78123334455']
results = parser.parse_batch(numbers)
for number, info in results.items():
print(f"{number}: {info['operator']} - {info['region']}")
working with the cache
parser = PhoneParser()
# Первый запрос — загрузка из базы
result1 = parser.parse('79272097409')
# Второй запрос с тем же номером — из кэша (быстрее)
result2 = parser.parse('79272097409')
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
ru_phone_parser-1.0.0.tar.gz
(227.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ru_phone_parser-1.0.0.tar.gz.
File metadata
- Download URL: ru_phone_parser-1.0.0.tar.gz
- Upload date:
- Size: 227.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55bd6eb24dc291462320dbef5b9055d780e4f991535cc41e325bd5fca2b3481f
|
|
| MD5 |
6176d323abc2bff20620573809e56619
|
|
| BLAKE2b-256 |
88412ce1a9e54c13b8cdd6daafbeff312603bbb8a7f12a1a26e93f546ab45fa1
|
File details
Details for the file ru_phone_parser-1.0.0-py3-none-any.whl.
File metadata
- Download URL: ru_phone_parser-1.0.0-py3-none-any.whl
- Upload date:
- Size: 253.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0729bedf753820c096f027f78fc68e37b9f95c7c895029bfd1d7d73837ffa51a
|
|
| MD5 |
cb1246043e419c8657f6909915c0cc38
|
|
| BLAKE2b-256 |
07543db196a3ab8e6977c8952a6122e1669be9393e3a2572286ae7220aacb708
|