fr-phonenumbers
Bibliothèque Python ultra-légère et sans dépendance externe pour identifier l'opérateur et la zone des numéros de téléphone français.
Le Parti Pris
Contrairement aux bibliothèques lourdes et complexes, fr-phonenumbers fait le choix de la simplicité et de la robustesse :
- Zero dépendance : Utilise exclusivement la bibliothèque standard de Python.
- 100% Autonome (Offline-friendly) : Les données sont embarquées directement dans le paquet. Aucun téléchargement réseau à l'exécution, ce qui garantit un fonctionnement parfait derrière les proxys d'entreprise.
- Performance ($O(\log N)$) : La recherche s'appuie sur le module natif
bisectappliqué à des plages de numéros triées, offrant des performances instantanées.
Installation
pip install fr-phonenumbers
Utilisation rapide
from fr_phonenumbers import get_operator
resultat = get_operator("0105712345")
print(resultat)
# Sortie : {'code': 'FRTE', 'operator': '...', 'zone': 'Métropole'}
Sources des Données
Les données de numérotation sont issues des publications officielles de l'ARCEP sur data.gouv.fr :
Licence
Distribué sous licence MIT. Voir le fichier LICENSE pour plus de détails.
Metadata
Release files for fr-phonenumbers 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fr_phonenumbers-0.1.0.tar.gz | 200.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fr_phonenumbers-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 409.4 kB
Release files / fr_phonenumbers-0.1.0.tar.gz
| Download URL | fr_phonenumbers-0.1.0.tar.gz |
|---|---|
| Size | 200.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cf32fc153f7b7729c2fe9c8b636fa7e02b94e265bf558cf15f11454b1d1d1277
|
|
BLAKE2b-256 checksum How to use checksums |
30dc1cc4bcf20a9520bc113ae306fe4daf47409c1cf9e5875e9ba6263522c6b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 11, 2026.
Transparency logRelease files / fr_phonenumbers-0.1.0-py3-none-any.whl
| Download URL | fr_phonenumbers-0.1.0-py3-none-any.whl |
|---|---|
| Size | 209.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0295cd98c356b857d4778d48204795e00ae940729ca65aa2d963bf875fc7fdfb
|
|
BLAKE2b-256 checksum How to use checksums |
b05f479a18ce27fd1db09f3ebf755c27b8e7271a25d01f0e162e08beeda555cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 11, 2026.
Transparency log