OpenFisca-France-Local 6.11.8__py3-none-any.whl → 6.17.4__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.

Files changed (53) hide show
  1. {OpenFisca_France_Local-6.11.8.dist-info → OpenFisca_France_Local-6.17.4.dist-info}/METADATA +18 -9
  2. {OpenFisca_France_Local-6.11.8.dist-info → OpenFisca_France_Local-6.17.4.dist-info}/RECORD +53 -11
  3. {OpenFisca_France_Local-6.11.8.dist-info → OpenFisca_France_Local-6.17.4.dist-info}/WHEEL +1 -1
  4. openfisca_france_local/aides_jeunes_reform.py +52 -0
  5. openfisca_france_local/communes/antony/antony_aide_depart_sejour_adapte.py +48 -0
  6. openfisca_france_local/communes/antony/antony_bourse_communale.py +23 -0
  7. openfisca_france_local/communes/antony/antony_bourse_conservatoire.py +21 -0
  8. openfisca_france_local/communes/antony/antony_bourse_famille_nombreuse.py +25 -0
  9. openfisca_france_local/communes/antony/antony_noel_pour_tous.py +21 -0
  10. openfisca_france_local/communes/antony/base_ressources.py +81 -0
  11. openfisca_france_local/communes/antony/eligibilite.py +11 -0
  12. openfisca_france_local/communes/montpellier/eligibilite.py +10 -0
  13. openfisca_france_local/communes/montpellier/montpellier_mutuelle_communale.py +17 -0
  14. openfisca_france_local/departements/eure_et_loir/aep.py +18 -0
  15. openfisca_france_local/departements/loire_atlantique/aide_mobilite.py +25 -33
  16. openfisca_france_local/departements/meurthe_et_moselle/eligibilite.py +12 -0
  17. openfisca_france_local/departements/meurthe_et_moselle/pass_jeune_54.py +46 -0
  18. openfisca_france_local/metropoles/strasbourg/tarification_solidaire_periscolaire.py +37 -0
  19. openfisca_france_local/parameters/communes/antony/bourse_conservatoire/age_maximum.yaml +6 -0
  20. openfisca_france_local/parameters/communes/antony/bourse_famille_nombreuse/age_maximum.yaml +6 -0
  21. openfisca_france_local/parameters/communes/antony/bourse_famille_nombreuse/nb_enfants_minimum.yaml +5 -0
  22. openfisca_france_local/parameters/communes/antony/noel_pour_tous/age_maximum.yaml +6 -0
  23. openfisca_france_local/parameters/communes/antony/plafonds_revenus/bareme_enfants.yml +77 -0
  24. openfisca_france_local/parameters/communes/antony/plafonds_revenus/couple.yaml +6 -0
  25. openfisca_france_local/parameters/communes/antony/plafonds_revenus/personne_seule.yaml +6 -0
  26. openfisca_france_local/parameters/communes/antony/plafonds_revenus/sejour_adapte.yaml +19 -0
  27. openfisca_france_local/parameters/departements/loire_atlantique/aide_mobilite.yml +77 -0
  28. openfisca_france_local/parameters/departements/meurthe_et_moselle/pass_jeune_54.yml +47 -0
  29. openfisca_france_local/parameters/metropoles/strasbourg/periscolaire/accueil_soir_maternelle.yaml +151 -0
  30. openfisca_france_local/parameters/regions/auvergne_rhone_alpes/auvergne_mutuelle_communale_etudiant.yml +9 -0
  31. openfisca_france_local/parameters/regions/ile_de_france/aide_achat_voiture_electrique.yaml +52 -0
  32. openfisca_france_local/regions/auvergne_rhone_alpes/auvergne_mutuelle_communale.py +36 -0
  33. openfisca_france_local/regions/auvergne_rhone_alpes/auvergne_mutuelle_communale_etudiant.py +21 -0
  34. openfisca_france_local/regions/ile_de_france/aide_achat_voiture_electrique.py +27 -0
  35. tests/communes/antony/aide_bourse_communale.yml +129 -0
  36. tests/communes/antony/aide_bourse_conservatoire.yml +99 -0
  37. tests/communes/antony/aide_bourse_famille_nombreuse.yml +109 -0
  38. tests/communes/antony/aide_depart_sejour_adapte.yml +97 -0
  39. tests/communes/antony/antony_noel_pour_tous.yml +67 -0
  40. tests/communes/antony/base_ressources.yml +591 -0
  41. tests/communes/antony/eligibilite.yml +6 -0
  42. tests/communes/montpellier/montpellier_mutuelle_communale.yml +8 -0
  43. tests/departements/eure_et_loir/aep.yml +88 -0
  44. tests/departements/loire_atlantique/aide_mobilite.yml +21 -7
  45. tests/departements/meurthe_et_moselle/pass_jeune_54.yml +23 -0
  46. tests/metropoles/strasbourg/periscolaire.yaml +11 -0
  47. tests/reforms/aides_jeunes/test_aides_jeunes_reform.yaml +3 -3
  48. tests/regions/auvergne-rhone-alpes/auvergne_mutuelle_communale.yml +12 -0
  49. tests/regions/hauts-de-france/aide_permis.yml +1 -1
  50. tests/regions/ile_de_france/aide_achat_voiture_electrique.yml +33 -0
  51. {OpenFisca_France_Local-6.11.8.data → OpenFisca_France_Local-6.17.4.data}/scripts/openfisca_local_test +0 -0
  52. {OpenFisca_France_Local-6.11.8.dist-info → OpenFisca_France_Local-6.17.4.dist-info}/LICENSE +0 -0
  53. {OpenFisca_France_Local-6.11.8.dist-info → OpenFisca_France_Local-6.17.4.dist-info}/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: OpenFisca-France-Local
3
- Version: 6.11.8
3
+ Version: 6.17.4
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
@@ -17,11 +17,20 @@ Classifier: Programming Language :: Python :: 3.11
17
17
  Classifier: Topic :: Scientific/Engineering :: Information Analysis
18
18
  Description-Content-Type: text/markdown
19
19
  License-File: LICENSE
20
- Requires-Dist: OpenFisca-Core <42,>=40.0.1
21
- Requires-Dist: OpenFisca-France <159,>=153.0.1
22
- Requires-Dist: pandas <2.0,>=1.5.3
23
- Provides-Extra: excel-reader
24
- Requires-Dist: openpyxl ==3.1.2 ; extra == 'excel-reader'
20
+ Requires-Dist: OpenFisca-Core<44,>=43
21
+ Requires-Dist: OpenFisca-France<170,>=169.0.0
22
+ Requires-Dist: pandas<2.0,>=1.5.3
25
23
  Provides-Extra: test
26
- Requires-Dist: nose ; extra == 'test'
27
-
24
+ Requires-Dist: nose; extra == "test"
25
+ Provides-Extra: excel-reader
26
+ Requires-Dist: openpyxl==3.1.2; extra == "excel-reader"
27
+ Dynamic: author
28
+ Dynamic: author-email
29
+ Dynamic: classifier
30
+ Dynamic: description-content-type
31
+ Dynamic: home-page
32
+ Dynamic: keywords
33
+ Dynamic: license
34
+ Dynamic: provides-extra
35
+ Dynamic: requires-dist
36
+ Dynamic: summary
@@ -1,6 +1,6 @@
1
- OpenFisca_France_Local-6.11.8.data/scripts/openfisca_local_test,sha256=M55UQ5tskwZpJVLXGqlIcVs1nVZ2pBr_-R9jh-z2tbw,128
1
+ OpenFisca_France_Local-6.17.4.data/scripts/openfisca_local_test,sha256=M55UQ5tskwZpJVLXGqlIcVs1nVZ2pBr_-R9jh-z2tbw,128
2
2
  openfisca_france_local/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- openfisca_france_local/aides_jeunes_reform.py,sha256=ai1nfE0WPmBjTNSc3WoYQ71kOquaTEjdX8iOheistK0,16418
