Parser d'adresses françaises
Project description
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",
"codde_insee": "str"
}
],
"departement": {
"numero": "str",
"nom": "str"
},
"region": "str",
"pays": "France"
}
Project details
Release history Release notifications | RSS feed
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.3.tar.gz
(273.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
AdresseParser-1.0.3-py3-none-any.whl
(273.0 kB
view details)
File details
Details for the file AdresseParser-1.0.3.tar.gz.
File metadata
- Download URL: AdresseParser-1.0.3.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
220e271a6c32cace9267edb0a7094b61eda69640f6942e67762174c4c358dce5
|
|
| MD5 |
340763c0192418e49dac5f3ebf7eceea
|
|
| BLAKE2b-256 |
687b5a468def3af7af4edde238fc8a71b567a2693e8e04df8c233cc114fbcf9e
|
File details
Details for the file AdresseParser-1.0.3-py3-none-any.whl.
File metadata
- Download URL: AdresseParser-1.0.3-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
024f0dbfe96ea3b144a02828bccee985c48e22b877bb20ff14866afd57586a82
|
|
| MD5 |
9c06907feb55db0dd4be64d428cd60de
|
|
| BLAKE2b-256 |
0cd3822e623d5a8dcdeb1147eed8ad9bdb3cd9b5ee6f8e5489ade86ddf22088f
|