OpenFisca-France-Local 6.16.0__py3-none-any.whl → 6.17.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.

Files changed (28) hide show
  1. {OpenFisca_France_Local-6.16.0.dist-info → OpenFisca_France_Local-6.17.0.dist-info}/METADATA +1 -1
  2. {OpenFisca_France_Local-6.16.0.dist-info → OpenFisca_France_Local-6.17.0.dist-info}/RECORD +28 -6
  3. openfisca_france_local/communes/antony/antony_aide_depart_sejour_adapte.py +48 -0
  4. openfisca_france_local/communes/antony/antony_bourse_communale.py +23 -0
  5. openfisca_france_local/communes/antony/antony_bourse_conservatoire.py +21 -0
  6. openfisca_france_local/communes/antony/antony_bourse_famille_nombreuse.py +25 -0
  7. openfisca_france_local/communes/antony/antony_noel_pour_tous.py +21 -0
  8. openfisca_france_local/communes/antony/base_ressources.py +84 -0
  9. openfisca_france_local/communes/antony/eligibilite.py +11 -0
  10. openfisca_france_local/parameters/communes/antony/bourse_conservatoire/age_maximum.yaml +6 -0
  11. openfisca_france_local/parameters/communes/antony/bourse_famille_nombreuse/age_maximum.yaml +6 -0
  12. openfisca_france_local/parameters/communes/antony/bourse_famille_nombreuse/nb_enfants_minimum.yaml +5 -0
  13. openfisca_france_local/parameters/communes/antony/noel_pour_tous/age_maximum.yaml +6 -0
  14. openfisca_france_local/parameters/communes/antony/plafonds_revenus/bareme_enfants.yml +77 -0
  15. openfisca_france_local/parameters/communes/antony/plafonds_revenus/couple.yaml +6 -0
  16. openfisca_france_local/parameters/communes/antony/plafonds_revenus/personne_seule.yaml +6 -0
  17. openfisca_france_local/parameters/communes/antony/plafonds_revenus/sejour_adapte.yaml +19 -0
  18. tests/communes/antony/aide_bourse_communale.yml +129 -0
  19. tests/communes/antony/aide_bourse_conservatoire.yml +99 -0
  20. tests/communes/antony/aide_bourse_famille_nombreuse.yml +109 -0
  21. tests/communes/antony/aide_depart_sejour_adapte.yml +16 -0
  22. tests/communes/antony/antony_noel_pour_tous.yml +67 -0
  23. tests/communes/antony/base_ressources.yml +591 -0
  24. tests/communes/antony/eligibilite.yml +6 -0
  25. {OpenFisca_France_Local-6.16.0.data → OpenFisca_France_Local-6.17.0.data}/scripts/openfisca_local_test +0 -0
  26. {OpenFisca_France_Local-6.16.0.dist-info → OpenFisca_France_Local-6.17.0.dist-info}/LICENSE +0 -0
  27. {OpenFisca_France_Local-6.16.0.dist-info → OpenFisca_France_Local-6.17.0.dist-info}/WHEEL +0 -0
  28. {OpenFisca_France_Local-6.16.0.dist-info → OpenFisca_France_Local-6.17.0.dist-info}/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: OpenFisca-France-Local
3
- Version: 6.16.0
3
+ Version: 6.17.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.16.0.data/scripts/openfisca_local_test,sha256=M55UQ5tskwZpJVLXGqlIcVs1nVZ2pBr_-R9jh-z2tbw,128
1
+ OpenFisca_France_Local-6.17.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=2Kf9AUH_oOelsfU8nKuzamX1X9VyJlImlJ35RrVqbDA,19055
4
4
  openfisca_france_local/convert_benefit_conditions_to_parameters.py,sha256=qMQNMQKJh-m77KWvbAaMxO2VHB8SwUtVw80c7r7YeFc,6304