3
+ openfisca_france_local/aides_jeunes_reform.py,sha256=2Kf9AUH_oOelsfU8nKuzamX1X9VyJlImlJ35RrVqbDA,19055
4
4
  openfisca_france_local/convert_benefit_conditions_to_parameters.py,sha256=qMQNMQKJh-m77KWvbAaMxO2VHB8SwUtVw80c7r7YeFc,6304
5
5
  openfisca_france_local/epci_test_factory.py,sha256=QtasFXb9xH2ZZhOt4a2XpfpuaJJgH8HLaKoNV2nuhl0,1211
6
6
  openfisca_france_local/epcicom2020.xlsx,sha256=dh0_urEHajdv0FoxbFAgyXIMH4s8xlAeriBpVklrqeg,3102230
@@ -10,6 +10,13 @@ openfisca_france_local/simulation_reform.py,sha256=Ls1tTwOrsilIRtSHYG50FW2e44_Ss
10
10
  openfisca_france_local/test_dispositif.py,sha256=ceGZB4LTo4iqZn_c6GALHCadBwNO1bwZvGxhlZdSxUc,328
11
11
  openfisca_france_local/communes/alfortville/eligibilite.py,sha256=zcj9-0GuAHLzU4M5eS6Jvc3N6RMjHPGmEopFiHHDBE4,397
12
12
  openfisca_france_local/communes/alfortville/noel_enfants.py,sha256=pG7wB1do4AeE5udV_EuFRmV3EUBghsj5SappbpnfZDI,2898
13
+ openfisca_france_local/communes/antony/antony_aide_depart_sejour_adapte.py,sha256=JiPcv_B1PfuVjneIZdg-w9ZTxNCcZ7WNf5dspcLgh8k,2086
14
+ openfisca_france_local/communes/antony/antony_bourse_communale.py,sha256=JkktWdtUbZLeYVDlkI_aB6Zp6sZfT1uWQCw61mAmFrs,1016
15
+ openfisca_france_local/communes/antony/antony_bourse_conservatoire.py,sha256=AAsoM1GbNBnDdMOhiIiZ8giKszjMs7d5r7hJa-UJ2GQ,951
16
+ openfisca_france_local/communes/antony/antony_bourse_famille_nombreuse.py,sha256=gs7Jq5HRC5klSzP0HeQKgDYfeM5RdI1cJ0_LHzEBnqY,1080
17
+ openfisca_france_local/communes/antony/antony_noel_pour_tous.py,sha256=EWN5_FozkWecO_bjWwuk5g5P4CjAE5phPsYrjCK70eU,887
18
+ openfisca_france_local/communes/antony/base_ressources.py,sha256=GfZ9aIgEFo8fth7RSXJJA_hTrhgs87O_u6EOjk_dxRA,3010
19
+ openfisca_france_local/communes/antony/eligibilite.py,sha256=8ogbRRd4wn2XMTKqat8aE9ZbI55Nbh4sNmLd1XKvWo8,388
13
20
  openfisca_france_local/communes/cambrai/aide_permis.py,sha256=AiRrJH-NoSSDohe6jX4Sk-gIWTgNzmKaKRgswyvAfsQ,1217
14
21
  openfisca_france_local/communes/carcassonne/aide_permis.py,sha256=CfvA1YFcousdxZETqYEKDoayd_BhMFcnfyC-VcE89mY,1145
15
22
  openfisca_france_local/communes/carcassonne/eligibilite.py,sha256=lVU1oap1_KVl1TeVTiNWb3TeMN5ujnhrTghGd2wb6o4,361
@@ -17,6 +24,8 @@ openfisca_france_local/communes/illkirch_graffenstaden/base.py,sha256=L90ys8g0jd
17
24
  openfisca_france_local/communes/iwuy/aide_permis.py,sha256=Xr-5NCWux1Hk4oFGurkWFkIFyEhxVDWYsR1hszzngvQ,933
18
25
  openfisca_france_local/communes/le_cateau/aide_permis.py,sha256=Ms2PKH-35eZc0ibbRbVIjOLc5gIwS0aHHdZh-ef20FI,1238
19
26
  openfisca_france_local/communes/les_rues_des_vignes/aide_permis.py,sha256=bPTeIT7ap4suySmzKBXDOORDmFpBaNyCQMuL-LFVQqg,1058
27
+ openfisca_france_local/communes/montpellier/eligibilite.py,sha256=aC3UfG7dZ9qHFa_DPVqUHKJJC4IwZYV5YPh4zQatAzk,360
28
+ openfisca_france_local/communes/montpellier/montpellier_mutuelle_communale.py,sha256=h4i5HTuHoGMwh7O1m8hxyN5ul4-KjaI1qszEPNe6J28,764
20
29
  openfisca_france_local/communes/nantes/aide_carte_blanche.py,sha256=uGs6HUZgJzuqddClJIuVU9l731ZjVCKQTW9RWRCNhtc,871
21
30
  openfisca_france_local/communes/saint_louis/eligibilite.py,sha256=UoTy7S7WABNTMcEVZai-vhj-mC5gyhcsW456dw7-iyg,398
22
31
  openfisca_france_local/departements/cotes_d_armor/eligibilite.py,sha256=8-qOmLSEc2i9jcKOkM-AD1s9Ug9GeWxsgguym7t8WkE,448
@@ -24,6 +33,7 @@ openfisca_france_local/departements/cotes_d_armor/fonds_solidarite_logement/acce
24
33
  openfisca_france_local/departements/cotes_d_armor/fonds_solidarite_logement/assurance_locative_energie.py,sha256=bGqoCLOOE6a3Fe4yLBCEW4Ex20UTg7tuO_X6cvkZ1LI,2166
25
34
  openfisca_france_local/departements/cotes_d_armor/fonds_solidarite_logement/base_ressource.py,sha256=orO3nwyVlCnGK9gIEd0lm88DgGCk1FkFqdvuI6CrdTE,2072
26
35
  openfisca_france_local/departements/eure_et_loir/adefip.py,sha256=tirnODplwwAJFT7kln0Ll-sMo7UDr1HvYmT6Gw8CK20,838
36
+ openfisca_france_local/departements/eure_et_loir/aep.py,sha256=S9Ig5OkU80IvWMH2vOW5ta8EySGjswyeuJbRYDTOW1I,787
27
37
  openfisca_france_local/departements/eure_et_loir/aide-menagere.py,sha256=-KS-BpqJOOrQ1SGSPfpYKfafsPio93ud6RXTMFfrKKc,7546
28
38
  openfisca_france_local/departements/eure_et_loir/ash.py,sha256=7k-vlvd4dtx3sAfoq3n6sqSseV7Lt5rHSb5roJlfeJ0,5157
29
39
  openfisca_france_local/departements/eure_et_loir/caracteristiques_socio_demographiques.py,sha256=OUzrhyk6LX1iXReviF4lJVA8jkboxcIUfruVvE1y8Hs,1984
@@ -42,8 +52,10 @@ openfisca_france_local/departements/haute_saone/aide_permis.py,sha256=_IPaVqxeAq
42
52
  openfisca_france_local/departements/haute_saone/eligibilite.py,sha256=UOwrtn7M0cfxlo-ORdb87cDdWux1OLnJ7WeOvCN-dSU,430
43
53
  openfisca_france_local/departements/haute_vienne/aide_permis.py,sha256=5thrWdV9cvmBqKnm4LctNoaST2oKbmCODhyDRRceywU,1180
44
54
  openfisca_france_local/departements/haute_vienne/eligibilite.py,sha256=0lIasKgtRLoIGtsjJk6q6SZZS_mzy_B9dfGf-oEvYoY,432
45
- openfisca_france_local/departements/loire_atlantique/aide_mobilite.py,sha256=B9WOcvUeFEQE-9AeeQSDAnCJE0vzwusLudBRU3afMBk,3402
55
+ openfisca_france_local/departements/loire_atlantique/aide_mobilite.py,sha256=9uL6l_AA1zQmb4U3Pk7M_TGtYGY8e1M2x9zXLVbMqiY,3154
46
56
  openfisca_france_local/departements/loire_atlantique/eligibilite.py,sha256=8eWIzfXRqDVtZNCuO88Zvbk435YbugKPYVhPadKzsHY,451
