OpenFisca-France-Local 5.1.0__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.1.0.dist-info → OpenFisca_France_Local-5.2.0.dist-info}/METADATA +1 -1
- {OpenFisca_France_Local-5.1.0.dist-info → OpenFisca_France_Local-5.2.0.dist-info}/RECORD +10 -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/parameters/departements/haute_saone/aide_permis.yaml +52 -0
- tests/departements/haute_saone/aide_permis.yaml +23 -0
- {OpenFisca_France_Local-5.1.0.data → OpenFisca_France_Local-5.2.0.data}/scripts/openfisca_local_test +0 -0
- {OpenFisca_France_Local-5.1.0.dist-info → OpenFisca_France_Local-5.2.0.dist-info}/LICENSE +0 -0
- {OpenFisca_France_Local-5.1.0.dist-info → OpenFisca_France_Local-5.2.0.dist-info}/WHEEL +0 -0
- {OpenFisca_France_Local-5.1.0.dist-info → OpenFisca_France_Local-5.2.0.dist-info}/top_level.txt +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
OpenFisca_France_Local-5.
|
|
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,8 @@ 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
|
|
38
40
|
openfisca_france_local/departements/haute_vienne/aide_permis.py,sha256=5thrWdV9cvmBqKnm4LctNoaST2oKbmCODhyDRRceywU,1180
|
|
39
41
|
openfisca_france_local/departements/haute_vienne/eligibilite.py,sha256=0lIasKgtRLoIGtsjJk6q6SZZS_mzy_B9dfGf-oEvYoY,432
|
|
40
42
|
openfisca_france_local/departements/loire_atlantique/aide_mobilite.py,sha256=B9WOcvUeFEQE-9AeeQSDAnCJE0vzwusLudBRU3afMBk,3402
|
|
@@ -71,6 +73,7 @@ openfisca_france_local/parameters/departements/eure_et_loir/ash.yml,sha256=QE9cF
|
|
|
71
73
|
openfisca_france_local/parameters/departements/eure_et_loir/fsl.yml,sha256=hk_sRKSvZfGKkdqk_LcLJ6sdfarnlhAaC6cJCzaOZCI,3773
|
|
72
74
|
openfisca_france_local/parameters/departements/eure_et_loir/repas_foyer.yml,sha256=sxOjoF8N_tEVMgsmM99w3LdYYuh9c0EfyF3BqRCOvSw,1834
|
|
73
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
|
|
74
77
|
openfisca_france_local/parameters/departements/haute_vienne/aide_permis.yaml,sha256=798J4k4oUHDMCuIVKuyNDplIO1r7WYF0oyGeW9JeD0A,1387
|
|
75
78
|
openfisca_france_local/parameters/metropoles/bordeaux/aide_tarification_solidaire_transport.yaml,sha256=LBEEAXdufDPr7bMGakxw6M0s9DPa8VKDktW7AKTgwKk,544
|
|
76
79
|
openfisca_france_local/parameters/metropoles/rennes/tarification_solidaire/seuil/seuil1.yaml,sha256=KMlemL4DMlFuJCrAmZvO0hwpB2yRd6pER1C7NXh_t_g,74
|
|
@@ -170,6 +173,7 @@ tests/departements/eure_et_loir/repas_foyer_personne_agee.yml,sha256=CKHED5tScwZ
|
|
|
170
173
|
tests/departements/eure_et_loir/repas_foyer_personne_handicape.yml,sha256=LZIf2RJmOOm1lcln1GiVBYvNldsKFA8zboVaIX3PpCI,6162
|
|
171
174
|
tests/departements/eure_et_loir/transport_eleves_etudiants.yml,sha256=temar3124TEk37zluaCh4yj0oq2mqlYR5z6JPBElTgQ,1236
|
|
172
175
|
tests/departements/haute-vienne/aide_permis.yaml,sha256=XAnflnjRNB_rCJSC0X2ZwxElLKLwe2RK_cskfgCJJYs,628
|
|
176
|
+
tests/departements/haute_saone/aide_permis.yaml,sha256=h1KhWPM0vAcNMqzwlhHmZmt2of1zdAFpcKpb564ebQU,720
|
|
173
177
|
tests/departements/loire_atlantique/aide_mobilite.yml,sha256=qOaSwLN2b7KBlLti5j5Vgt_ZFdTe5k_AkSPQeklzX0E,253
|
|
174
178
|
tests/departements/nord/activ_emploi.yaml,sha256=eXB3vNNoRDQ8yfvoeAhyxHHfT1fMOPLWns-aBQvYrH0,387
|
|
175
179
|
tests/departements/vendee/bourses_jeunes_benevoles.yaml,sha256=BCgEXxm0z8fl5TYah_0z3OfnKomvmBFeeltT_B8hpGo,162
|
|
@@ -202,8 +206,8 @@ tests/regions/occitanie/carte_jeune_region.yml,sha256=t86RNkSuBYr2fEt60WZi0R115n
|
|
|
202
206
|
tests/regions/occitanie/carte_transport_scolaire.yml,sha256=ZzVRWnH6i9nni7hatdfUX0ltcWR2BCwh4BLP7UpKuZE,318
|
|
203
207
|
tests/regions/occitanie/msa_midi_pyrenees_sud/aide_permis.yml,sha256=zAI_NBTfsP_Q72pDabN2ChQnpK98xasXetIQJmq6LTc,439
|
|
204
208
|
tests/regions/pays_de_la_loire/epass_jeunes_culture_sport.yaml,sha256=vgdq2hFtBWYWHHmO70bPV0lR_0wohJfmJGQb48A0EpQ,336
|
|
205
|
-
OpenFisca_France_Local-5.
|
|
206
|
-
OpenFisca_France_Local-5.
|
|
207
|
-
OpenFisca_France_Local-5.
|
|
208
|
-
OpenFisca_France_Local-5.
|
|
209
|
-
OpenFisca_France_Local-5.
|
|
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,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,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.1.0.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.1.0.dist-info → OpenFisca_France_Local-5.2.0.dist-info}/top_level.txt
RENAMED
|
File without changes
|