OpenFisca-France-Local 4.2.8__py3-none-any.whl → 4.2.10__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.
- {OpenFisca_France_Local-4.2.8.dist-info → OpenFisca_France_Local-4.2.10.dist-info}/METADATA +1 -1
- {OpenFisca_France_Local-4.2.8.dist-info → OpenFisca_France_Local-4.2.10.dist-info}/RECORD +9 -7
- openfisca_france_local/aides_jeunes_reform.py +1 -2
- openfisca_france_local/parameters/regions/hauts_de_france/aide_garde_enfant.yml +35 -0
- openfisca_france_local/regions/hauts_de_france/aide_garde_enfant.py +45 -0
- {OpenFisca_France_Local-4.2.8.data → OpenFisca_France_Local-4.2.10.data}/scripts/openfisca_local_test +0 -0
- {OpenFisca_France_Local-4.2.8.dist-info → OpenFisca_France_Local-4.2.10.dist-info}/LICENSE +0 -0
- {OpenFisca_France_Local-4.2.8.dist-info → OpenFisca_France_Local-4.2.10.dist-info}/WHEEL +0 -0
- {OpenFisca_France_Local-4.2.8.dist-info → OpenFisca_France_Local-4.2.10.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
OpenFisca_France_Local-4.2.
|
|
1
|
+
OpenFisca_France_Local-4.2.10.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=
|
|
3
|
+
openfisca_france_local/aides_jeunes_reform.py,sha256=4LbfwmOUFHdOWXNYb8YD5jxfHVI5s8PKKQM60WRSkmA,11605
|
|
4
4
|
openfisca_france_local/epci_test_factory.py,sha256=llV16D-sNcKa6EIKsfej_4hoPmf4wQ9iHwyT5NGzQtM,1200
|
|
5
5
|
openfisca_france_local/epcicom2020.xlsx,sha256=dh0_urEHajdv0FoxbFAgyXIMH4s8xlAeriBpVklrqeg,3102230
|
|
6
6
|
openfisca_france_local/fsl.py,sha256=dM5icY-eKd4PrDdUZ7bO9LPWeU_8VrDs4xuS_tOX0zg,584
|
|
@@ -79,6 +79,7 @@ openfisca_france_local/parameters/regions/auvergne_rhone_alpes/aide_permis.yml,s
|
|
|
79
79
|
openfisca_france_local/parameters/regions/auvergne_rhone_alpes/departements.yaml,sha256=np9SQOtHOH399o2PVlLMNhc5CYWkUytaIqmSXqdBTKg,205
|
|
80
80
|
openfisca_france_local/parameters/regions/bretagne/msa_armorique/aide_permis.yml,sha256=Ju4RTFAg3dUUSRKxqPI-SHwDgni6xoxA0KYB5aF5lUI,866
|
|
81
81
|
openfisca_france_local/parameters/regions/bretagne/msa_portes_de_bretagne/aide_permis.yml,sha256=zDMRdrXsn1hnx4yoZPRHyLCBPZu5M1u0RF1matTscP4,920
|
|
82
|
+
openfisca_france_local/parameters/regions/hauts_de_france/aide_garde_enfant.yml,sha256=CYxnG4mRWx-vg-S4C8-mqfoGD_3yfT0Aso2IvCRSouM,963
|
|
82
83
|
openfisca_france_local/parameters/regions/hauts_de_france/aide_permis.yml,sha256=U_6rieURb3CmMT_nNJhR4lUvkI3EBgv52npRKTX35bg,933
|
|
83
84
|
openfisca_france_local/parameters/regions/hauts_de_france/msa_nord_pas_de_calais/aide_permis.yml,sha256=TAsnZPBOh98F5oBLEoKisg-t6GMCFJHaD0blevoqcjA,658
|
|
84
85
|
openfisca_france_local/parameters/regions/normandie/msa_haute_normandie/aide_permis.yaml,sha256=XG2c4jBqFberaikH-WrUifwiFjbYIkZKHZtiHYtYhUc,436
|
|
@@ -87,6 +88,7 @@ openfisca_france_local/regions/auvergne_rhone_alpes/aide_permis.py,sha256=5mVtCV
|
|
|
87
88
|
openfisca_france_local/regions/bretagne/msa_armorique/aide_permis.py,sha256=OO0TEweKPQh_oizVvE3HKuHGVyaqbs32QMgH21afZFk,1873
|
|
88
89
|
openfisca_france_local/regions/bretagne/msa_portes_de_bretagne/aide_permis.py,sha256=sneDGj45AyhM640quGg_z97NR9Qz92HHvcKnCAcIazE,1906
|
|
89
90
|
openfisca_france_local/regions/grand_est/transport.py,sha256=edvDg1Ih-JKJgzvEffAHOp5AixvZTxVL-bIjg1mLOPw,1673
|
|
91
|
+
openfisca_france_local/regions/hauts_de_france/aide_garde_enfant.py,sha256=K_OC9ns3eOs2pRK4D8CrpeDxMVEn_bVDKELuD2KK7dY,2058
|
|
90
92
|
openfisca_france_local/regions/hauts_de_france/permis.py,sha256=6Ccjjv9Hk5WsCrEl4XGF_fg9-2qNBHdy63Oor0oQ2S8,4521
|
|
91
93
|
openfisca_france_local/regions/hauts_de_france/msa_nord_pas_de_calais/aide_permis.py,sha256=cOfqVmo3dLXE5COyPG2hELUw5fgG0Cicv7TDM2cZQ5U,1594
|
|
92
94
|
openfisca_france_local/regions/normandie/msa_haute_normandie/aides_permis.py,sha256=oF5erA4J9zIRFK2RB3IWlBiBPqzHADoIXnItTafjr_4,2096
|
|
@@ -96,8 +98,8 @@ openfisca_france_local/regions/occitanie/carte_transport_scolaire.py,sha256=VgWJ
|
|
|
96
98
|
openfisca_france_local/regions/occitanie/msa_midi_pyrenees_sud/aide_permis.py,sha256=lgweI15qJZoguV8KWYVwfYbbZtK7XHabUKk2GADZ0FM,1514
|
|
97
99
|
openfisca_france_local/regions/pays_de_la_loire/epass_jeunes_culture_sport.py,sha256=jLDoKJkOGz88Zi5qWWNkMBGIbYF5E7TsfI98H1WXOA4,1373
|
|
98
100
|
openfisca_france_local/scripts/openfisca_local_test,sha256=M55UQ5tskwZpJVLXGqlIcVs1nVZ2pBr_-R9jh-z2tbw,128
|
|
99
|
-
OpenFisca_France_Local-4.2.
|
|
100
|
-
OpenFisca_France_Local-4.2.
|
|
101
|
-
OpenFisca_France_Local-4.2.
|
|
102
|
-
OpenFisca_France_Local-4.2.
|
|
103
|
-
OpenFisca_France_Local-4.2.
|
|
101
|
+
OpenFisca_France_Local-4.2.10.dist-info/LICENSE,sha256=dql8h4yceoMhuzlcK0TT_i-NgTFNIZsgE47Q4t3dUYI,34520
|
|
102
|
+
OpenFisca_France_Local-4.2.10.dist-info/METADATA,sha256=NdfTKwLKnP9DcRs_XQBcM8GqhGrVDCxxZjbTcskb_-M,1071
|
|
103
|
+
OpenFisca_France_Local-4.2.10.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
|
|
104
|
+
OpenFisca_France_Local-4.2.10.dist-info/top_level.txt,sha256=chE8r9UyoDNV9FnqxzeRSolTkSOB1kf5N8uwm2U1msM,23
|
|
105
|
+
OpenFisca_France_Local-4.2.10.dist-info/RECORD,,
|
|
@@ -68,7 +68,7 @@ def is_quotient_familial_eligible(individu: Population, period: Period, conditio
|
|
|
68
68
|
|
|
69
69
|
rfr = individu.foyer_fiscal('rfr', period.this_year)
|
|
70
70
|
nbptr = individu.foyer_fiscal('nbptr', period.this_year)
|
|
71
|
-
quotient_familial = rfr / nbptr
|
|
71
|
+
quotient_familial = rfr / 12 / nbptr
|
|
72
72
|
|
|
73
73
|
comparison = operations[condition['operator']]
|
|
74
74
|
|
|
@@ -292,7 +292,6 @@ def generate_variable(benefit: dict):
|
|
|
292
292
|
|
|
293
293
|
return compute_value(general_eligibilities * is_profile_eligible)
|
|
294
294
|
|
|
295
|
-
|
|
296
295
|
return type(benefit['slug'], (Variable,), {
|
|
297
296
|
"value_type": value_type,
|
|
298
297
|
"entity": Individu,
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
montant:
|
|
2
|
+
reference:
|
|
3
|
+
- https://www.hautsdefrance.fr/aide-garde-enfant/
|
|
4
|
+
- https://guide-aides.hautsdefrance.fr/aide636
|
|
5
|
+
description: Montant pour l'Aide à la Garde d'Enfant des Hauts de France
|
|
6
|
+
famille_biparentale:
|
|
7
|
+
values:
|
|
8
|
+
2017-02-01: 20
|
|
9
|
+
famille_monoparentale:
|
|
10
|
+
values:
|
|
11
|
+
2017-02-01: 30
|
|
12
|
+
|
|
13
|
+
age_maximum_enfant:
|
|
14
|
+
reference:
|
|
15
|
+
- https://www.hautsdefrance.fr/aide-garde-enfant/
|
|
16
|
+
- https://guide-aides.hautsdefrance.fr/aide636
|
|
17
|
+
description: Age maximum d'éligibilité d'un enfant à la Garde d'Enfants des Hauts de France
|
|
18
|
+
values:
|
|
19
|
+
2017-02-01:
|
|
20
|
+
value: 3
|
|
21
|
+
|
|
22
|
+
plafond_multiple_smic:
|
|
23
|
+
description: Montant maximal du revenu fiscal de référence du foyer
|
|
24
|
+
unit: smic
|
|
25
|
+
reference:
|
|
26
|
+
- https://www.hautsdefrance.fr/aide-garde-enfant/
|
|
27
|
+
- https://guide-aides.hautsdefrance.fr/aide636
|
|
28
|
+
famille_biparentale:
|
|
29
|
+
values:
|
|
30
|
+
2017-02-01:
|
|
31
|
+
value: 3
|
|
32
|
+
famille_monoparentale:
|
|
33
|
+
values:
|
|
34
|
+
2017-02-01:
|
|
35
|
+
value: 2
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
from openfisca_france.model.base import MONTH, Variable, TypesActivite, Famille
|
|
2
|
+
from openfisca_france.model.caracteristiques_socio_demographiques.logement import (
|
|
3
|
+
TypesCodeInseeRegion)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class hauts_de_france_aide_garde_enfant(Variable):
|
|
7
|
+
value_type = float
|
|
8
|
+
entity = Famille
|
|
9
|
+
label = "Éligibilité financière à l'Aide à la Garde d'Enfant (AGE)"
|
|
10
|
+
reference = [
|
|
11
|
+
'https://www.hautsdefrance.fr/aide-garde-enfant/',
|
|
12
|
+
'https://guide-aides.hautsdefrance.fr/aide636'
|
|
13
|
+
]
|
|
14
|
+
definition_period = MONTH
|
|
15
|
+
|
|
16
|
+
def formula(famille, period, parameters):
|
|
17
|
+
modalites = parameters(
|
|
18
|
+
period).regions.hauts_de_france.aide_garde_enfant
|
|
19
|
+
couple = famille('en_couple', period)
|
|
20
|
+
montant = (modalites.montant.famille_monoparentale * (1 - couple)
|
|
21
|
+
) + (modalites.montant.famille_biparentale * couple)
|
|
22
|
+
|
|
23
|
+
age = famille.members('age', period)
|
|
24
|
+
enfants_eligibles = (age < modalites.age_maximum_enfant)
|
|
25
|
+
montant_par_enfant = montant * enfants_eligibles
|
|
26
|
+
montant_total = famille.sum(montant_par_enfant, role=Famille.ENFANT)
|
|
27
|
+
|
|
28
|
+
region = famille.demandeur.menage('region', period)
|
|
29
|
+
eligibilite_geographique = sum(
|
|
30
|
+
[region == TypesCodeInseeRegion.hauts_de_france])
|
|
31
|
+
|
|
32
|
+
actifs = famille.members('activite', period) == TypesActivite.actif
|
|
33
|
+
nombre_parents = famille.nb_persons(role=Famille.PARENT)
|
|
34
|
+
eligibilite_statut = famille.sum(
|
|
35
|
+
actifs, role=Famille.PARENT) == nombre_parents
|
|
36
|
+
|
|
37
|
+
plafond_param = modalites.plafond_multiple_smic
|
|
38
|
+
plafond_ressources_smic = (plafond_param.famille_monoparentale * (
|
|
39
|
+
1 - couple)) + (plafond_param.famille_biparentale * couple)
|
|
40
|
+
smic = parameters(
|
|
41
|
+
period).marche_travail.salaire_minimum.smic.smic_b_mensuel
|
|
42
|
+
|
|
43
|
+
rni = famille.demandeur.foyer_fiscal('rni', period.this_year)
|
|
44
|
+
eligibilite_revenus = rni/12 < plafond_ressources_smic * smic
|
|
45
|
+
return montant_total * eligibilite_geographique * eligibilite_statut * eligibilite_revenus
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{OpenFisca_France_Local-4.2.8.dist-info → OpenFisca_France_Local-4.2.10.dist-info}/top_level.txt
RENAMED
|
File without changes
|