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",
"code_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.8.tar.gz
(273.8 kB
view hashes)
Built Distribution
AdresseParser-1.0.8-py3-none-any.whl
(273.0 kB
view hashes)
Close
Hashes for AdresseParser-1.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fa234ac20d1c6977ef98ad7f1f9772f61ed53884877cb421edb16b98fb61868 |
|
MD5 | 2befb03964c3e95f0467cc02093ae029 |
|
BLAKE2b-256 | e2462643eab28c3630b065ae6914bd82f1bace4537aaff5e8f71d41b01fd8336 |