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', '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",
    "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.4.tar.gz (272.5 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.4-py3-none-any.whl (272.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: AdresseParser-0.1.4.tar.gz
  • Upload date:
  • Size: 272.5 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.4.tar.gz
Algorithm Hash digest
SHA256 029fcf093846397e88fefeffeb221b899b3d07651000740faf34a9eb23acb9fb
MD5 60bdf6df11b95edaf75d929007654c76
BLAKE2b-256 dfb1b8e5fe9cb9eb0abd2dc711254f244a0cfa5a0aee61963143c73486ac2e12

See more details on using hashes here.

File details

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

File metadata

  • Download URL: AdresseParser-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 272.1 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6a52e2b95b995034bfcc1e872ce1c903403da0d2ab3c2d9b6b715fb3317b6e7f
MD5 f23263810f1675cf8fd5e36d02313d2d
BLAKE2b-256 f9d00430a105735d713b3d3b9d5a479e6af2a365e6e5123f31adbf75253034f9

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