@@ -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=cnF4dzRQ-ZegU41sWjEsnSnRVg6tNQEeIezax5U4gi8,2037
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=2Xeo6Bodz0myP5O__nF8BQCwu-2fBQVgbew2OA7TKQE,887
18
+ openfisca_france_local/communes/antony/base_ressources.py,sha256=cDSUDZWNYD-OG708c9j4ZjA1vQYmEULbI7O52SZkjig,3062
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
@@ -75,6 +82,14 @@ openfisca_france_local/metropoles/toulouse/tisseo/retraites.py,sha256=BIdAV-KiFZ
75
82
  openfisca_france_local/metropoles/toulouse/tisseo/transport_reduction.py,sha256=FlE-2f9R0X4u3_hVqvK2dohR14oa4HbySzLt99koCZM,1176
76
83
  openfisca_france_local/parameters/garantie_jeunes.yaml,sha256=VmdMgY06DWQ_nGp1Ijv866a_sZcGATEdnHTQQjofwLw,335
77
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
78
93
  openfisca_france_local/parameters/communes/cambrai/aide_permis.yml,sha256=ngzABrR2PFgi3XFzeQL5uKEA9Z0hqxTbKKnNvT9Ys3I,231
79
94
  openfisca_france_local/parameters/communes/carcassonne/aide_permis.yaml,sha256=Tozcfwo751bbfrTfpP0TKaQUZc49quZhJh5Uzd0r4oo,1343
80
95
  openfisca_france_local/parameters/communes/iwuy/aide_permis.yml,sha256=OQL0IKFGV7Jiy-1hjajsfMKszrRN-l7ffrn3KszOy20,239
@@ -186,6 +201,13 @@ tests/communes/illkirch_graffenstaden.yml,sha256=_4UYOPZ-orTsOSqMJo8o20-Y3lRWS-Q
186
201
  tests/communes/alfortville/eligibilite.yml,sha256=LpUHyhBSKUlmk7pmXLvzSF-dawWTtAk15gminGqznRQ,407
187
202
  tests/communes/alfortville/noel_enfants.yml,sha256=Qw3wu8jgCp2XEf-yqiJEo1EkBD-5yq9bvmBWYsTgtt0,1570
188
203
  tests/communes/alfortville/noel_enfants_base_ressource.yml,sha256=-IXtEfB0OoMDEKnTou_kGpW7MdS6TZgVqtImCXe8wcU,811
204
+ tests/communes/antony/aide_bourse_communale.yml,sha256=b-FBsWybl43i-z3itwM9vErK8DvSGgQ26VWiUW3JxlU,3301
205
+ tests/communes/antony/aide_bourse_conservatoire.yml,sha256=QmP9jwSEzWqOLIiFaVv2n8KCM1jlqMMEZDQIMzdSv2c,2568
206
+ tests/communes/antony/aide_bourse_famille_nombreuse.yml,sha256=PTkR7lBOMODEAq8bmGZOV8Xx66-1lJ-WEe3nIO4Ak98,2911
207
+ tests/communes/antony/aide_depart_sejour_adapte.yml,sha256=rFrPJWRrkI-grYgL1QH7TkybuESEg3wPYzshlluZCIE,601
208
+ tests/communes/antony/antony_noel_pour_tous.yml,sha256=BWjb4S7D14zQix5wPvbJqI-A6OG8ad7RerX-I0zgzl8,1696
209
+ tests/communes/antony/base_ressources.yml,sha256=M7-FvWoMtklVCZ9YwNzyru1RucvQvOU-a4zIR5csRd4,12577
210
+ tests/communes/antony/eligibilite.yml,sha256=syWbpvjPMwJZBnI-YLaQTFnzeKtQAaLzncIaOCsmfOw,145
189
211
  tests/communes/cambrai/aide_permis.yml,sha256=bunUx-90pSLAo462LGw7LVmwBTm6CvN6Ch15XpOOKGU,223
190
212
  tests/communes/carcassonne/aide_permis.yaml,sha256=gqE1qdqz0l3cjDQMCuKjYpN-klauODUzQlQH_FdCYIg,775