57
+ openfisca_france_local/departements/meurthe_et_moselle/eligibilite.py,sha256=aXfeVTEo5jomU8pb7GEfr9wGniUag3hwoHzDN6t3OK8,429
58
+ openfisca_france_local/departements/meurthe_et_moselle/pass_jeune_54.py,sha256=iSNKgl_9IRsSEvaLxR5wRoIA9HJ04Q2mafWY-a1dIIM,1911
47
59
  openfisca_france_local/departements/nord/activ_emploi.py,sha256=juzjujhnlvWgiTkTBCqP_BqQAnA-0IAHyrhgyOnyF90,1262
48
60
  openfisca_france_local/departements/seine_saint_denis/cheque_reussite.py,sha256=c9Zx2N11W5I-X8NzjVP1DErB2GS2hzEr6z4YqBJwUgQ,1968
49
61
  openfisca_france_local/departements/seine_saint_denis/eligibilite.py,sha256=hMJEVwTw4dsrtNuru74v4s-jV9J3HhCdqGs-_gT6up0,456
@@ -59,6 +71,7 @@ openfisca_france_local/metropoles/lyon/revenu_solidaire_jeune.py,sha256=XRrE4KHj
59
71
  openfisca_france_local/metropoles/nantes/tarification_solidaire_transports.py,sha256=SqQ5O-bB4HI_M2kHSAPhd0-0KTPdmzdYRvrGOY76e7k,2022
60
72
  openfisca_france_local/metropoles/rennes/communes.py,sha256=tS-CU-wNzDooNB9OljyYdAqrp86DKFYcQFtFEfI8c9s,617
61
73
  openfisca_france_local/metropoles/rennes/mon_aide.py,sha256=kuhJx6_hlC4LEz4RA8jYif-q6yO3AsJFA5MHSHmtwp4,7084
74
+ openfisca_france_local/metropoles/strasbourg/tarification_solidaire_periscolaire.py,sha256=zFOHz_jejk3k6rXHoBM0LGiw3DhftPTm3DR3egx0Pmw,1490
62
75
  openfisca_france_local/metropoles/strasbourg/tarification_solidaire_transports.py,sha256=Wy-LrBBcwUWlC_Eh8lkfHiTYZ8VlJ5i9Gg4pswIhcyM,4076
63
76
  openfisca_france_local/metropoles/toulouse/tisseo/demandeur_emploi.py,sha256=LiQSE_Mvc4By-k9IibaRtkMGH38vbzTj2iFuYjMgOBU,1408
64
77
  openfisca_france_local/metropoles/toulouse/tisseo/invalide.py,sha256=rNAgmHGbjrsCMMvi7fT3FP_YZ8QjIzNkhUUOD7GP0os,1074
@@ -69,6 +82,14 @@ openfisca_france_local/metropoles/toulouse/tisseo/retraites.py,sha256=BIdAV-KiFZ
69
82
  openfisca_france_local/metropoles/toulouse/tisseo/transport_reduction.py,sha256=FlE-2f9R0X4u3_hVqvK2dohR14oa4HbySzLt99koCZM,1176
70
83
  openfisca_france_local/parameters/garantie_jeunes.yaml,sha256=VmdMgY06DWQ_nGp1Ijv866a_sZcGATEdnHTQQjofwLw,335
71
84
  openfisca_france_local/parameters/communes/alfortville.yml,sha256=pwbNW9C7mP2u04_f1oEICP_Wz9DAXaemOUK46ur5Kp8,105
85
+ openfisca_france_local/parameters/communes/antony/bourse_conservatoire/age_maximum.yaml,sha256=QRIamT3jfwB_gdJUF9iC6Qnf9xIO-4Y_9CagCOmNMUI,239
86
+ openfisca_france_local/parameters/communes/antony/bourse_famille_nombreuse/age_maximum.yaml,sha256=s3048kSkatasPGmNaG9-uP-A1n8lqsQB4GgUZeSjXGA,249
87
+ openfisca_france_local/parameters/communes/antony/bourse_famille_nombreuse/nb_enfants_minimum.yaml,sha256=1NdAjbg2mhX5e2LRL4B77Qpr7KF-t56Wg_HF4XSUe-A,215
88
+ openfisca_france_local/parameters/communes/antony/noel_pour_tous/age_maximum.yaml,sha256=6H9vlVC2zi-yK_8kX3OARsxrWJtjqUpO3OMWqssO9is,191
89
+ openfisca_france_local/parameters/communes/antony/plafonds_revenus/bareme_enfants.yml,sha256=r7oHa_hC4y-h5m5qvLl_JytxlKVSynPrQXSQnG6-mEE,1538
90
+ openfisca_france_local/parameters/communes/antony/plafonds_revenus/couple.yaml,sha256=xePa8adrPSgfq86D6cq3dSQvAc1Bw5wAYaGmpg0rqOs,264
91
+ openfisca_france_local/parameters/communes/antony/plafonds_revenus/personne_seule.yaml,sha256=KmkJz5ArUsUg_OCyp6lNgUyBkbbQH9OZenYRxFkd6y8,260
92
+ openfisca_france_local/parameters/communes/antony/plafonds_revenus/sejour_adapte.yaml,sha256=kcAbN5JcJOfzeuybH8ciWGknwqHiuAAf3fADrLKFQ7I,694
72
93
  openfisca_france_local/parameters/communes/cambrai/aide_permis.yml,sha256=ngzABrR2PFgi3XFzeQL5uKEA9Z0hqxTbKKnNvT9Ys3I,231
73
94
  openfisca_france_local/parameters/communes/carcassonne/aide_permis.yaml,sha256=Tozcfwo751bbfrTfpP0TKaQUZc49quZhJh5Uzd0r4oo,1343
74
95
  openfisca_france_local/parameters/communes/iwuy/aide_permis.yml,sha256=OQL0IKFGV7Jiy-1hjajsfMKszrRN-l7ffrn3KszOy20,239
@@ -83,6 +104,8 @@ openfisca_france_local/parameters/departements/eure_et_loir/repas_foyer.yml,sha2
83
104
  openfisca_france_local/parameters/departements/eure_et_loir/transports.yml,sha256=OJoqYqAd_dGhwY_CpYflSBKFT-AedPfk_f1bSqD4Ndo,180
84
105
  openfisca_france_local/parameters/departements/haute_saone/aide_permis.yaml,sha256=ZjgA0REbrqrLEmZYj9V4rj1pq-Ikc-GpN53QB6f-AHw,1421
85
106
  openfisca_france_local/parameters/departements/haute_vienne/aide_permis.yaml,sha256=798J4k4oUHDMCuIVKuyNDplIO1r7WYF0oyGeW9JeD0A,1387
107
+ openfisca_france_local/parameters/departements/loire_atlantique/aide_mobilite.yml,sha256=FEyo8nNEv8km9kQyS4Vm1ZPahMiU1Wd_R_PzVIOhfKQ,2250
108
+ openfisca_france_local/parameters/departements/meurthe_et_moselle/pass_jeune_54.yml,sha256=2uZBx7FQTt7hh0EMjKK03ipujz06dGegVlvxg_bFZbU,1358
86
109
  openfisca_france_local/parameters/departements/yvelines/aide_permis.yml,sha256=pnfBjsPnKau0ej-k6jCLnm57OsrDKZ0AgkiHYB2IDgo,348
87
110
  openfisca_france_local/parameters/metropoles/bordeaux/aide_tarification_solidaire_transport.yaml,sha256=LBEEAXdufDPr7bMGakxw6M0s9DPa8VKDktW7AKTgwKk,544
88
111
  openfisca_france_local/parameters/metropoles/lyon/revenu_solidaire_jeune.yaml,sha256=eXlsYbAL48jzUEcV0LbI9XEzvABXNmPr1Y5ZHbdFNtQ,609
@@ -92,7 +115,9 @@ openfisca_france_local/parameters/metropoles/rennes/tarification_solidaire/seuil
92
115
  openfisca_france_local/parameters/metropoles/rennes/tarification_solidaire/taux_reduction/taux1.yaml,sha256=UF5muCURZV0xYB2j4no51IHozkXScaDSd0JyYG_uWYk,73
