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 pip install
pip install ru-phone-parser
fast start
import phoneparser
parser = phoneparser.PhoneParser()
print(parser.parse('79161234567'))
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('79275842018')
# Второй запрос с тем же номером — из кэша (быстрее)
result2 = parser.parse('78123334455')
Metadata
Release files for ru-phone-parser 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ru_phone_parser-1.0.2.tar.gz | 228.4 kB | Without provenance | Details for ru_phone_parser-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ru_phone_parser-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for ru_phone_parser-1.0.2-py3-none-any.whl |
Total release size: 482.7 kB
Release files / ru_phone_parser-1.0.2.tar.gz
| Download URL | ru_phone_parser-1.0.2.tar.gz |
|---|---|
| Size | 228.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
64fcf316f521a675fb955db2c6690ca5275b46c77aeeff76cb33bb93405ca297
|
|
BLAKE2b-256 checksum How to use checksums |
ac1932cec7a6d449364b05834ffcfe382232d097ddee5e956bddf4dc319293b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.0
|
Release files / ru_phone_parser-1.0.2-py3-none-any.whl
| Download URL | ru_phone_parser-1.0.2-py3-none-any.whl |
|---|---|
| Size | 254.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
33d769510377235b65eb4768acca9430ed608a0ef87f5b83bd44e17e1d1e90af
|
|
BLAKE2b-256 checksum How to use checksums |
f330fb429005dcb68db307fc63abe44bf6ce3345bb30f81bca78445c0a0e12f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.0
|
Security for ru-phone-parser 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.