insee_number_translator/README.md

27 lines
673 B
Markdown
Raw Normal View History

2019-07-11 00:03:31 +02:00
# INSEE number translator
Extract data from INSEE number (France)
2021-08-06 15:37:45 +02:00
## Getting started
2021-08-06 16:03:24 +02:00
### From package
```shell
# activate your venv
python -m pip install insee-number-translator
insee 269059913116714 168127982980507
```
2021-08-06 15:37:45 +02:00
2021-08-06 16:03:24 +02:00
### From sources
2021-08-06 15:37:45 +02:00
```shell
2021-08-06 16:03:24 +02:00
pyenv virtualenv 3.7.9 insee
2021-08-06 15:37:45 +02:00
pyenv local insee
poetry install
2021-08-06 16:01:19 +02:00
# restart your shell
2021-08-06 15:56:08 +02:00
insee 269059913116714 168127982980507
2021-08-06 15:37:45 +02:00
```
2019-07-11 00:03:31 +02:00
## Data sources
2021-08-06 16:03:24 +02:00
* cities : https://public.opendatasoft.com/explore/dataset/correspondance-code-insee-code-postal/export/
* countries : https://www.insee.fr/fr/information/2028273
* departments : https://www.data.gouv.fr/fr/datasets/regions-departements-villes-et-villages-de-france-et-doutre-mer/