93
116
  openfisca_france_local/parameters/metropoles/rennes/tarification_solidaire/taux_reduction/taux2.yaml,sha256=VkUf0v7SCSnfhw7BfK1dDLiu7QLFEViytNPURwcyFGQ,72
94
117
  openfisca_france_local/parameters/metropoles/rennes/tarification_solidaire/taux_reduction/taux3.yaml,sha256=D4fNYiwzwF1q4T0JWrv63OHKbVqS7nB-hiUzQxUjDjU,72
118
+ openfisca_france_local/parameters/metropoles/strasbourg/periscolaire/accueil_soir_maternelle.yaml,sha256=YT6q06yok6PUaO9EjckOS_YFGNl-_YnKVFYgxXz2L7A,2322
95
119
  openfisca_france_local/parameters/regions/auvergne_rhone_alpes/aide_permis.yml,sha256=Xm0p4IJCd48Oa63avXIWi3eRJStW2ZDV_23ukaLAOwQ,574
120
+ openfisca_france_local/parameters/regions/auvergne_rhone_alpes/auvergne_mutuelle_communale_etudiant.yml,sha256=QckN1Uh1ftCww4-d8j7AzQ0RfBplf7Ox1FPJVoAiuUE,268
96
121
  openfisca_france_local/parameters/regions/auvergne_rhone_alpes/departements.yaml,sha256=np9SQOtHOH399o2PVlLMNhc5CYWkUytaIqmSXqdBTKg,205
97
122
  openfisca_france_local/parameters/regions/bretagne/msa_armorique/aide_permis.yml,sha256=Ju4RTFAg3dUUSRKxqPI-SHwDgni6xoxA0KYB5aF5lUI,866
98
123
  openfisca_france_local/parameters/regions/bretagne/msa_portes_de_bretagne/aide_permis.yml,sha256=zDMRdrXsn1hnx4yoZPRHyLCBPZu5M1u0RF1matTscP4,920
@@ -100,12 +125,15 @@ openfisca_france_local/parameters/regions/hauts_de_france/aide_garde_enfant.yml,
100
125
  openfisca_france_local/parameters/regions/hauts_de_france/aide_permis.yml,sha256=U_6rieURb3CmMT_nNJhR4lUvkI3EBgv52npRKTX35bg,933
101
126
  openfisca_france_local/parameters/regions/hauts_de_france/crous/aide_100_repas_gratuits.yml,sha256=ESu-ynirWKp4Vcm2eZFqKmr7372dPkS4LNlsRvRwY78,641
102
127
  openfisca_france_local/parameters/regions/hauts_de_france/msa_nord_pas_de_calais/aide_permis.yml,sha256=TAsnZPBOh98F5oBLEoKisg-t6GMCFJHaD0blevoqcjA,658
128
+ openfisca_france_local/parameters/regions/ile_de_france/aide_achat_voiture_electrique.yaml,sha256=97fhhRVpXblXHrFhvvFH_aIhB7s5RCW9Ph3RMAz-6Ec,1152
103
129
  openfisca_france_local/parameters/regions/normandie/msa_haute_normandie/aide_permis.yaml,sha256=XG2c4jBqFberaikH-WrUifwiFjbYIkZKHZtiHYtYhUc,436
104
130
  openfisca_france_local/parameters/regions/nouvelle_aquitaine/aide_permis.yaml,sha256=dvqj2efY261xgg4KY-s2j4qopQ_B4cVa2XfVEZyayxI,1289
105
131
  openfisca_france_local/parameters/regions/nouvelle_aquitaine/carte_solidaire/plafond.yaml,sha256=mJ610UhreZyc7CWYY852MghXbxpmytXlCXQUg_p6ahk,37
106
132
  openfisca_france_local/parameters/regions/nouvelle_aquitaine/carte_solidaire/reduction.yaml,sha256=C_jnqxbpi0PcY0WyEYbhUEsLgv8Ju1xg_BlnpbnMDxE,36
107
133
  openfisca_france_local/parameters/regions/occitanie/msa_midi_pyrenees_sud/aide_permis.yml,sha256=M44Jvn8s9si8x9Njgz1GmRC8hJ6z9bUi1Tt_bZSu_vw,674
108
134
  openfisca_france_local/regions/auvergne_rhone_alpes/aide_permis.py,sha256=5mVtCVOEVcgJ9DvFtr28E8Jr6J812Mqj2pufHzgCdnE,992
135
+ openfisca_france_local/regions/auvergne_rhone_alpes/auvergne_mutuelle_communale.py,sha256=UXr7ZY-yxfYL16kXHbiBgYFA0eMuMfAwiypjNqpBdac,1598
136
+ openfisca_france_local/regions/auvergne_rhone_alpes/auvergne_mutuelle_communale_etudiant.py,sha256=gib-dyoMhts5-SnOb1bRAz3BIe06VCNi7PFdrKTnxTc,970
109
137
  openfisca_france_local/regions/bretagne/msa_armorique/aide_permis.py,sha256=9oOTPS0YQbCme1kjVfwcka7AfZjjZyHfekbwOrLCfwU,1874
110
138
  openfisca_france_local/regions/bretagne/msa_portes_de_bretagne/aide_permis.py,sha256=d_zrTP5u4B_1biKHLuC76V2iSt5ek24HuALYMB16kh4,1907
111
139
  openfisca_france_local/regions/grand_est/transport.py,sha256=edvDg1Ih-JKJgzvEffAHOp5AixvZTxVL-bIjg1mLOPw,1673
@@ -113,6 +141,7 @@ openfisca_france_local/regions/hauts_de_france/aide_garde_enfant.py,sha256=rzpiF
113
141
  openfisca_france_local/regions/hauts_de_france/permis.py,sha256=6Ccjjv9Hk5WsCrEl4XGF_fg9-2qNBHdy63Oor0oQ2S8,4521
114
142
  openfisca_france_local/regions/hauts_de_france/crous/aide_100_repas_gratuits.py,sha256=tzHCOHxfDSAsdshCvXhpZggEG-aygr8zjdu4ionl6w8,2239
115
143
  openfisca_france_local/regions/hauts_de_france/msa_nord_pas_de_calais/aide_permis.py,sha256=0rjOt6KgU9FWtrpnyh8vVPtN4khIrRX8llW4MwnQsIg,1595
144
+ openfisca_france_local/regions/ile_de_france/aide_achat_voiture_electrique.py,sha256=QbYOB5dMjm99mhFUXpezCLmOrDQCCr9YnLadGwbo2MM,1488
116
145
  openfisca_france_local/regions/normandie/msa_haute_normandie/aides_permis.py,sha256=lMCiWaszaM_ujuiMPk0mPK9Qfu2p2PvqJnDanBjvUGE,2089
117
146
  openfisca_france_local/regions/nouvelle-aquitaine/aide_permis.py,sha256=J1iNHh2S40AQdU1crXOM3yMrwbr9ohPnLwPhv7iAUyo,4099
118
147
  openfisca_france_local/regions/nouvelle-aquitaine/carte_solidaire.py,sha256=nFildy8rumzh1c69w0QnoznX2oscifFiYTsCtpqO6VQ,2312
@@ -175,17 +204,26 @@ tests/communes/illkirch_graffenstaden.yml,sha256=_4UYOPZ-orTsOSqMJo8o20-Y3lRWS-Q
175
204
  tests/communes/alfortville/eligibilite.yml,sha256=LpUHyhBSKUlmk7pmXLvzSF-dawWTtAk15gminGqznRQ,407
176
205
  tests/communes/alfortville/noel_enfants.yml,sha256=Qw3wu8jgCp2XEf-yqiJEo1EkBD-5yq9bvmBWYsTgtt0,1570
177
206
  tests/communes/alfortville/noel_enfants_base_ressource.yml,sha256=-IXtEfB0OoMDEKnTou_kGpW7MdS6TZgVqtImCXe8wcU,811
