OpenFisca-France-Local 6.11.9__py3-none-any.whl → 6.12.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of OpenFisca-France-Local might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: OpenFisca-France-Local
3
- Version: 6.11.9
3
+ Version: 6.12.0
4
4
  Summary: Extension OpenFisca pour nos partenariats avec les collectivités territoriales
5
5
  Home-page: https://github.com/openfisca/openfisca-france-local
6
6
  Author: OpenFisca Team
@@ -1,4 +1,4 @@
1
- OpenFisca_France_Local-6.11.9.data/scripts/openfisca_local_test,sha256=M55UQ5tskwZpJVLXGqlIcVs1nVZ2pBr_-R9jh-z2tbw,128
1
+ OpenFisca_France_Local-6.12.0.data/scripts/openfisca_local_test,sha256=M55UQ5tskwZpJVLXGqlIcVs1nVZ2pBr_-R9jh-z2tbw,128
2
2
  openfisca_france_local/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  openfisca_france_local/aides_jeunes_reform.py,sha256=ai1nfE0WPmBjTNSc3WoYQ71kOquaTEjdX8iOheistK0,16418
4
4
  openfisca_france_local/convert_benefit_conditions_to_parameters.py,sha256=qMQNMQKJh-m77KWvbAaMxO2VHB8SwUtVw80c7r7YeFc,6304
@@ -100,6 +100,7 @@ openfisca_france_local/parameters/regions/hauts_de_france/aide_garde_enfant.yml,
100
100
  openfisca_france_local/parameters/regions/hauts_de_france/aide_permis.yml,sha256=U_6rieURb3CmMT_nNJhR4lUvkI3EBgv52npRKTX35bg,933
101
101
  openfisca_france_local/parameters/regions/hauts_de_france/crous/aide_100_repas_gratuits.yml,sha256=ESu-ynirWKp4Vcm2eZFqKmr7372dPkS4LNlsRvRwY78,641
102
102
  openfisca_france_local/parameters/regions/hauts_de_france/msa_nord_pas_de_calais/aide_permis.yml,sha256=TAsnZPBOh98F5oBLEoKisg-t6GMCFJHaD0blevoqcjA,658
103
+ openfisca_france_local/parameters/regions/ile_de_france/aide_achat_voiture_electrique.yaml,sha256=97fhhRVpXblXHrFhvvFH_aIhB7s5RCW9Ph3RMAz-6Ec,1152
103
104
  openfisca_france_local/parameters/regions/normandie/msa_haute_normandie/aide_permis.yaml,sha256=XG2c4jBqFberaikH-WrUifwiFjbYIkZKHZtiHYtYhUc,436
104
105
  openfisca_france_local/parameters/regions/nouvelle_aquitaine/aide_permis.yaml,sha256=dvqj2efY261xgg4KY-s2j4qopQ_B4cVa2XfVEZyayxI,1289
105
106
  openfisca_france_local/parameters/regions/nouvelle_aquitaine/carte_solidaire/plafond.yaml,sha256=mJ610UhreZyc7CWYY852MghXbxpmytXlCXQUg_p6ahk,37
@@ -113,6 +114,7 @@ openfisca_france_local/regions/hauts_de_france/aide_garde_enfant.py,sha256=rzpiF
113
114
  openfisca_france_local/regions/hauts_de_france/permis.py,sha256=6Ccjjv9Hk5WsCrEl4XGF_fg9-2qNBHdy63Oor0oQ2S8,4521
114
115
  openfisca_france_local/regions/hauts_de_france/crous/aide_100_repas_gratuits.py,sha256=tzHCOHxfDSAsdshCvXhpZggEG-aygr8zjdu4ionl6w8,2239
115
116
  openfisca_france_local/regions/hauts_de_france/msa_nord_pas_de_calais/aide_permis.py,sha256=0rjOt6KgU9FWtrpnyh8vVPtN4khIrRX8llW4MwnQsIg,1595
117
+ openfisca_france_local/regions/ile_de_france/aide_achat_voiture_electrique.py,sha256=QbYOB5dMjm99mhFUXpezCLmOrDQCCr9YnLadGwbo2MM,1488
116
118
  openfisca_france_local/regions/normandie/msa_haute_normandie/aides_permis.py,sha256=lMCiWaszaM_ujuiMPk0mPK9Qfu2p2PvqJnDanBjvUGE,2089
117
119
  openfisca_france_local/regions/nouvelle-aquitaine/aide_permis.py,sha256=J1iNHh2S40AQdU1crXOM3yMrwbr9ohPnLwPhv7iAUyo,4099
