From d1ad81abfe1cd318f8165c151bcf278a696cf67d Mon Sep 17 00:00:00 2001 From: Colas Geier Date: Wed, 22 May 2024 16:40:34 +0200 Subject: [PATCH] maj connection --- 0_FONCIER/CADASTRE/agregg_cadastre.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/0_FONCIER/CADASTRE/agregg_cadastre.py b/0_FONCIER/CADASTRE/agregg_cadastre.py index 86aa907..6347e2c 100644 --- a/0_FONCIER/CADASTRE/agregg_cadastre.py +++ b/0_FONCIER/CADASTRE/agregg_cadastre.py @@ -6,23 +6,12 @@ from sqlalchemy.engine import URL from sqlalchemy import create_engine import pandas as pd import geopandas as gpd +from pycen import con_cad # pg_dump -h 91.134.194.221 -d cadastre -U cgeier --schema="38_202207" -s > 38_202207.sql # psql -h 91.134.194.221 -U cgeier -d cadastre -a -f 38_202207.sql -user = 'cgeier' -pwd = 'adm1n*bdCen' -adr = '91.134.194.221' -base = 'cadastre' -url = URL.create('postgresql+psycopg2', - username=user, - password=pwd, - host=adr, - database=base, -) -con_cad = create_engine(url) - lst_sch = con_cad.dialect.get_schema_names(con_cad) lst_sch = ['07_202207','26_202207','42_202207']