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', '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
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.1.tar.gz
(273.2 kB
view hashes)
Built Distribution
AdresseParser-1.0.1-py3-none-any.whl
(272.6 kB
view hashes)
Close
Hashes for AdresseParser-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da334605a4e2deae1dcc68a23b5a596eb522d7311e5200397f449063c0abcdfb |
|
MD5 | e7f66071382317ae94defc8c533fbfed |
|
BLAKE2b-256 | d65c6bbc72fcd50528eb940d1896689eee80fb7365db09619e70b592172b0cef |