118
120
  openfisca_france_local/regions/nouvelle-aquitaine/carte_solidaire.py,sha256=nFildy8rumzh1c69w0QnoznX2oscifFiYTsCtpqO6VQ,2312
@@ -238,6 +240,7 @@ tests/regions/hauts-de-france/aide_garde_enfant.yml,sha256=0teltKijXUO-amqDQatVb
238
240
  tests/regions/hauts-de-france/aide_permis.yml,sha256=ii6ucc5fXnLKp60MbYaBRGFPLQPL-P6IAewsIq6Dpv8,1123
239
241
  tests/regions/hauts-de-france/crous/aide_100_repas_gratuits.yml,sha256=uOiBAstAynC7Pf-o02zsYcwwI2ajDbt9Rl9zrFdYY78,2565
240
242
  tests/regions/hauts-de-france/msa_nord_pas_de_calais/aide_permis.yml,sha256=yR5J5CNOELflmlkmq9R0RUZCU3PLnIAyD_6cXYaiMU4,520
243
+ tests/regions/ile_de_france/aide_achat_voiture_electrique.yml,sha256=QNgSONFlUX6uN8clWjJuS2EZedT10gxfo0IiRAcsSTM,944
241
244
  tests/regions/normandie/msa_haute_normandie/aide_permis.yaml,sha256=CcmmwFVEle8YNX2yLdLVXOms1PrN8rlrRIuVB0yVCl0,671
242
245
  tests/regions/nouvelle-aquitaine/aide_permis.yaml,sha256=KZg5J3Tukyu06tKPY7sQHFCCTghPSxsBnz-UKDioTT8,1818
243
246
  tests/regions/nouvelle-aquitaine/carte_solidaire.yml,sha256=nqSh3kTwakD0OKyQxwoFqfU7cGTe55klyseQ5GcJuF8,150
@@ -245,8 +248,8 @@ tests/regions/occitanie/carte_jeune_region.yml,sha256=t86RNkSuBYr2fEt60WZi0R115n
245
248
  tests/regions/occitanie/carte_transport_scolaire.yml,sha256=ZzVRWnH6i9nni7hatdfUX0ltcWR2BCwh4BLP7UpKuZE,318
246
249
  tests/regions/occitanie/msa_midi_pyrenees_sud/aide_permis.yml,sha256=zAI_NBTfsP_Q72pDabN2ChQnpK98xasXetIQJmq6LTc,439
247
250
  tests/regions/pays_de_la_loire/epass_jeunes_culture_sport.yaml,sha256=vgdq2hFtBWYWHHmO70bPV0lR_0wohJfmJGQb48A0EpQ,336
