
     i                         d Z ddlZddlZddlmZ  ej        d          Z ee          j        j        dz  Z	de
defdZdS )	uT   
ICAC Commune Data — données statiques commune
Charge depuis config/commune.json
    N)Pathzicac.communeconfiginseereturnc                    t           dz  }|                                ru	 t          j        |                                          }|                    d          | k    r|S n2# t          $ r%}t                              d|           Y d}~nd}~ww xY w| dk    rHi dddd	ddd
dddddddddddddddddddddd d!d"d#d$d%d&d'd(d)d*d+d,d-d.d/g d0d1d2S dS )3z+Load commune data from config/commune.json.zcommune.jsonr   zFailed to read commune.json: %sN30034nomu	   BESSÈGES	nom_courtu	   Bessègescp30160departement30departement_nomGARDregion76
region_nom	OCCITANIE
populationi  superficie_km2gffffff;@employes_municipaux*   budget_fonctionnementi 0 budget_investissementi@B budget_totalu   4.2 M€mairez	M. SALLES
mandat_fin2026nb_conseillers   z< 5 000 HAB.z
2026-02-24u   24 FÉV. 2026z*https://www.besseges.fr/conseil-municipal/   )datedate_displayurl_pvnb_deliberationsz2026-01z	JAN. 2026z+https://www.besseges.fr/bulletin-municipal/)r"   r#   url)zdata.gouv.frsirenezaides-territoireszjo-associationsboamp/   )stratedernier_conseildernier_bulletinsources_activesdocs_indexes)	
CONFIG_DIRexistsjsonloads	read_textget	Exceptionlogwarning)r   config_filedataes       +/var/www/icac/agents_python/commune_data.pyget_commune_datar<      s   ~-K >	>:k335566Dxx  E)) * 	> 	> 	>KK91========	> #
;#
#
 W#
 '	#

 4#
 v#
 d#
 +#
 $#
 d#
 "2#
 $W#
 $W#
 J#
 [#
  &!#
" b##
$ %$ /F$%	    " +D! !
      E#
 #
 #
 #	
J 4s   A A" "
B,BB)__doc__r1   loggingpathlibr   	getLoggerr6   __file__parentr/   strdictr<        r;   <module>rG      s    
        g''T(^^")H4
3C 3D 3 3 3 3 3 3rF   