graphPaname/app/constants.py

41 lines
1.2 KiB
Python
Raw Normal View History

2020-05-21 18:50:00 +02:00
datasets = [
"coronavirus-commercants-parisiens-livraison-a-domicile",
"deconfinement-pistes-cyclables-temporaires",
"deconfinement-parking-relais-doublement-des-places",
2020-05-21 18:50:00 +02:00
]
url = "https://opendata.paris.fr/api/records/1.0/search/?dataset={}&q=&rows=-1"
filenames = {
"coronavirus-commercants-parisiens-livraison-a-domicile": "home-delivery",
"deconfinement-pistes-cyclables-temporaires": "cycling-paths",
"deconfinement-parking-relais-doublement-des-places": "relay-parking",
}
2020-05-27 20:13:45 +02:00
files = {
2020-05-27 20:45:21 +02:00
"cycling-paths": "data/cycling-paths.json",
"relay-parking": "data/relay-parking.json",
"home-delivery": "data/home-delivery.json",
2020-05-27 20:13:45 +02:00
}
2020-05-27 21:25:08 +02:00
columns = {
"cycling-paths": ["geo_shape", "statut", "record_timestamp", "complement"],
"relay-parking": [
"societe",
"nb_places_dispositif_environ",
"parcs",
"geo_shape",
"cp",
"ville",
"adresse",
],
"home-delivery": [
"geo_shape",
"adresse",
"code_postal",
"nom_du_commerce",
"type_du_commerce",
"site_internet",
"record_timestamp",
"precisions",
"telephone",
"mail",
],
}