207
+ tests/communes/antony/aide_bourse_communale.yml,sha256=b-FBsWybl43i-z3itwM9vErK8DvSGgQ26VWiUW3JxlU,3301
208
+ tests/communes/antony/aide_bourse_conservatoire.yml,sha256=QmP9jwSEzWqOLIiFaVv2n8KCM1jlqMMEZDQIMzdSv2c,2568
209
+ tests/communes/antony/aide_bourse_famille_nombreuse.yml,sha256=PTkR7lBOMODEAq8bmGZOV8Xx66-1lJ-WEe3nIO4Ak98,2911
210
+ tests/communes/antony/aide_depart_sejour_adapte.yml,sha256=9jdPZaSqVRoFeggorz9g74lbIRoejxaXHUJX6DCtNag,2457
211
+ tests/communes/antony/antony_noel_pour_tous.yml,sha256=BWjb4S7D14zQix5wPvbJqI-A6OG8ad7RerX-I0zgzl8,1696
212
+ tests/communes/antony/base_ressources.yml,sha256=M7-FvWoMtklVCZ9YwNzyru1RucvQvOU-a4zIR5csRd4,12577
213
+ tests/communes/antony/eligibilite.yml,sha256=syWbpvjPMwJZBnI-YLaQTFnzeKtQAaLzncIaOCsmfOw,145
178
214
  tests/communes/cambrai/aide_permis.yml,sha256=bunUx-90pSLAo462LGw7LVmwBTm6CvN6Ch15XpOOKGU,223
179
215
  tests/communes/carcassonne/aide_permis.yaml,sha256=gqE1qdqz0l3cjDQMCuKjYpN-klauODUzQlQH_FdCYIg,775
180
216
  tests/communes/iwuy/aide_permis.yml,sha256=vbWLT4hP4x3xDBBP8fh-zShCGjxsEEduhGzinS_TPCk,142
181
217
  tests/communes/le_cateau/aide_permis.yml,sha256=Hf1RI6pdgkL7pvyDb4euV9PVea7s1U-AyZ5JDNrJ0_0,223
182
218
  tests/communes/les_rues_des_vignes/aide_permis.yml,sha256=NbGXyaOT1lft1eAvB1zecuS1qqJMDnbnV8k-byhB_xk,157
219
+ tests/communes/montpellier/montpellier_mutuelle_communale.yml,sha256=pcTx46l-uOEWgYinSH9TWE7TmfCMmWYxMTyA-CtXvRs,337
183
220
  tests/communes/nantes/aide_carte_blanche.yml,sha256=mPbfGL3I5nS9bPrtl0vERBYnG7B9RhY3EZonrM0l-sU,326
184
221
  tests/departements/cotes_d_armor/base_ressource.yml,sha256=FWHCWUeKedi5HiluAr9vBQt1ZjugxvAogKtXAZ2wkJU,1125
185
222
  tests/departements/cotes_d_armor/eligibilite.yml,sha256=Iilaz7lBJ1GmeW-QWFtX4WNQAWyQ4co3zClBVpCHr2U,119
186
223
  tests/departements/cotes_d_armor/fonds_solidarite_logement_acces_maintien.yml,sha256=ajuQWCnRSORQUlmtXd8Dzq2qmMmvHmDiU47Mii8YcII,999
187
224
  tests/departements/cotes_d_armor/fonds_solidarite_logement_assurance_locative_energie.yml,sha256=XLPJJx4R6eU7o4yAnivcG5nTF33sYuFeElvzzL-ciys,317
188
225
  tests/departements/eure_et_loir/adefip.yml,sha256=qgrpglaHdSk0s6m84EDAPWyS0lIDLRaSbmkjMzBHmKM,3514
226
+ tests/departements/eure_et_loir/aep.yml,sha256=kS311GJjIL2Shi642_A1iJaOx-vD0xO41tnbcb7MTVY,2067
189
227
  tests/departements/eure_et_loir/aide-menagere-personne-agee.yml,sha256=tlxoE5U1jxpIoOSR73HB3zXYYO9AnyVyLbLi6rOXI5A,7827
190
228
  tests/departements/eure_et_loir/aide-menagere-personne-handicap.yml,sha256=xcVH8dSkVRKUndU6Oz_nxFZfm5B8HIF7J80X8962J5I,6069
191
229
  tests/departements/eure_et_loir/ash_personne_agee.yml,sha256=SEEu-jrl8koJGqivRjdro9Q2kwkFtWCv-WMR_TeMj1k,7127
@@ -206,7 +244,8 @@ tests/departements/eure_et_loir/repas_foyer_personne_handicape.yml,sha256=LZIf2R
206
244
  tests/departements/eure_et_loir/transport_eleves_etudiants.yml,sha256=temar3124TEk37zluaCh4yj0oq2mqlYR5z6JPBElTgQ,1236
207
245
  tests/departements/haute-vienne/aide_permis.yaml,sha256=XAnflnjRNB_rCJSC0X2ZwxElLKLwe2RK_cskfgCJJYs,628
208
246
  tests/departements/haute_saone/aide_permis.yaml,sha256=h1KhWPM0vAcNMqzwlhHmZmt2of1zdAFpcKpb564ebQU,720
209
- tests/departements/loire_atlantique/aide_mobilite.yml,sha256=qOaSwLN2b7KBlLti5j5Vgt_ZFdTe5k_AkSPQeklzX0E,253
247
+ tests/departements/loire_atlantique/aide_mobilite.yml,sha256=JoOQ0_kPVAySu13m2McptbEgHIUhtlh14y_nHVGvqD0,642
248
+ tests/departements/meurthe_et_moselle/pass_jeune_54.yml,sha256=qoMRgJqMa460tL1FbgM52ozh6T-XFwU_KBmdjpEXsoQ,553
210
249
  tests/departements/nord/activ_emploi.yaml,sha256=eXB3vNNoRDQ8yfvoeAhyxHHfT1fMOPLWns-aBQvYrH0,387
211
250
  tests/departements/vendee/bourses_jeunes_benevoles.yaml,sha256=BCgEXxm0z8fl5TYah_0z3OfnKomvmBFeeltT_B8hpGo,162
212
251
  tests/departements/yvelines/aide_permis.yml,sha256=O7bRsOgXZcIwDZ3xJM9kFxWyjrcigkNw3W2cN3g5te4,675
@@ -220,6 +259,7 @@ tests/metropoles/nantes/tarification_solidaire_transports.yaml,sha256=VYmKKOhohQ
220
259
  tests/metropoles/rennes/mon_aide.yaml,sha256=xKIa6kYrHVEDq402h2zRycQGHSObw0qsr-1NAWUl-70,7349
221
260
  tests/metropoles/strasbourg/etudiant.yaml,sha256=AqD28NCxrSRdX1HAOZ8uxcUY06fse_MYewzibXffMwU,216
222
261
  tests/metropoles/strasbourg/montant.yaml,sha256=20bE05CrPaNB89O1dDeLYdcgbuaDuUtZrLgU0Rhxbzc,474
262
+ tests/metropoles/strasbourg/periscolaire.yaml,sha256=X7-gRWBArPkO5-F_xqe1aflMtEQ6zPi3umFsx0TdOYo,624
223
263
  tests/metropoles/toulouse/tisseo/demandeur_emploi.yaml,sha256=HcPSsz8JOn-HWMo1aQmIUACqwK3LnAFMahQ3uYuOPWY,455
224
264
  tests/metropoles/toulouse/tisseo/invalides.yaml,sha256=XpX-YLYj3RUa5hNM8NQ6LDvSoUV_KwXHX7vcVa_musM,249
225
265
  tests/metropoles/toulouse/tisseo/jeunes.yaml,sha256=jIxGXA2nrbpzgS_nkqKnGfDkyqcSKDe2Rauvp7rkeVc,362
@@ -227,17 +267,19 @@ tests/metropoles/toulouse/tisseo/ressort_territorial.yaml,sha256=P8cGaxGLLdjfmIP
227
267
  tests/metropoles/toulouse/tisseo/retraites.yaml,sha256=Sbi6CELr-7zXJJ3EZsDE7Wd--hl5ZU-Vt3wKGr2PoA0,259
228
268
  tests/metropoles/toulouse/tisseo/transport_reduction.yaml,sha256=gy2E76faNoviAr3vm0Hv9vtLuQ0ioWr1KK12CbAGsbo,200
