graphPaname/app/constants.py

41 lines
1.2 KiB
Python

DATASETS = [
"coronavirus-commercants-parisiens-livraison-a-domicile",
"deconfinement-pistes-cyclables-temporaires",
"deconfinement-parking-relais-doublement-des-places",
]
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",
}
FILES = {
"cycling-paths": "data/cycling-paths.json",
"relay-parking": "data/relay-parking.json",
"home-delivery": "data/home-delivery.json",
}
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",
],
}