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.9.tar.gz (338.6 kB view details)

Uploaded Source

Built Distribution

AdresseParser-1.0.9-py3-none-any.whl (351.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: AdresseParser-1.0.9.tar.gz
  • Upload date:
  • Size: 338.6 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.9.tar.gz
Algorithm Hash digest
SHA256 338543ce8c57873b2a6c8ae9b2dc833d6229c74daa520368ee5805665ae75776
MD5 dbe00b4dd405ff233d176d7bf52e24eb
BLAKE2b-256 be76ad5a1d6c28aa3129ab9a13808818b84f7b055c911242e8ce8ed9fe0d1486

See more details on using hashes here.

File details

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

File metadata

  • Download URL: AdresseParser-1.0.9-py3-none-any.whl
  • Upload date:
  • Size: 351.3 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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 d03276447e5223aa11eb124d1ce049395eacf8e6ae5a01a8c9e2bda861525683
MD5 b9b9ddd5dc7bd95faff8bd622c3138b6
BLAKE2b-256 7bbf3badf66cde4872f2b39a944bd39a86b0086a44dd20a181aa3bb2fbcb5d74

See more details on using hashes here.

Supported by

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