Skip to main content

Tests Python Version PyPI version License: MIT

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 bisect appliqué à 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': 'Orange', 'zone': 'Métropole'}

Avertissement : Portabilité des numéros

En raison de la portabilité des numéros en France, l'opérateur renvoyé correspond à l'attributaire initial de la tranche de numérotation (fourni par l'ARCEP), et non nécessairement à l'opérateur réel chez qui le client a porté son numéro. Cette bibliothèque permet d'identifier l'affectation théorique d'une ligne, mais ne peut pas refléter les changements individuels liés à la portabilité.

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.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fr-phonenumbers 0.1.1
File Size Uploaded
fr_phonenumbers-0.1.1.tar.gz 200.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fr-phonenumbers 0.1.1
File Interpreter ABI Platform
fr_phonenumbers-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 409.8 kB

Release files / fr_phonenumbers-0.1.1.tar.gz

Download URL fr_phonenumbers-0.1.1.tar.gz
Size 200.4 kB
Tags Source
SHA-256 checksum
How to use checksums
4897e76a33732d7f438d1075de8b39ecf4c969910aa1312b83c421f7a16e97cb
BLAKE2b-256 checksum
How to use checksums
4f51091a5e1e3d0c6c396f690b5cc88a5cacf571c5f94ecafe322f7447bfffac
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 16, 2026.

Transparency log

Release files / fr_phonenumbers-0.1.1-py3-none-any.whl

Download URL fr_phonenumbers-0.1.1-py3-none-any.whl
Size 209.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
70f3573aa811f305946b82a4619292978801b620c8d536563f5a509951e5894a
BLAKE2b-256 checksum
How to use checksums
e3f4a6e2adb10a88f9f9053b356b5fdd73794ca74da43d5afa23fc00d83c6a0e
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 16, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page