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 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'}, '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"
     },
    "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-0.1.5.tar.gz (272.8 kB view details)

Uploaded Source

Built Distribution

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

AdresseParser-0.1.5-py3-none-any.whl (272.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: AdresseParser-0.1.5.tar.gz
  • Upload date:
  • Size: 272.8 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-0.1.5.tar.gz
Algorithm Hash digest
SHA256 df35e3a86b93dff92f18d222ec479f2743eda5ad4e48c45d5b764a39a7803dd1
MD5 ffe696a6e8c0d8ef184f31aed288cd32
BLAKE2b-256 8d5e7256cbe17f96bca999fce8169a088d6f1ec648074cf9156645a4d76eb8c7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: AdresseParser-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 272.2 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-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 12c6c5d956ce1dfae32f271cc0e7888f7dcad361856df44ce10c39ac7ac36753
MD5 2a186e4222e1e1300c3dc7d89af3d9cd
BLAKE2b-256 4d2a075de89deb2a254774ce00bb41e2b3ce6efd83714e3c650889e0658946eb

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