Skip to main content

Parser d'adresses françaises

Project description

GitHub GitHub contributors Python package PyPI PyPI - Format Build Status GitHub Release Date

AddresseParser

Package Python pour parser et comparer les adresses françaises.

Lancement

Package disponible sur PyPI

Vous pouvez l'installer avec pip:

pip install AdresseParser

Exemple d'utilisation en console Python:

>>> from AdresseParser import AdresseParser
>>> adr_parser = AdresseParser()
>>> result = adr_parser.parse("88 rue de rivoli 75002 paris")
>>> print(result)
{'numero': '88', 'indice': None, 'rue': {'type': 'RUE', 'nom': 'RIVOLI'}, 'code_postal': '75002', 'ville': {'arrondissement': 2, 'nom': 'PARIS'}, 'cedex': [], 'departement': {'numero': 75, 'nom': 'Paris'}, 'region': 'Île-de-France', 'pays': 'France'}
>>> print(result['rue'])
{'type': 'RUE', 'nom': 'RIVOLI'}
>>> print(result['ville']['arrondissement'])
2

Return

{
    "numero": "str",
    "indice": "str",
    "rue":{
          "type": "str",
          "nom": "str"
     },
    "code_postal": "str",
    "ville": {
          "arrondissement": "int",
          "nom": "str"
     },
     "cedex":[
       {
        "libelle": "str",
        "code_insee": "str"
       }
     ],
    "departement": {
          "numero": "str",
          "nom": "str"
     },
    "region": "str",
    "pays": "France"
 }

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

AdresseParser-1.0.6.tar.gz (273.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

AdresseParser-1.0.6-py3-none-any.whl (273.0 kB view details)

Uploaded Python 3

File details

Details for the file AdresseParser-1.0.6.tar.gz.

File metadata

  • Download URL: AdresseParser-1.0.6.tar.gz
  • Upload date:
  • Size: 273.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

File hashes

Hashes for AdresseParser-1.0.6.tar.gz
Algorithm Hash digest
SHA256 84257bec906f9f1e7af4174869b37f503b6b9cacadc2d034de0d9a4205af14dc
MD5 62bd9cd7dd3d4bb7653c3270a25028ba
BLAKE2b-256 6f70857468468e818e959769baa970825682e12c3208781682122069c049591f

See more details on using hashes here.

File details

Details for the file AdresseParser-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: AdresseParser-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 273.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

File hashes

Hashes for AdresseParser-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 24c8ff09386cd3af58757d85368bfb71a78e490369899e39a16bdb81518c2e88
MD5 72a13aea0551c4d01dffb8c7050e3fbc
BLAKE2b-256 f1b32471bea6f6f45be8cb66f1514586cf93f214c0b9790b1eb45c63dea808cc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page