191
213
  tests/communes/iwuy/aide_permis.yml,sha256=vbWLT4hP4x3xDBBP8fh-zShCGjxsEEduhGzinS_TPCk,142
@@ -261,8 +283,8 @@ tests/regions/occitanie/carte_jeune_region.yml,sha256=t86RNkSuBYr2fEt60WZi0R115n
261
283
  tests/regions/occitanie/carte_transport_scolaire.yml,sha256=ZzVRWnH6i9nni7hatdfUX0ltcWR2BCwh4BLP7UpKuZE,318
262
284
  tests/regions/occitanie/msa_midi_pyrenees_sud/aide_permis.yml,sha256=zAI_NBTfsP_Q72pDabN2ChQnpK98xasXetIQJmq6LTc,439
263
285
  tests/regions/pays_de_la_loire/epass_jeunes_culture_sport.yaml,sha256=vgdq2hFtBWYWHHmO70bPV0lR_0wohJfmJGQb48A0EpQ,336
264
- OpenFisca_France_Local-6.16.0.dist-info/LICENSE,sha256=dql8h4yceoMhuzlcK0TT_i-NgTFNIZsgE47Q4t3dUYI,34520
265
- OpenFisca_France_Local-6.16.0.dist-info/METADATA,sha256=hXNtCnI2K4tkYlcDzUUVTMi1URpz_BPXlOK8RXAgr1s,1166
266
- OpenFisca_France_Local-6.16.0.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
267
- OpenFisca_France_Local-6.16.0.dist-info/top_level.txt,sha256=DPfQtZjavxRdHDsGTetqu5AEeVMEEBtG1qdv7ijuwWQ,56
268
- OpenFisca_France_Local-6.16.0.dist-info/RECORD,,
286
+ OpenFisca_France_Local-6.17.0.dist-info/LICENSE,sha256=dql8h4yceoMhuzlcK0TT_i-NgTFNIZsgE47Q4t3dUYI,34520
287
+ OpenFisca_France_Local-6.17.0.dist-info/METADATA,sha256=lJc7UU5YO9aEzyD4wjhgDxKFP3oKbcxHl0PyYJ_Mhs8,1166
288
+ OpenFisca_France_Local-6.17.0.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
289
+ OpenFisca_France_Local-6.17.0.dist-info/top_level.txt,sha256=DPfQtZjavxRdHDsGTetqu5AEeVMEEBtG1qdv7ijuwWQ,56
290
+ OpenFisca_France_Local-6.17.0.dist-info/RECORD,,
@@ -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
+ handicap = famille.members('handicap', period)
17
+ montant_individuel = famille('antony_aide_depart_sejour_adapte_montant_individuel', period)
18
+ montant_total = famille.sum(montant_individuel * handicap)
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-2023"
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,84 @@
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
+ # N-1
13
+ last_year = period.last_year
14
+
15
+ # M-1 to M-3
16
+ last_three_months = period.last_3_months
17
+
18
+ ressources_individus_a_inclure = [
19
+ 'salaire_imposable',
20
+ 'retraite_imposable',
21
+ 'chomage_imposable',
22
+ 'pensions_invalidite',
23
+ 'indemnites_journalieres',
24
+ 'aah',
25
+ 'pensions_alimentaires_percues'
26
+ ]
27
+
28
+ ressources_famille_a_inclure = [
29
+ 'af',
30
+ 'cf',
31
+ 'paje',
32
+ 'asf',
33
+ 'aeeh',
34
+ 'rsa',
35
+ 'ppa'
36
+ ]
37
+
38
+ resources_mensuelles_individus_m_3 = sum([
39
+ famille.members(resource, last_three_months, options=[ADD])
40
+ for resource in ressources_individus_a_inclure
41
+ ])
42
+ ressources_mensuelles_famille_m_3 = sum([
43
+ famille(resource, last_three_months, options=[ADD])
44
+ for resource in ressources_famille_a_inclure
45
+ ])
46
+ ressources_m_3 = ressources_mensuelles_famille_m_3 + famille.sum(resources_mensuelles_individus_m_3)
47
+
48
+ rfr_equivalent_m_3 = famille.demandeur.foyer_fiscal('rfr', period.n_2) / 4
49
+
50
+ ressources_considerees = select(
51
+ [((ressources_m_3 > 0) * (rfr_equivalent_m_3 > 0)), (ressources_m_3 > 0), (rfr_equivalent_m_3 > 0)],
52
+ [min_(ressources_m_3, rfr_equivalent_m_3), ressources_m_3, rfr_equivalent_m_3],
53
+ default=0
54
+ )
55
+
56
+ return ressources_considerees
57
+
58
+
59
+ class antony_eligibilite_ressources(Variable):
60
+ value_type = bool
61
+ entity = Famille
62
+ definition_period = MONTH
63
+ label = "Éligibilité de ressources d'une famille aux dispositifs d'Antony"
64
+
65
+ def formula(famille, period, parameters):
66
+ parameters_antony = parameters(period).communes.antony.plafonds_revenus
67
+ baremes_enfants = parameters_antony.bareme_enfants.bareme_ressources_par_enfant
68
+
69
+ ressources_considerees = famille('antony_base_ressources', period)
70
+
71
+ nb_enfants = famille.nb_persons(role=Famille.ENFANT)
72
+
73
+ en_couple = famille('en_couple', period)
74
+
75
+ plafond_considere = select(
76
+ [not_(en_couple) * (nb_enfants == 0), en_couple * (nb_enfants == 0), nb_enfants > 0],
77
+ # Le barème ne va que jusqu'à 7 enfants, on considère donc 7 enfants au plus dans le calcule du barème
78
+ # avec min_(nb_enfants, 7)
79
+ [parameters_antony.personne_seule, parameters_antony.couple, baremes_enfants.calc(min_(nb_enfants, 7))]
80
+ )
81
+
82
+ # Les plafonds sont mensuels et les ressources sont considérées sur 3 mois
83
+ # On remet donc les ressources à un niveau mensuel pour la comparaison
84
+ 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,6 @@
1
+ description: Âge maximum d'au moins un enfant de la famille pour être éligible à l'aide Antony Bourse Conservatoire
2
+ reference: https://www.ville-antony.fr/bourses-communales#conservatoire
3
+ unit: year
4
+ values:
5
+ 2021-06-01:
6
+ value: 18
@@ -0,0 +1,6 @@
1
+ description: Âge maximum d'au moins un enfant de la famille pour être éligible à l'aide Antony Bourse Famille Nombreuse
2
+ unit: year
3
+ reference: "https://www.ville-antony.fr/bourses-communales#famillesnombreuses"
4
+ values:
5
+ 2021-06-01:
6
+ value: 1
@@ -0,0 +1,5 @@
1
+ description: Nombre minimum d'enfants pour être éligible à l'aide Antony Bourse familles nombreuses
2
+ reference: https://www.ville-antony.fr/bourses-communales#famillesnombreuses
3
+ values:
4
+ 2021-06-01:
5
+ value: 3
@@ -0,0 +1,6 @@
1
+ description: Âge maximum pour être éligible à l'aide Antony Noel pour tous
2
+ reference: https://www.ville-antony.fr/actualites/noel-ccas-2023
3
+ unit: year
4
+ values:
5
+ 2021-06-01:
6
+ value: 68
@@ -0,0 +1,77 @@
1
+ bareme_ressources_par_enfant:
2
+ reference: https://www.ville-antony.fr/images/Actualite/2024/Aout/CCAS/Imprime-A4-demande-bourse-conservatoire-2024-2025.pdf
3
+ description: Barème des plafonds de ressources pour le droit aux aides de la ville de Antony
4
+ metadata:
5
+ type: single_amount
6
+ amount_unit: currency
7
+ brackets:
8
+ - amount:
9
+ 2021-06-01:
10
+ value: 2732
11
+ 2024-01-01:
12
+ value: 3071
13
+ threshold:
14
+ 2021-06-01:
15
+ value: 1
16
+ 2024-01-01:
17
+ value: 1
18
+ - amount:
19
+ 2021-06-01:
20
+ value: 3559
21
+ 2024-01-01:
22
+ value: 4000
23
+ threshold:
24
+ 2021-06-01:
25
+ value: 2
26
+ 2024-01-01:
27
+ value: 2
28
+ - amount:
29
+ 2021-06-01:
30
+ value: 4394
31
+ 2024-01-01:
32
+ value: 4940
33
+ threshold:
34
+ 2021-06-01:
35
+ value: 3
36
+ 2024-04-01:
37
+ value: 3
38
+ - amount:
39
+ 2021-06-01:
40
+ value: 5180
41
+ 2024-01-01:
42
+ value: 5822
43
+ threshold:
44
+ 2021-06-01:
45
+ value: 4
46
+ 2024-01-01:
47
+ value: 4
48
+ - amount:
49
+ 2021-06-01:
50
+ value: 5961
51
+ 2024-01-01:
52
+ value: 6701
53
+ threshold:
54
+ 2021-06-01:
55
+ value: 5
56
+ 2024-01-01:
57
+ value: 5
58
+ - amount:
59
+ 2021-06-01:
60
+ value: 6745
61
+ 2024-01-01:
62
+ value: 7581
63
+ threshold:
64
+ 2021-06-01:
65
+ value: 6
66
+ 2024-01-01:
67
+ value: 6
68
+ - amount:
69
+ 2021-06-01:
70
+ value: 7528
71
+ 2024-01-01:
72
+ value: 8461
73
+ threshold:
74
+ 2021-06-01:
75
+ value: 7
76
+ 2024-01-01:
77
+ value: 7
@@ -0,0 +1,6 @@
1
+ description: Plafond de ressources pour les aides d'Antony pour un couple sans enfants
2
+ reference: "https://www.ville-antony.fr/images/Actualite/2022/septembre/Handicap/imprime-2022-aide-aux-sejours-adaptes.pdf"
3
+ unit: currency
4
+ values:
5
+ 2021-06-01:
6
+ value: 1922
@@ -0,0 +1,6 @@
1
+ description: Plafond de ressources pour les aides d'Antony pour une personne seule
2
+ reference: "https://www.ville-antony.fr/images/Actualite/2022/septembre/Handicap/imprime-2022-aide-aux-sejours-adaptes.pdf"
3
+ unit: currency
4
+ values:
5
+ 2021-06-01:
6
+ value: 1601
@@ -0,0 +1,19 @@
1
+ tranches:
2
+ description: Plafond de ressources pour les deux tranches de l'Aide au sejour adapte de la ville de Antony
3
+ reference: "https://www.ville-antony.fr/images/Actualite/2022/septembre/Handicap/imprime-2022-aide-aux-sejours-adaptes.pdf"
4
+ tranche_1:
5
+ values:
6
+ 2021-06-01: 4394
7
+ tranche_2:
8
+ values:
9
+ 2021-06-01: 7528
10
+
11
+ montants:
12
+ description: Montants accordés pour les deux tranches de l'Aide au sejour adapte de la ville de Antony
13
+ reference: "https://www.ville-antony.fr/images/Actualite/2022/septembre/Handicap/imprime-2022-aide-aux-sejours-adaptes.pdf"
14
+ montant_tranche_1:
15
+ values:
16
+ 2021-06-01: 600
17
+ montant_tranche_2:
18
+ values:
19
+ 2021-06-01: 300
@@ -0,0 +1,129 @@
1
+ - name: Éligibilité à l'aide-bourse-communale - famille avec enfant scolarisé en collège
2
+ period: 2021-11
3
+ input:
4
+ famille:
5
+ parents: [parent1, parent2]
6
+ enfants: [enfant1]
7
+ antony_eligibilite_ressources: true
8
+ individus:
9
+ parent1:
10
+ age: 52
11
+ parent2:
12
+ age: 50
13
+ enfant1:
14
+ age: 13
15
+ scolarite: college
16
+ menage:
17
+ personne_de_reference: parent1
18
+ conjoint: parent2
19
+ enfants: [enfant1]
20
+ antony_eligibilite_residence: true
21
+ foyer_fiscal:
22
+ declarants: [parent1, parent2]
23
+ personnes_a_charge: [enfant1]
24
+ output:
25
+ antony_bourse_communale: true
26
+
27
+ - name: Éligibilité à l'aide-bourse-communale - famille avec enfant scolarisé en lycée
28
+ period: 2021-11
29
+ input:
30
+ famille:
31
+ parents: [parent1, parent2]
32
+ enfants: [enfant1]
33
+ antony_eligibilite_ressources: true
34
+ individus:
35
+ parent1:
36
+ age: 52
37
+ parent2:
38
+ age: 50
39
+ enfant1:
40
+ age: 13
41
+ scolarite: lycee
42
+ menage:
43
+ personne_de_reference: parent1
44
+ conjoint: parent2
45
+ enfants: [enfant1]
46
+ antony_eligibilite_residence: true
47
+ foyer_fiscal:
48
+ declarants: [parent1, parent2]
49
+ personnes_a_charge: [enfant1]
50
+ output:
51
+ antony_bourse_communale: true
52
+
53
+ - name: Non éligibilité à l'aide-bourse-communale - famille avec enfant non scolarisé
54
+ period: 2021-11
55
+ input:
56
+ famille:
57
+ parents: [parent1, parent2]
58
+ enfants: [enfant1]
59
+ antony_eligibilite_ressources: true
60
+ individus:
61
+ parent1:
62
+ age: 52
63
+ parent2:
64
+ age: 50
65
+ enfant1:
66
+ age: 13
67
+ scolarite: inconnue
68
+ menage:
69
+ personne_de_reference: parent1
70
+ conjoint: parent2
71
+ enfants: [enfant1]
72
+ antony_eligibilite_residence: true
73
+ foyer_fiscal:
74
+ declarants: [parent1, parent2]
75
+ personnes_a_charge: [enfant1]
76
+ output:
77
+ antony_bourse_communale: false
78
+
79
+ - name: Non éligibilité à l'aide-bourse-communale - famille avec enfant scolarisé en college et les conditions de ressources non vérifiées
80
+ period: 2021-11
81
+ input:
82
+ famille:
83
+ parents: [parent1, parent2]
84
+ enfants: [enfant1]
85
+ antony_eligibilite_ressources: false
86
+ individus:
87
+ parent1:
88
+ age: 52
89
+ parent2:
90
+ age: 50
91
+ enfant1:
92
+ age: 13
93
+ scolarite: college
94
+ menage:
95
+ personne_de_reference: parent1
96
+ conjoint: parent2
97
+ enfants: [enfant1]
98
+ antony_eligibilite_residence: true
99
+ foyer_fiscal:
100
+ declarants: [parent1, parent2]
101
+ personnes_a_charge: [enfant1]
102
+ output:
103
+ antony_bourse_communale: false
104
+
105
+ - name: Non éligibilité à l'aide-bourse-communale - famille non résident à Antony avec enfant scolarisé en collège
106
+ period: 2021-11
107
+ input:
108
+ famille:
109
+ parents: [parent1, parent2]
110
+ enfants: [enfant1]
111
+ antony_eligibilite_ressources: true
112
+ individus:
113
+ parent1:
114
+ age: 52
115
+ parent2:
116
+ age: 50
117
+ enfant1:
118
+ age: 13
119
+ scolarite: college
120
+ menage:
121
+ personne_de_reference: parent1
122
+ conjoint: parent2
123
+ enfants: [enfant1]
124
+ antony_eligibilite_residence: false
125
+ foyer_fiscal:
126
+ declarants: [parent1, parent2]
127
+ personnes_a_charge: [enfant1]
128
+ output:
129
+ antony_bourse_communale: false