229
269
  tests/reforms/aides_jeunes/test_aides_jeunes_reform.py,sha256=TUswOO6m588v-WsiGGvrGgq6CXM688TfRUlmdQizyk4,922
230
- tests/reforms/aides_jeunes/test_aides_jeunes_reform.yaml,sha256=BB1auzXV8zhat3qE9ZMvdlQTMHr8CQa9ozgOGsQRAR8,8486
270
+ tests/reforms/aides_jeunes/test_aides_jeunes_reform.yaml,sha256=8wr3j6IrSEtB3dyURln2_cuMs76Z7gob9L-Elhse1zY,8455
231
271
  tests/reforms/aides_jeunes/test_convert_benefit_conditions_to_parameters.py,sha256=8iqb53U7l9g8o6HbR_i7o2bAm_7fTzn4B_-xfp_61-M,7619
232
272
  tests/reforms/epci_test_factory/test_epci_path.py,sha256=VLAfVeuBOafU2xTWlI-0ZYGRGnXI4gyXLNQUj02hRaA,644
233
273
  tests/reforms/epci_test_factory/test_epci_reform.yaml,sha256=KXV4EViQoZrMmxyJEANqeMP6chki6FCS2uQP2yomaSQ,197
234
274
  tests/regions/auvergne-rhone-alpes/aide_permis.yml,sha256=szNpbs_WYwjk3I_BScxU5reRQBsF1qQ2Kb-IeI8frI4,149
275
+ tests/regions/auvergne-rhone-alpes/auvergne_mutuelle_communale.yml,sha256=He5Bs5NNEyn_MHo-DmUyk9tY3ZyXKmRlR5Q6XzjXSgI,570
235
276
  tests/regions/bretagne/msa_armorique/aide_permis.yml,sha256=HZhCW1n3iy0X-UGY0BSMpovBT8wIV76oAvZ82b4uX1U,742
236
277
  tests/regions/bretagne/msa_portes_de_bretagne/aide_permis.yml,sha256=mytuSciKJBXwxDrJnWoT28aIaESV3PVR8VZgW2ppfFc,751
237
278
  tests/regions/hauts-de-france/aide_garde_enfant.yml,sha256=0teltKijXUO-amqDQatVb64fIwCeuhuKbTOGOeL_cG0,4080
238
- tests/regions/hauts-de-france/aide_permis.yml,sha256=ii6ucc5fXnLKp60MbYaBRGFPLQPL-P6IAewsIq6Dpv8,1123
279
+ tests/regions/hauts-de-france/aide_permis.yml,sha256=y22d3GlQunWQ0SVyi5YCw23HIzrrwMPIwcU2Mxoj-kQ,1118
239
280
  tests/regions/hauts-de-france/crous/aide_100_repas_gratuits.yml,sha256=uOiBAstAynC7Pf-o02zsYcwwI2ajDbt9Rl9zrFdYY78,2565
240
281
  tests/regions/hauts-de-france/msa_nord_pas_de_calais/aide_permis.yml,sha256=yR5J5CNOELflmlkmq9R0RUZCU3PLnIAyD_6cXYaiMU4,520
282
+ tests/regions/ile_de_france/aide_achat_voiture_electrique.yml,sha256=j_VCYVdDmG0zcOH1ksp6bgX9ipBWras0zGxJEMsZuIs,940
241
283
  tests/regions/normandie/msa_haute_normandie/aide_permis.yaml,sha256=CcmmwFVEle8YNX2yLdLVXOms1PrN8rlrRIuVB0yVCl0,671
242
284
  tests/regions/nouvelle-aquitaine/aide_permis.yaml,sha256=KZg5J3Tukyu06tKPY7sQHFCCTghPSxsBnz-UKDioTT8,1818
243
285
  tests/regions/nouvelle-aquitaine/carte_solidaire.yml,sha256=nqSh3kTwakD0OKyQxwoFqfU7cGTe55klyseQ5GcJuF8,150
@@ -245,8 +287,8 @@ tests/regions/occitanie/carte_jeune_region.yml,sha256=t86RNkSuBYr2fEt60WZi0R115n
245
287
  tests/regions/occitanie/carte_transport_scolaire.yml,sha256=ZzVRWnH6i9nni7hatdfUX0ltcWR2BCwh4BLP7UpKuZE,318
246
288
  tests/regions/occitanie/msa_midi_pyrenees_sud/aide_permis.yml,sha256=zAI_NBTfsP_Q72pDabN2ChQnpK98xasXetIQJmq6LTc,439
247
289
  tests/regions/pays_de_la_loire/epass_jeunes_culture_sport.yaml,sha256=vgdq2hFtBWYWHHmO70bPV0lR_0wohJfmJGQb48A0EpQ,336
