OpenFisca-France-Local 5.0.1__py3-none-any.whl → 5.2.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.
- {OpenFisca_France_Local-5.0.1.dist-info → OpenFisca_France_Local-5.2.0.dist-info}/METADATA +1 -1
- {OpenFisca_France_Local-5.0.1.dist-info → OpenFisca_France_Local-5.2.0.dist-info}/RECORD +14 -6
- openfisca_france_local/departements/haute_saone/aide_permis.py +30 -0
- openfisca_france_local/departements/haute_saone/eligibilite.py +13 -0
- openfisca_france_local/departements/haute_vienne/aide_permis.py +27 -0
- openfisca_france_local/departements/haute_vienne/eligibilite.py +13 -0
- openfisca_france_local/parameters/departements/haute_saone/aide_permis.yaml +52 -0
- openfisca_france_local/parameters/departements/haute_vienne/aide_permis.yaml +47 -0
- tests/departements/haute-vienne/aide_permis.yaml +23 -0
- tests/departements/haute_saone/aide_permis.yaml +23 -0
- {OpenFisca_France_Local-5.0.1.data → OpenFisca_France_Local-5.2.0.data}/scripts/openfisca_local_test +0 -0
- {OpenFisca_France_Local-5.0.1.dist-info → OpenFisca_France_Local-5.2.0.dist-info}/LICENSE +0 -0
- {OpenFisca_France_Local-5.0.1.dist-info → OpenFisca_France_Local-5.2.0.dist-info}/WHEEL +0 -0
- {OpenFisca_France_Local-5.0.1.dist-info → OpenFisca_France_Local-5.2.0.dist-info}/top_level.txt +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
OpenFisca_France_Local-5.0.
|
|
1
|
+
OpenFisca_France_Local-5.2.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=1jSQMpyP6FMfDnsI005HKvb7LHVW1cik9qSZSnCvQ_E,11755
|
|
4
4
|
openfisca_france_local/epci_test_factory.py,sha256=llV16D-sNcKa6EIKsfej_4hoPmf4wQ9iHwyT5NGzQtM,1200
|
|
@@ -35,6 +35,10 @@ openfisca_france_local/departements/eure_et_loir/pret_vehicule.py,sha256=XE1eBEH
|
|
|
35
35
|
openfisca_france_local/departements/eure_et_loir/repas_foyer.py,sha256=8-duxkl7CNNpK3_0Hf4LYtV-UaGlq0GFdvLufEvpsXU,6869
|
|
36
36
|
openfisca_france_local/departements/eure_et_loir/transport_eleves_etudiants.py,sha256=pY_OzcjGDf3JB4coERiaTi029N5Vfa7UACL5V2taYok,1457
|
|
37
37
|
openfisca_france_local/departements/eure_et_loir/transport_social.py,sha256=VWaxOsGn90F4VwMeIn8o8v7J4HG-y2CdxmmO5AM_QqU,1023
|
|
38
|
+
openfisca_france_local/departements/haute_saone/aide_permis.py,sha256=_IPaVqxeAq1hhRZqcuS-24YyW0s6X34KxjxpRhtzrsM,1242
|
|
39
|
+
openfisca_france_local/departements/haute_saone/eligibilite.py,sha256=UOwrtn7M0cfxlo-ORdb87cDdWux1OLnJ7WeOvCN-dSU,430
|
|
40
|
+
openfisca_france_local/departements/haute_vienne/aide_permis.py,sha256=5thrWdV9cvmBqKnm4LctNoaST2oKbmCODhyDRRceywU,1180
|
|
41
|
+
openfisca_france_local/departements/haute_vienne/eligibilite.py,sha256=0lIasKgtRLoIGtsjJk6q6SZZS_mzy_B9dfGf-oEvYoY,432
|
|
38
42
|
openfisca_france_local/departements/loire_atlantique/aide_mobilite.py,sha256=B9WOcvUeFEQE-9AeeQSDAnCJE0vzwusLudBRU3afMBk,3402
|
|
39
43
|
openfisca_france_local/departements/loire_atlantique/eligibilite.py,sha256=8eWIzfXRqDVtZNCuO88Zvbk435YbugKPYVhPadKzsHY,451
|
|
40
44
|
openfisca_france_local/departements/nord/activ_emploi.py,sha256=juzjujhnlvWgiTkTBCqP_BqQAnA-0IAHyrhgyOnyF90,1262
|
|
@@ -69,6 +73,8 @@ openfisca_france_local/parameters/departements/eure_et_loir/ash.yml,sha256=QE9cF
|
|
|
69
73
|
openfisca_france_local/parameters/departements/eure_et_loir/fsl.yml,sha256=hk_sRKSvZfGKkdqk_LcLJ6sdfarnlhAaC6cJCzaOZCI,3773
|
|
70
74
|
openfisca_france_local/parameters/departements/eure_et_loir/repas_foyer.yml,sha256=sxOjoF8N_tEVMgsmM99w3LdYYuh9c0EfyF3BqRCOvSw,1834
|
|
71
75
|
openfisca_france_local/parameters/departements/eure_et_loir/transports.yml,sha256=OJoqYqAd_dGhwY_CpYflSBKFT-AedPfk_f1bSqD4Ndo,180
|
|
76
|
+
openfisca_france_local/parameters/departements/haute_saone/aide_permis.yaml,sha256=ZjgA0REbrqrLEmZYj9V4rj1pq-Ikc-GpN53QB6f-AHw,1421
|
|
77
|
+
openfisca_france_local/parameters/departements/haute_vienne/aide_permis.yaml,sha256=798J4k4oUHDMCuIVKuyNDplIO1r7WYF0oyGeW9JeD0A,1387
|
|
72
78
|
openfisca_france_local/parameters/metropoles/bordeaux/aide_tarification_solidaire_transport.yaml,sha256=LBEEAXdufDPr7bMGakxw6M0s9DPa8VKDktW7AKTgwKk,544
|
|
73
79
|
openfisca_france_local/parameters/metropoles/rennes/tarification_solidaire/seuil/seuil1.yaml,sha256=KMlemL4DMlFuJCrAmZvO0hwpB2yRd6pER1C7NXh_t_g,74
|
|
74
80
|
openfisca_france_local/parameters/metropoles/rennes/tarification_solidaire/seuil/seuil2.yaml,sha256=cgSCHs0Vco7Qtvly67zCPAwENl32C4-m8uzLRzFF7CE,75
|
|
@@ -166,6 +172,8 @@ tests/departements/eure_et_loir/pch_etablissement.yml,sha256=j5iRLQ3lhYLUVfEBZdV
|
|
|
166
172
|
tests/departements/eure_et_loir/repas_foyer_personne_agee.yml,sha256=CKHED5tScwZ-z1N2Zit5_Ob6C7Eaez_Tb5eLsuEkeRQ,8052
|
|
167
173
|
tests/departements/eure_et_loir/repas_foyer_personne_handicape.yml,sha256=LZIf2RJmOOm1lcln1GiVBYvNldsKFA8zboVaIX3PpCI,6162
|
|
168
174
|
tests/departements/eure_et_loir/transport_eleves_etudiants.yml,sha256=temar3124TEk37zluaCh4yj0oq2mqlYR5z6JPBElTgQ,1236
|
|
175
|
+
tests/departements/haute-vienne/aide_permis.yaml,sha256=XAnflnjRNB_rCJSC0X2ZwxElLKLwe2RK_cskfgCJJYs,628
|
|
176
|
+
tests/departements/haute_saone/aide_permis.yaml,sha256=h1KhWPM0vAcNMqzwlhHmZmt2of1zdAFpcKpb564ebQU,720
|
|
169
177
|
tests/departements/loire_atlantique/aide_mobilite.yml,sha256=qOaSwLN2b7KBlLti5j5Vgt_ZFdTe5k_AkSPQeklzX0E,253
|
|
170
178
|
tests/departements/nord/activ_emploi.yaml,sha256=eXB3vNNoRDQ8yfvoeAhyxHHfT1fMOPLWns-aBQvYrH0,387
|
|
171
179
|
tests/departements/vendee/bourses_jeunes_benevoles.yaml,sha256=BCgEXxm0z8fl5TYah_0z3OfnKomvmBFeeltT_B8hpGo,162
|
|
@@ -198,8 +206,8 @@ tests/regions/occitanie/carte_jeune_region.yml,sha256=t86RNkSuBYr2fEt60WZi0R115n
|
|
|
198
206
|
tests/regions/occitanie/carte_transport_scolaire.yml,sha256=ZzVRWnH6i9nni7hatdfUX0ltcWR2BCwh4BLP7UpKuZE,318
|
|
199
207
|
tests/regions/occitanie/msa_midi_pyrenees_sud/aide_permis.yml,sha256=zAI_NBTfsP_Q72pDabN2ChQnpK98xasXetIQJmq6LTc,439
|
|
200
208
|
tests/regions/pays_de_la_loire/epass_jeunes_culture_sport.yaml,sha256=vgdq2hFtBWYWHHmO70bPV0lR_0wohJfmJGQb48A0EpQ,336
|
|
201
|
-
OpenFisca_France_Local-5.0.
|
|
202
|
-
OpenFisca_France_Local-5.0.
|
|
203
|
-
OpenFisca_France_Local-5.0.
|
|
204
|
-
OpenFisca_France_Local-5.0.
|
|
205
|
-
OpenFisca_France_Local-5.0.
|
|
209
|
+
OpenFisca_France_Local-5.2.0.dist-info/LICENSE,sha256=dql8h4yceoMhuzlcK0TT_i-NgTFNIZsgE47Q4t3dUYI,34520
|
|
210
|
+
OpenFisca_France_Local-5.2.0.dist-info/METADATA,sha256=pHTNa-0AoaPw8XpSqOn9kTY-ZnNhVZPdS_MwCrD261A,1187
|
|
211
|
+
OpenFisca_France_Local-5.2.0.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
|
|
212
|
+
OpenFisca_France_Local-5.2.0.dist-info/top_level.txt,sha256=DPfQtZjavxRdHDsGTetqu5AEeVMEEBtG1qdv7ijuwWQ,56
|
|
213
|
+
OpenFisca_France_Local-5.2.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
from openfisca_france.model.base import Variable, Individu, MONTH
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class haute_saone_aide_permis(Variable):
|
|
5
|
+
value_type = float
|
|
6
|
+
entity = Individu
|
|
7
|
+
definition_period = MONTH
|
|
8
|
+
label = "Montant de l'aide au permis de conduire pour le département de la Haute-Saone"
|
|
9
|
+
reference = [
|
|
10
|
+
'https://www.haute-saone.fr/index.php/nos-e-services/aides-aux-familles/pack-jeunes/',
|
|
11
|
+
'https://www.mes-services-publics70.fr/e_services/mpb/',
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
def formula(individu, period, parameters):
|
|
15
|
+
params = parameters(period).departements.haute_saone.aide_permis
|
|
16
|
+
|
|
17
|
+
individus_age = individu('age', period)
|
|
18
|
+
|
|
19
|
+
age_maximum = params.age.maximum_inclusif
|
|
20
|
+
age_minimum = params.age.minimum_inclusif
|
|
21
|
+
age_eligibilites = (individus_age >= age_minimum) * (individus_age <= age_maximum)
|
|
22
|
+
|
|
23
|
+
eligibilite_residentielle = individu.menage('haute_saone_eligibilite_residence', period)
|
|
24
|
+
|
|
25
|
+
rfr = individu.foyer_fiscal('rfr', period.n_2)
|
|
26
|
+
nbptr = individu.foyer_fiscal('nbptr', period.n_2)
|
|
27
|
+
quotient_familial = rfr / nbptr / 12
|
|
28
|
+
montant = params.montant_en_fonction_du_quotient_familial.calc(quotient_familial)
|
|
29
|
+
|
|
30
|
+
return age_eligibilites * eligibilite_residentielle * montant
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from openfisca_france.model.base import Variable, Menage, MONTH
|
|
2
|
+
|
|
3
|
+
from numpy.core.defchararray import startswith
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class haute_saone_eligibilite_residence(Variable):
|
|
7
|
+
value_type = bool
|
|
8
|
+
entity = Menage
|
|
9
|
+
definition_period = MONTH
|
|
10
|
+
label = "Éligibilité résidentielle d'un ménage aux dipositifs de la Haute-Saone"
|
|
11
|
+
|
|
12
|
+
def formula(menage, period):
|
|
13
|
+
return startswith(menage('depcom', period), str.encode('70'))
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
from openfisca_france.model.base import Variable, Individu, MONTH
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class haute_vienne_aide_permis(Variable):
|
|
5
|
+
value_type = float
|
|
6
|
+
entity = Individu
|
|
7
|
+
definition_period = MONTH
|
|
8
|
+
label = "Montant de l'aide au permis de conduire pour le département de la Haute-Vienne"
|
|
9
|
+
reference = 'https://www.haute-vienne.fr/nos-actions/jeunesse/besoin-dun-coup-de-pouce/aide-au-permis-de-conduire'
|
|
10
|
+
|
|
11
|
+
def formula(individu, period, parameters):
|
|
12
|
+
params = parameters(period).departements.haute_vienne.aide_permis
|
|
13
|
+
|
|
14
|
+
individus_age = individu('age', period)
|
|
15
|
+
|
|
16
|
+
age_maximum = params.age.maximum_exclusif
|
|
17
|
+
age_minimum = params.age.minimum_inclusif
|
|
18
|
+
age_eligibilites = (individus_age >= age_minimum) * (individus_age < age_maximum)
|
|
19
|
+
|
|
20
|
+
eligibilite_residentielle = individu.menage('haute_vienne_eligibilite_residence', period)
|
|
21
|
+
|
|
22
|
+
rfr = individu.foyer_fiscal('rfr', period.n_2)
|
|
23
|
+
nbptr = individu.foyer_fiscal('nbptr', period.n_2)
|
|
24
|
+
quotient_familial = rfr / nbptr / 12
|
|
25
|
+
montant = params.montant_en_fonction_du_quotient_familial.calc(quotient_familial)
|
|
26
|
+
|
|
27
|
+
return age_eligibilites * eligibilite_residentielle * montant
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from openfisca_france.model.base import Variable, Menage, MONTH
|
|
2
|
+
|
|
3
|
+
from numpy.core.defchararray import startswith
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class haute_vienne_eligibilite_residence(Variable):
|
|
7
|
+
value_type = bool
|
|
8
|
+
entity = Menage
|
|
9
|
+
definition_period = MONTH
|
|
10
|
+
label = "Éligibilité résidentielle d'un ménage aux dipositifs de la Haute-Vienne"
|
|
11
|
+
|
|
12
|
+
def formula(menage, period):
|
|
13
|
+
return startswith(menage('depcom', period), str.encode('87'))
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
age:
|
|
2
|
+
maximum_inclusif:
|
|
3
|
+
reference:
|
|
4
|
+
- https://www.haute-saone.fr/index.php/nos-e-services/aides-aux-familles/pack-jeunes/
|
|
5
|
+
description: Eligibilité d'âge pour l'aide au permis de conduire dans le département de Haute Saône.
|
|
6
|
+
values:
|
|
7
|
+
2020-12-29:
|
|
8
|
+
value: 25
|
|
9
|
+
minimum_inclusif:
|
|
10
|
+
reference:
|
|
11
|
+
- https://www.haute-saone.fr/index.php/nos-e-services/aides-aux-familles/pack-jeunes/
|
|
12
|
+
description: Eligibilité d'âge pour l'aide au permis de conduire dans le département de Haute Saône.
|
|
13
|
+
values:
|
|
14
|
+
2020-12-29:
|
|
15
|
+
value: 18
|
|
16
|
+
montant_en_fonction_du_quotient_familial:
|
|
17
|
+
reference:
|
|
18
|
+
- https://www.haute-saone.fr/index.php/nos-e-services/aides-aux-familles/pack-jeunes/
|
|
19
|
+
description: Montant obtenu pour l'aide au permis de conduire en région de Haute Saône.
|
|
20
|
+
metadata:
|
|
21
|
+
type: single_amount
|
|
22
|
+
brackets:
|
|
23
|
+
- threshold:
|
|
24
|
+
2020-12-29:
|
|
25
|
+
value: 0
|
|
26
|
+
amount:
|
|
27
|
+
2020-12-29:
|
|
28
|
+
value: 400
|
|
29
|
+
- threshold:
|
|
30
|
+
2020-12-29:
|
|
31
|
+
value: 300
|
|
32
|
+
amount:
|
|
33
|
+
2020-12-29:
|
|
34
|
+
value: 250
|
|
35
|
+
- threshold:
|
|
36
|
+
2020-12-29:
|
|
37
|
+
value: 600
|
|
38
|
+
amount:
|
|
39
|
+
2020-12-29:
|
|
40
|
+
value: 150
|
|
41
|
+
- threshold:
|
|
42
|
+
2020-12-29:
|
|
43
|
+
value: 1000
|
|
44
|
+
amount:
|
|
45
|
+
2020-12-29:
|
|
46
|
+
value: 100
|
|
47
|
+
- threshold:
|
|
48
|
+
2020-12-29:
|
|
49
|
+
value: 1201
|
|
50
|
+
amount:
|
|
51
|
+
2020-12-29:
|
|
52
|
+
value: 0
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
age:
|
|
2
|
+
maximum_exclusif:
|
|
3
|
+
reference:
|
|
4
|
+
- https://www.haute-vienne.fr/nos-actions/jeunesse/besoin-dun-coup-de-pouce/aide-au-permis-de-conduire
|
|
5
|
+
description: Eligibilité d'âge pour l'aide au permis de conduire dans le département de la Haute-Vienne.
|
|
6
|
+
values:
|
|
7
|
+
2023-01-01:
|
|
8
|
+
value: 25
|
|
9
|
+
minimum_inclusif:
|
|
10
|
+
reference:
|
|
11
|
+
- https://www.haute-vienne.fr/nos-actions/jeunesse/besoin-dun-coup-de-pouce/aide-au-permis-de-conduire
|
|
12
|
+
description: Eligibilité d'âge pour l'aide au permis de conduire dans le département de la Haute-Vienne.
|
|
13
|
+
values:
|
|
14
|
+
2023-01-01:
|
|
15
|
+
value: 15
|
|
16
|
+
|
|
17
|
+
montant_en_fonction_du_quotient_familial:
|
|
18
|
+
reference:
|
|
19
|
+
- https://www.auvergnerhonealpes.fr/aide/385/289-financer-ma-formation-au-permis-de-conduire-orientation-formation.htm
|
|
20
|
+
description: Montant obtenu pour l'aide au permis de conduire en région Auvergne-Rhône-Alpes.
|
|
21
|
+
metadata:
|
|
22
|
+
type: single_amount
|
|
23
|
+
brackets:
|
|
24
|
+
- threshold:
|
|
25
|
+
2020-01-01:
|
|
26
|
+
value: 0
|
|
27
|
+
amount:
|
|
28
|
+
2020-01-01:
|
|
29
|
+
value: 500
|
|
30
|
+
- threshold:
|
|
31
|
+
2020-01-01:
|
|
32
|
+
value: 401
|
|
33
|
+
amount:
|
|
34
|
+
2020-01-01:
|
|
35
|
+
value: 250
|
|
36
|
+
- threshold:
|
|
37
|
+
2020-01-01:
|
|
38
|
+
value: 770
|
|
39
|
+
amount:
|
|
40
|
+
2020-01-01:
|
|
41
|
+
value: 150
|
|
42
|
+
- threshold:
|
|
43
|
+
2020-01-01:
|
|
44
|
+
value: 1001
|
|
45
|
+
amount:
|
|
46
|
+
2020-01-01:
|
|
47
|
+
value: 0
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
- period: 2023-02
|
|
2
|
+
name: Éligibilité d'age et de résidence
|
|
3
|
+
input:
|
|
4
|
+
age: [16, 14, 25, 16]
|
|
5
|
+
depcom: ['87085', '87085', '87085', '69001']
|
|
6
|
+
rfr:
|
|
7
|
+
2021: ['12000','12000','12000','12000']
|
|
8
|
+
nbptr:
|
|
9
|
+
2021: ['1', '1','1','1',]
|
|
10
|
+
output:
|
|
11
|
+
haute_vienne_aide_permis: [150, 0, 0, 0]
|
|
12
|
+
|
|
13
|
+
- period: 2023-02
|
|
14
|
+
name: Montant en fonction du quotient familial
|
|
15
|
+
input:
|
|
16
|
+
age: [16, 16, 16, 16, 16]
|
|
17
|
+
depcom: ['87085','87085','87085','87085','87085']
|
|
18
|
+
rfr:
|
|
19
|
+
2021: ['12012','9240','9228','4812','4800']
|
|
20
|
+
nbptr:
|
|
21
|
+
2021: ['1','1','1','1','1']
|
|
22
|
+
output:
|
|
23
|
+
haute_vienne_aide_permis: [0,150, 250, 250, 500]
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
- period: 2023-02
|
|
2
|
+
name: Éligibilité d'age et de résidence
|
|
3
|
+
input:
|
|
4
|
+
age: [18, 17, 25, 18]
|
|
5
|
+
depcom: ['70000', '70000', '70000', '75005']
|
|
6
|
+
rfr:
|
|
7
|
+
2021: ['14400','14400','14400','14400']
|
|
8
|
+
nbptr:
|
|
9
|
+
2021: ['1', '1','1','1']
|
|
10
|
+
output:
|
|
11
|
+
haute_saone_aide_permis: [100, 0, 100, 0]
|
|
12
|
+
|
|
13
|
+
- period: 2023-02
|
|
14
|
+
name: Montant en fonction du quotient familial
|
|
15
|
+
input:
|
|
16
|
+
age: [18, 18, 18, 18, 18, 18, 18, 18]
|
|
17
|
+
depcom: ['70000','70000','70000','70000','70000', '70000', '70000', '70000']
|
|
18
|
+
rfr:
|
|
19
|
+
2021: ['14412','12000','14400', '7200', '11988','3600','7188','3588']
|
|
20
|
+
nbptr:
|
|
21
|
+
2021: ['1','1','1','1','1','1','1','1']
|
|
22
|
+
output:
|
|
23
|
+
haute_saone_aide_permis: [0, 100, 100, 150, 150, 250, 250, 400]
|
{OpenFisca_France_Local-5.0.1.data → OpenFisca_France_Local-5.2.0.data}/scripts/openfisca_local_test
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{OpenFisca_France_Local-5.0.1.dist-info → OpenFisca_France_Local-5.2.0.dist-info}/top_level.txt
RENAMED
|
File without changes
|