Parser d'adresses françaises
Project description
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
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-0.1.2.tar.gz
(271.2 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-0.1.2-py3-none-any.whl
(271.8 kB
view details)
File details
Details for the file AdresseParser-0.1.2.tar.gz.
File metadata
- Download URL: AdresseParser-0.1.2.tar.gz
- Upload date:
- Size: 271.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
351ab363f539b955c38a78f2b9e4960c35258892426add607f837ca16a1af956
|
|
| MD5 |
2778a7d807e4b9503691a5dd39dc5c1b
|
|
| BLAKE2b-256 |
7df33f094d5c3a513ec9d3b2c25fcc257505c9e0ebf9a375e19b929d19431378
|
File details
Details for the file AdresseParser-0.1.2-py3-none-any.whl.
File metadata
- Download URL: AdresseParser-0.1.2-py3-none-any.whl
- Upload date:
- Size: 271.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d65b8fe125757cd2bad9be8f53037d7c8d2976df17ac75ba850727ce22a9ac52
|
|
| MD5 |
4f5da109db263d65f84c399aa78c15dd
|
|
| BLAKE2b-256 |
606fadbefd10e5bb9e4837f0f3c1f429675d41a121f4ea787700849b49bef63f
|