248
- OpenFisca_France_Local-6.11.8.dist-info/LICENSE,sha256=dql8h4yceoMhuzlcK0TT_i-NgTFNIZsgE47Q4t3dUYI,34520
249
- OpenFisca_France_Local-6.11.8.dist-info/METADATA,sha256=JXnajoO7ACW_1mvFV5d7pijUYQAP1pIg7SUxKxsSM0I,1170
250
- OpenFisca_France_Local-6.11.8.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
251
- OpenFisca_France_Local-6.11.8.dist-info/top_level.txt,sha256=DPfQtZjavxRdHDsGTetqu5AEeVMEEBtG1qdv7ijuwWQ,56
252
- OpenFisca_France_Local-6.11.8.dist-info/RECORD,,
290
+ OpenFisca_France_Local-6.17.4.dist-info/LICENSE,sha256=dql8h4yceoMhuzlcK0TT_i-NgTFNIZsgE47Q4t3dUYI,34520
291
+ OpenFisca_France_Local-6.17.4.dist-info/METADATA,sha256=qqaWYntTFbxkas6zB4P_dFasoey7-tids6cNgkgF9Jw,1369
292
+ OpenFisca_France_Local-6.17.4.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
293
+ OpenFisca_France_Local-6.17.4.dist-info/top_level.txt,sha256=DPfQtZjavxRdHDsGTetqu5AEeVMEEBtG1qdv7ijuwWQ,56
294
+ OpenFisca_France_Local-6.17.4.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.43.0)
2
+ Generator: setuptools (75.8.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -284,6 +284,9 @@ ProfileEvaluator = collections.namedtuple(
284
284
 
285
285
 
286
286
  def build_condition_evaluator_list(conditions: 'list[dict]') -> 'list[ConditionEvaluator]':
287
+ """
288
+ Établit une correspondance entre les conditions et les fonctions qui évaluent ces conditions.
289
+ """
287
290
  try:
288
291
  evaluators: 'list[ConditionEvaluator]' = [
289
292
  ConditionEvaluator(condition, condition_table[condition['type']])
@@ -296,6 +299,9 @@ def build_condition_evaluator_list(conditions: 'list[dict]') -> 'list[ConditionE
296
299
 
297
300
 
298
301
  def build_profil_evaluator(profil: dict) -> ProfileEvaluator:
302
+ """
303
+ Associe un test d'éligibilité au profil et pour chacune de ses conditions.
304
+ """
299
305
  try:
300
306
  predicate = profil_table[profil['type']]
301
307
  except KeyError:
@@ -334,6 +340,12 @@ def eval_profil(profil_evaluator: ProfileEvaluator,
334
340
 
335
341
 
336
342
  def generate_variable(benefit: dict):
343
+ """
344
+ Créé la variable qui va être intégrée dans le TaxAndBenefitSystem.
345
+
346
+ Génère une `Variable` Openfisca dont le type est la formule correspondent
347
+ aux données du dictionaire source issue d'un fichier `YAML`.
348
+ """
337
349
  variable_name: str = benefit['slug']
338
350
  amount = benefit.get('montant')
339
351
 
@@ -379,6 +391,21 @@ default_institutions_path = 'test_data/institutions'
379
391
 
380
392
 
381
393
  class aides_jeunes_reform_dynamic(reforms.Reform):
394
+ """
395
+ Cette réforme n'est pas une réforme au sens légal du terme.
396
+
397
+ La réforme ici présente est utilisée pour lire des fichiers `YAML`
398
+ qui modélisent des dispositifs d'aides sociales avec des conditions simples
399
+ de manière à les intégrer dans une instance Openfisca.
400
+
401
+ Pour utiliser la réforme, il faut :
402
+ - Définir le chemin des dossiers qui contiennent
403
+ les aides et les institutions avec les variables d'environement
404
+ `DYNAMIC_BENEFIT_FOLDER` et `DYNAMIC_INSTITUTION_FOLDER`
405
+ - Lancer Openfisca en appelant la réforme :
406
+ `--reform openfisca_france_local.aides_jeunes_reform.aides_jeunes_reform_dynamic`
407
+ """
408
+
382
409
  def __init__(self, baseline, benefits_folder_path=default_benefit_path, institutions_folder_path=default_institutions_path):
383
410
  self.benefits_folder_path = getenv('DYNAMIC_BENEFIT_FOLDER', benefits_folder_path)
384
411
  self.institutions_folder_path = getenv('DYNAMIC_INSTITUTION_FOLDER', institutions_folder_path)
@@ -403,12 +430,30 @@ class aides_jeunes_reform_dynamic(reforms.Reform):
403
430
 
404
431
  def _extract_benefit_file_content(self, benefit_path: str):
405
432
  def _convert_institution_to_condition(benefit: dict) -> dict:
433
+ """
434
+ Si le fichier `YAML` traité contient une condition de type `attached_to_institution`,
435
+ un traitement est nécessaire car les modalités de cette condition ne sont pas précisées
436
+ dans le fichier en question.
437
+
438
+ Cette condition est une condition géographique.
439
+
440
+ Il faut aller récupérer les informations liées à l'institution en question
441
+ dans un fichier qui modélise l'institution correspondante pour ensuite ajouter
442
+ une condition géographique équivalente.
443
+
444
+ Il existe 4 type de condition géographique :
445
+ `msa`, `caf`, `epci`, `regions`, `departements` et `communes`.
446
+ """
406
447
  if {'type': 'attached_to_institution'} in benefit['conditions_generales']:
407
448
  conditions_generales_without_attached_institution = [
408
449
  condition for condition
409
450
  in benefit['conditions_generales']
410
451
  if condition != {'type': 'attached_to_institution'}]
411
452
 
453
+ # /!\ Pas de mise en cache faite ici. Si deux fichiers font appel à la même institution,
454
+ # le fichier de l'institution en question sera ouvert 2 fois.
455
+ # Si un jour la condition `attached_to_institution` venait à être utilisée de manière
456
+ # intensive, il pourrait être intéressant d'implanter un cache ici
412
457
  with open(f'{self.institutions_folder_path}/{benefit["institution"]}.yml') as file:
413
458
  institution: dict = yaml.safe_load(file)
414
459
 
@@ -429,6 +474,13 @@ class aides_jeunes_reform_dynamic(reforms.Reform):
429
474
  return benefit
430
475
 
431
476
  def _slug_from_path(path: str):
477
+ """
478
+ Pour créer une nouvelle variable Openfisca, il est necessaire
479
+ de lui donner un nom qui respecte la syntaxe d'une variable Python.
480
+
481
+ Cette méthode utilise le nom du fichier pour déterminer
482
+ un nom de variable compatible.
483
+ """
432
484
  return path.split('/')[-1].replace('-', '_').split('.')[0]
433
485
 
434
486
  with open(benefit_path) as file:
@@ -0,0 +1,48 @@
1
+ # -*- coding: utf-8 -*-
2
+ from openfisca_france.model.base import Famille, Menage, MONTH, Variable, select
3
+
4
+ class antony_aide_depart_sejour_adapte(Variable):
5
+ value_type = float
6
+ entity = Famille
7
+ definition_period = MONTH
8
+ label = "Montant total de l'Aide au départ en séjour adapté de la ville de Antony"
9
+ reference = "https://www.ville-antony.fr/aide-aux-departs-en-sejours-vacances"
10
+
11
+ def formula(famille, period, parameters):
12
+ residence_antony = famille.demandeur.menage('antony_eligibilite_residence', period)
13
+
14
+ condition_ressources_remplies = famille('antony_eligibilite_ressources', period)
15
+
16
+ nb_enfants_handicapes = famille.sum(famille.members('handicap', period), role = Famille.ENFANT)
17
+ montant_individuel = famille('antony_aide_depart_sejour_adapte_montant_individuel', period)
18
+ montant_total = montant_individuel * nb_enfants_handicapes
19
+
20
+ return residence_antony * condition_ressources_remplies * montant_total
21
+
22
+
23
+ class antony_aide_depart_sejour_adapte_montant_individuel(Variable):
24
+ value_type = float
25
+ entity = Famille
26
+ definition_period = MONTH
27
+ label = "Montant de base applicable à chaque individu pour l'Aide au départ en séjour adapté de la ville de Antony"
28
+
29
+ def formula(famille, period, parameters):
30
+ parameters_antony = parameters(period).communes.antony.plafonds_revenus.sejour_adapte
31
+
32
+ # Les plafonds sont mensuels et les ressources sont considérées sur 3 mois
33
+ # On remet donc les ressources à un niveau mensuel pour la comparaison
34
+ ressources_considerees_famille = famille('antony_base_ressources', period) / 3
35
+
36
+ montant = select(
37
+ [
38
+ ressources_considerees_famille < parameters_antony.tranches.tranche_1,
39
+ ressources_considerees_famille < parameters_antony.tranches.tranche_2
40
+ ],
41
+ [
42
+ parameters_antony.montants.montant_tranche_1,
43
+ parameters_antony.montants.montant_tranche_2
44
+ ],
45
+ default=0
46
+ )
47
+
48
+ return montant
@@ -0,0 +1,23 @@
1
+ # -*- coding: utf-8 -*-
2
+ from openfisca_france.model.base import Famille, MONTH, Variable
3
+ from openfisca_france.model.prestations.education import TypesScolarite
4
+
5
+
6
+ class antony_bourse_communale(Variable):
7
+ value_type = bool
8
+ entity = Famille
9
+ definition_period = MONTH
10
+ label = "Éligibilité de la famille à la Bourse Communale de la ville de Antony"
11
+ reference = "https://www.ville-antony.fr/bourses-communales#restaurationscolaire"
12
+
13
+ def formula(famille, period, parameters):
14
+ residence_antony = famille.demandeur.menage('antony_eligibilite_residence', period)
15
+
16
+ condition_ressources_remplies = famille('antony_eligibilite_ressources', period)
17
+
18
+ scolarite = famille.members('scolarite', period)
19
+ scolarise = ((scolarite == TypesScolarite.college) + (scolarite == TypesScolarite.lycee))
20
+
21
+ au_moins_un_enfant_scolarise = famille.any(scolarise, role=Famille.ENFANT)
22
+
23
+ return residence_antony * condition_ressources_remplies * au_moins_un_enfant_scolarise
@@ -0,0 +1,21 @@
1
+ # -*- coding: utf-8 -*-
2
+ from openfisca_france.model.base import Famille, MONTH, Variable
3
+
4
+
5
+ class antony_bourse_conservatoire(Variable):
6
+ value_type = bool
7
+ entity = Famille
8
+ definition_period = MONTH
9
+ label = "Éligibilité de la famille à la Bourse du Conservatoire de la ville de Antony"
10
+ reference = "https://www.ville-antony.fr/bourses-communales#conservatoire"
11
+
12
+ def formula(famille, period, parameters):
13
+ age_maximum = parameters(period).communes.antony.bourse_conservatoire.age_maximum
14
+
15
+ residence_antony = famille.demandeur.menage('antony_eligibilite_residence', period)
16
+ condition_ressources_remplies = famille('antony_eligibilite_ressources', period)
17
+ age_i = famille.members('age', period)
18
+
19
+ au_moins_un_enfant_moins_de_18_ans = famille.any(age_i < age_maximum, role=Famille.ENFANT)
20
+
21
+ return residence_antony * condition_ressources_remplies * au_moins_un_enfant_moins_de_18_ans
@@ -0,0 +1,25 @@
1
+ # -*- coding: utf-8 -*-
2
+ from openfisca_france.model.base import Famille, MONTH, Variable
3
+
4
+
5
+ class antony_bourse_famille_nombreuse(Variable):
6
+ value_type = bool
7
+ entity = Famille
8
+ definition_period = MONTH
9
+ label = "Éligibilité de la famille à la Bourse Famille Nombreuse de la ville de Antony"
10
+ reference = "https://www.ville-antony.fr/bourses-communales#famillesnombreuses"
11
+
12
+ def formula(famille, period, parameters):
13
+ parameters = parameters(period).communes.antony.bourse_famille_nombreuse
14
+ nb_enfants_minimum = parameters.nb_enfants_minimum
15
+ age_maximum = parameters.age_maximum
16
+
17
+ residence_antony = famille.demandeur.menage('antony_eligibilite_residence', period)
18
+
19
+ nb_enfants = famille.nb_persons(role=Famille.ENFANT)
20
+ condition_nb_enfants = nb_enfants >= nb_enfants_minimum
21
+
22
+ age_i = famille.members('age', period)
23
+ au_moins_un_enfant_moins_de_1_an = famille.any(age_i < age_maximum, role=Famille.ENFANT)
24
+
25
+ return residence_antony * condition_nb_enfants * au_moins_un_enfant_moins_de_1_an
@@ -0,0 +1,21 @@
1
+ # -*- coding: utf-8 -*-
2
+ from openfisca_france.model.base import Famille, MONTH, Variable
3
+
4
+
5
+ class antony_noel_pour_tous(Variable):
6
+ value_type = bool
7
+ entity = Famille
8
+ definition_period = MONTH
9
+ label = "Éligibilité de la famille au Noël pour Tous de la ville de Antony"
10
+ reference = "https://www.ville-antony.fr/actualites/noel-ccas-2024"
11
+
12
+ def formula(famille, period, parameters):
13
+ age_maximum = parameters(period).communes.antony.noel_pour_tous.age_maximum
14
+
15
+ residence_antony = famille.demandeur.menage('antony_eligibilite_residence', period)
16
+ condition_ressources_remplies = famille('antony_eligibilite_ressources', period)
17
+ age_demandeur = famille.demandeur('age', period)
18
+
19
+ demandeur_moins_de_68_ans = age_demandeur < age_maximum
20
+
21
+ return residence_antony * condition_ressources_remplies * demandeur_moins_de_68_ans
@@ -0,0 +1,81 @@
1
+ # -*- coding: utf-8 -*-
2
+ from openfisca_france.model.base import * # noqa analysis:ignore
3
+
4
+
5
+ class antony_base_ressources(Variable):
6
+ value_type = float
7
+ entity = Famille
8
+ definition_period = MONTH
9
+ label = "Base ressources d'une famille aux dispositifs d'Antony"
10
+
11
+ def formula(famille, period, parameters):
12
+ # M-1 to M-3
13
+ last_three_months = period.last_3_months
14
+
15
+ ressources_individus_a_inclure = [
16
+ 'salaire_imposable',
17
+ 'retraite_imposable',
18
+ 'chomage_imposable',
19
+ 'pensions_invalidite',
20
+ 'indemnites_journalieres',
21
+ 'aah',
22
+ 'pensions_alimentaires_percues'
23
+ ]
24
+
25
+ ressources_famille_a_inclure = [
26
+ 'af',
27
+ 'cf',
28
+ 'paje',
29
+ 'asf',
30
+ 'aeeh',
31
+ 'rsa',
32
+ 'ppa'
33
+ ]
34
+
35
+ resources_mensuelles_individus_m_3 = sum([
36
+ famille.members(resource, last_three_months, options=[ADD])
37
+ for resource in ressources_individus_a_inclure
38
+ ])
39
+ ressources_mensuelles_famille_m_3 = sum([
40
+ famille(resource, last_three_months, options=[ADD])
41
+ for resource in ressources_famille_a_inclure
42
+ ])
43
+ ressources_m_3 = ressources_mensuelles_famille_m_3 + famille.sum(resources_mensuelles_individus_m_3)
44
+
45
+ rfr_equivalent_m_3 = famille.demandeur.foyer_fiscal('rfr', period.n_2) / 4
46
+
47
+ ressources_considerees = select(
48
+ [((ressources_m_3 > 0) * (rfr_equivalent_m_3 > 0)), (ressources_m_3 > 0), (rfr_equivalent_m_3 > 0)],
49
+ [min_(ressources_m_3, rfr_equivalent_m_3), ressources_m_3, rfr_equivalent_m_3],
50
+ default=0
51
+ )
52
+
53
+ return ressources_considerees
54
+
55
+
56
+ class antony_eligibilite_ressources(Variable):
57
+ value_type = bool
58
+ entity = Famille
59
+ definition_period = MONTH
60
+ label = "Éligibilité de ressources d'une famille aux dispositifs d'Antony"
61
+
62
+ def formula(famille, period, parameters):
63
+ parameters_antony = parameters(period).communes.antony.plafonds_revenus
64
+ baremes_enfants = parameters_antony.bareme_enfants.bareme_ressources_par_enfant
65
+
66
+ ressources_considerees = famille('antony_base_ressources', period)
67
+
68
+ nb_enfants = famille.nb_persons(role=Famille.ENFANT)
69
+
70
+ en_couple = famille('en_couple', period)
71
+
72
+ plafond_considere = select(
73
+ [not_(en_couple) * (nb_enfants == 0), en_couple * (nb_enfants == 0), nb_enfants > 0],
74
+ # Le barème ne va que jusqu'à 7 enfants, on considère donc 7 enfants au plus dans le calcule du barème
75
+ # avec min_(nb_enfants, 7)
76
+ [parameters_antony.personne_seule, parameters_antony.couple, baremes_enfants.calc(min_(nb_enfants, 7))]
77
+ )
78
+
79
+ # Les plafonds sont mensuels et les ressources sont considérées sur 3 mois
80
+ # On remet donc les ressources à un niveau mensuel pour la comparaison
81
+ return (ressources_considerees / 3) < plafond_considere
@@ -0,0 +1,11 @@
1
+ # -*- coding: utf-8 -*-
2
+ from openfisca_france.model.base import Menage, MONTH, Variable
3
+
4
+ class antony_eligibilite_residence(Variable):
5
+ value_type = bool
6
+ entity = Menage
7
+ definition_period = MONTH
8
+ label = "Éligibilité résidentielle d'un ménage aux dipositifs d'Antony"
9
+
10
+ def formula(menage, period, parameters):
11
+ return (menage('depcom', period) == b'92002')
@@ -0,0 +1,10 @@
1
+ from openfisca_france.model.base import Menage, MONTH, Variable
2
+
3
+ class montpellier_eligibilite_residence(Variable):
4
+ value_type = bool
5
+ entity = Menage
6
+ definition_period = MONTH
7
+ label = "Éligibilité résidentielle d'un ménage aux dipositifs de Montpellier"
8
+
9
+ def formula(menage, period):
10
+ return menage('depcom', period) == b'34172'
@@ -0,0 +1,17 @@
1
+ from openfisca_france.model.base import Variable, MONTH, not_, Famille
2
+
3
+ class montpellier_mutuelle_communale(Variable):
4
+ value_type = bool
5
+ entity = Famille
6
+ definition_period = MONTH
7
+ label = "Mutuelle communale de la ville de Montpellier"
8
+ reference = [
9
+ "https://www.montpellier.fr/4884-mutuelle-communale.htm"
10
+ ]
11
+
12
+ def formula(famille, period):
13
+ eligibilite_residentielle = famille.demandeur.menage('montpellier_eligibilite_residence', period)
14
+ css_participation_forfaitaire = famille('css_participation_forfaitaire', period)
15
+ cmu_c = famille('cmu_c', period)
16
+ eligibilite_css_cmu_c = (css_participation_forfaitaire > 0) | cmu_c
17
+ return eligibilite_residentielle * not_(eligibilite_css_cmu_c)