graphPaname/constants.py

41 lines
1.3 KiB
Python
Raw Normal View History

2020-06-05 13:48:47 +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
]
2020-06-05 13:48:47 +02:00
URL = "https://opendata.paris.fr/api/records/1.0/search/?dataset={}&q=&rows=-1"
FILES = {
2020-06-10 21:49:58 +02:00
"deconfinement-pistes-cyclables-temporaires": "data/cycling-paths.json",
"deconfinement-parking-relais-doublement-des-places": "data/relay-parking.json",
"coronavirus-commercants-parisiens-livraison-a-domicile": "data/home-delivery.json",
2020-05-27 20:13:45 +02:00
}
2020-06-05 13:48:47 +02:00
COLUMNS = {
2020-06-10 21:49:58 +02:00
"deconfinement-pistes-cyclables-temporaires": [
"fields.geo_shape.coordinates",
"fields.statut",
2020-06-05 15:24:16 +02:00
"record_timestamp",
2020-06-10 21:49:58 +02:00
"fields.complement",
2020-06-05 15:24:16 +02:00
],
2020-06-10 21:49:58 +02:00
"deconfinement-parking-relais-doublement-des-places": [
"fields.societe",
"fields.nb_places_dispositif_environ",
"fields.parcs",
"fields.geo_shape.coordinates",
"fields.cp",
"fields.ville",
"fields.adresse",
2020-05-27 21:25:08 +02:00
],
2020-06-10 21:49:58 +02:00
"coronavirus-commercants-parisiens-livraison-a-domicile": [
"fields.geo_shape.coordinates",
"fields.adresse",
"fields.code_postal",
"fields.nom_du_commerce",
"fields.type_de_commerce",
"fields.site_internet",
2020-05-27 21:25:08 +02:00
"record_timestamp",
2020-06-10 21:49:58 +02:00
"fields.precisions",
"fields.telephone",
"fields.mail",
2020-05-27 21:25:08 +02:00
],
}