248
- OpenFisca_France_Local-6.11.9.dist-info/LICENSE,sha256=dql8h4yceoMhuzlcK0TT_i-NgTFNIZsgE47Q4t3dUYI,34520
249
- OpenFisca_France_Local-6.11.9.dist-info/METADATA,sha256=_5yVsQQDVts7FG_jEW5tFCj82xHckDrQChbFUh7Csdg,1170
250
- OpenFisca_France_Local-6.11.9.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
251
- OpenFisca_France_Local-6.11.9.dist-info/top_level.txt,sha256=DPfQtZjavxRdHDsGTetqu5AEeVMEEBtG1qdv7ijuwWQ,56
252
- OpenFisca_France_Local-6.11.9.dist-info/RECORD,,
251
+ OpenFisca_France_Local-6.12.0.dist-info/LICENSE,sha256=dql8h4yceoMhuzlcK0TT_i-NgTFNIZsgE47Q4t3dUYI,34520
252
+ OpenFisca_France_Local-6.12.0.dist-info/METADATA,sha256=wCTZBxpfcNHnXWnZSf5IEqJgBpuWxF5eTOpObJqDKto,1170
253
+ OpenFisca_France_Local-6.12.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
254
+ OpenFisca_France_Local-6.12.0.dist-info/top_level.txt,sha256=DPfQtZjavxRdHDsGTetqu5AEeVMEEBtG1qdv7ijuwWQ,56
255
+ OpenFisca_France_Local-6.12.0.dist-info/RECORD,,
@@ -0,0 +1,52 @@
1
+ codes_communes_non_eligibles:
2
+ 2024-01-01:
3
+ value:
4
+ - '95018' # Argenteuil
5
+ - '91200' # Athis-Mons
6
+ - '91260' # Juvisy-sur-Orge
7
+ - '91420' # Morangis
8
+ - '91479' # Paray-Vieille-Poste
9
+ - '91600' # Savigny-sur-Orge
10
+ - '91687' # Viry-Châtillon
11
+
12
+ departements_eligibles:
13
+ 2024-01-01:
14
+ value:
15
+ - '77' # Seine-et-Marne
16
+ - '78' # Yvelines
17
+ - '91' # Essonne
18
+ - '95' # Val-d’Oise
19
+
20
+ montant_en_fonction_du_quotient_familial:
21
+ metadata:
22
+ type: single_amount
23
+ brackets:
24
+ - threshold:
25
+ 2024-01-01:
26
+ value: 0
27
+ amount:
28
+ 2024-01-01:
29
+ value: 9000
30
+ - threshold:
31
+ 2024-01-01:
32
+ value: 6358
33
+ amount:
34
+ 2024-01-01:
35
+ value: 7500
36
+ - threshold:
37
+ 2024-01-01:
38
+ value: 14090
39
+ amount:
40
+ 2024-01-01:
41
+ value: 4500
42
+ - threshold:
43
+ 2024-01-01:
44
+ value: 30508
45
+ amount:
46
+ 2024-01-01:
47
+ value: 2250
48
+
49
+ metadata:
50
+ reference:
51
+ 2024-01-01:
52
+ href: https://www.iledefrance.fr/aides-et-appels-a-projets/acquisition-de-vehicules-propres-par-les-particuliers
@@ -0,0 +1,27 @@
1
+ from openfisca_france.model.base import Individu, MONTH, Variable
2
+ from numpy.core.defchararray import startswith
3
+ from numpy import logical_not as not_
4
+
5
+ class ile_de_france_aide_achat_voiture_electrique(Variable):
6
+ value_type = float
7
+ entity = Individu
8
+ label = "Aide à l'acquisition de voitures électriques"
9
+ reference = "https://www.iledefrance.fr/aides-et-appels-a-projets/acquisition-de-vehicules-propres-par-les-particuliers"
10
+ definition_period = MONTH
11
+
12
+ def formula(individu, period, parameters):
13
+ depcom = individu.menage('depcom', period)
14
+ codes_departements = parameters(period).regions.ile_de_france.aide_achat_voiture_electrique.departements_eligibles
15
+ eligibilite_geographique = sum([startswith(depcom, str.encode(code_departement)) for code_departement in codes_departements])
16
+
17
+ codes_communes = parameters(period).regions.ile_de_france.aide_achat_voiture_electrique.codes_communes_non_eligibles
18
+ exclusion_geographique = sum([depcom == str.encode(code_commune) for code_commune in codes_communes])
19
+
20
+ rfr = individu.foyer_fiscal('rfr', period.n_2)
21
+ nbptr = individu.foyer_fiscal('nbptr', period.n_2)
22
+ quotient_familial = rfr / nbptr
23
+
24
+ modalites = parameters(period).regions.ile_de_france.aide_achat_voiture_electrique.montant_en_fonction_du_quotient_familial
25
+ montant = modalites.calc(quotient_familial)
26
+
27
+ return montant * eligibilite_geographique * not_(exclusion_geographique)
@@ -0,0 +1,33 @@
1
+ - period: 2024-01
2
+ input:
3
+ region: [ ile_de_france, ile_de_france, ile_de_france, ile_de_france, ile_de_france]
4
+ age: [18, 30, 21, 24, 22]
5
+ depcom: [77100, 78000, 78370, 78586, 78711]
6
+ statut_marital: [celibataire, marie, celibataire, marie, marie]
7
+ contrat_de_travail_type: [cdd, cdi, cdi, cdd, non_defini]
8
+ rfr:
9
+ 2022:
10
+ [1, 39000, 6500, 40000, 10000]
11
+ nbptr:
12
+ 2022:
13
+ [1, 2, 1, 3, 2]
14
+ activite: [actif, actif, actif, actif, etudiant]
15
+ output:
16
+ ile_de_france_aide_achat_voiture_electrique: [9000, 4500, 7500, 7500, 9000]
17
+
18
+ - period: 2024-01
19
+ input:
20
+ region: [ ile_de_france, haut_de_france ]
21
+ age: [22, 23]
22
+ depcom: [95018, 59000]
23
+ statut_marital: [marie, marie]
24
+ contrat_de_travail_type: [ cdi, cdi]
25
+ rfr:
26
+ 2022:
27
+ [6500, 6500]
28
+ nbptr:
29
+ 2022:
30
+ [2, 2]
31
+ activite: [actif, actif]
32
+ output:
33
+ ile_de_france_aide_achat_voiture_electrique: [0, 0]