OpenFisca-France-Local 6.9.0__py3-none-any.whl → 6.11.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-6.9.0.dist-info → OpenFisca_France_Local-6.11.0.dist-info}/METADATA +1 -1
- {OpenFisca_France_Local-6.9.0.dist-info → OpenFisca_France_Local-6.11.0.dist-info}/RECORD +12 -8
- openfisca_france_local/departements/yvelines/aide_permis.py +30 -0
- openfisca_france_local/departements/yvelines/eligibilite.py +13 -0
- openfisca_france_local/metropoles/lyon/revenu_solidaire_jeune.py +9 -2
- openfisca_france_local/parameters/departements/yvelines/aide_permis.yml +24 -0
- tests/departements/yvelines/aide_permis.yml +23 -0
- tests/metropoles/lyon/revenu_solidaire_jeune.yaml +2 -2
- {OpenFisca_France_Local-6.9.0.data → OpenFisca_France_Local-6.11.0.data}/scripts/openfisca_local_test +0 -0
- {OpenFisca_France_Local-6.9.0.dist-info → OpenFisca_France_Local-6.11.0.dist-info}/LICENSE +0 -0
- {OpenFisca_France_Local-6.9.0.dist-info → OpenFisca_France_Local-6.11.0.dist-info}/WHEEL +0 -0
- {OpenFisca_France_Local-6.9.0.dist-info → OpenFisca_France_Local-6.11.0.dist-info}/top_level.txt +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
OpenFisca_France_Local-6.
|
|
1
|
+
OpenFisca_France_Local-6.11.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=0HB6J3Fiu5sUpwLRJoMW2mxtFWYhCj_7K8y2fnOH1vA,16309
|
|
4
4
|
openfisca_france_local/convert_benefit_conditions_to_parameters.py,sha256=NxDNjbYfOATVcm__Xrm5SmmeYdf5rwCpTlwozMDoFDs,4974
|
|
@@ -48,12 +48,14 @@ openfisca_france_local/departements/nord/activ_emploi.py,sha256=juzjujhnlvWgiTkT
|
|
|
48
48
|
openfisca_france_local/departements/seine_saint_denis/cheque_reussite.py,sha256=c9Zx2N11W5I-X8NzjVP1DErB2GS2hzEr6z4YqBJwUgQ,1968
|
|
49
49
|
openfisca_france_local/departements/seine_saint_denis/eligibilite.py,sha256=hMJEVwTw4dsrtNuru74v4s-jV9J3HhCdqGs-_gT6up0,456
|
|
50
50
|
openfisca_france_local/departements/vendee/bourses_jeunes_benevoles.py,sha256=Iy-iWmwmrVRHzH2tb0x-AGHcpKCIHFF-e2J_RAY-V14,712
|
|
51
|
+
openfisca_france_local/departements/yvelines/aide_permis.py,sha256=QLe1XR4ZSnG2FboQ9PB2janqO0R0wd5x6ijEGAF9azY,1248
|
|
52
|
+
openfisca_france_local/departements/yvelines/eligibilite.py,sha256=x8mUS3ojPeFAGPNTmst-TtveAWz8SjzgHgSDu26K-vA,427
|
|
51
53
|
openfisca_france_local/metropoles/bordeaux/aide_tarification_solidaire_transport.py,sha256=Y2br_mbqVEVxu8uvF56HdOS4aLRmjUEmOsQq_Lh7y0c,1395
|
|
52
54
|
openfisca_france_local/metropoles/brest/communes.py,sha256=HDYmZxAwbgaDcZwUqR0om7YVxqwhXKGrFGScvx1EOxI,222
|
|
53
55
|
openfisca_france_local/metropoles/brest/quotient_familial_caf.py,sha256=sSmxT37KgGkdfA0LZioY3V0ddjOU6lCHoLEAKEKL_ms,1532
|
|
54
56
|
openfisca_france_local/metropoles/brest/transport.py,sha256=f8UA8NF9l5JMm2Wq1eK7pZNN4cjrbgf2s-p8OLIDHdg,1605
|
|
55
57
|
openfisca_france_local/metropoles/lyon/eligibilite.py,sha256=6mEET2-XiiRN71xa3vakGWk3r-pIZJGFmcGOpmckgpc,362
|
|
56
|
-
openfisca_france_local/metropoles/lyon/revenu_solidaire_jeune.py,sha256=
|
|
58
|
+
openfisca_france_local/metropoles/lyon/revenu_solidaire_jeune.py,sha256=XRrE4KHj0U9N63TK-bx8zNpIULWeXZlm1ZfJaC5Q_OI,1733
|
|
57
59
|
openfisca_france_local/metropoles/nantes/tarification_solidaire_transports.py,sha256=SqQ5O-bB4HI_M2kHSAPhd0-0KTPdmzdYRvrGOY76e7k,2022
|
|
58
60
|
openfisca_france_local/metropoles/rennes/communes.py,sha256=tS-CU-wNzDooNB9OljyYdAqrp86DKFYcQFtFEfI8c9s,617
|
|
59
61
|
openfisca_france_local/metropoles/rennes/mon_aide.py,sha256=kuhJx6_hlC4LEz4RA8jYif-q6yO3AsJFA5MHSHmtwp4,7084
|
|
@@ -81,6 +83,7 @@ openfisca_france_local/parameters/departements/eure_et_loir/repas_foyer.yml,sha2
|
|
|
81
83
|
openfisca_france_local/parameters/departements/eure_et_loir/transports.yml,sha256=OJoqYqAd_dGhwY_CpYflSBKFT-AedPfk_f1bSqD4Ndo,180
|
|
82
84
|
openfisca_france_local/parameters/departements/haute_saone/aide_permis.yaml,sha256=ZjgA0REbrqrLEmZYj9V4rj1pq-Ikc-GpN53QB6f-AHw,1421
|
|
83
85
|
openfisca_france_local/parameters/departements/haute_vienne/aide_permis.yaml,sha256=798J4k4oUHDMCuIVKuyNDplIO1r7WYF0oyGeW9JeD0A,1387
|
|
86
|
+
openfisca_france_local/parameters/departements/yvelines/aide_permis.yml,sha256=pnfBjsPnKau0ej-k6jCLnm57OsrDKZ0AgkiHYB2IDgo,348
|
|
84
87
|
openfisca_france_local/parameters/metropoles/bordeaux/aide_tarification_solidaire_transport.yaml,sha256=LBEEAXdufDPr7bMGakxw6M0s9DPa8VKDktW7AKTgwKk,544
|
|
85
88
|
openfisca_france_local/parameters/metropoles/lyon/revenu_solidaire_jeune.yaml,sha256=eXlsYbAL48jzUEcV0LbI9XEzvABXNmPr1Y5ZHbdFNtQ,609
|
|
86
89
|
openfisca_france_local/parameters/metropoles/rennes/tarification_solidaire/seuil/seuil1.yaml,sha256=KMlemL4DMlFuJCrAmZvO0hwpB2yRd6pER1C7NXh_t_g,74
|
|
@@ -203,10 +206,11 @@ tests/departements/haute_saone/aide_permis.yaml,sha256=h1KhWPM0vAcNMqzwlhHmZmt2o
|
|
|
203
206
|
tests/departements/loire_atlantique/aide_mobilite.yml,sha256=qOaSwLN2b7KBlLti5j5Vgt_ZFdTe5k_AkSPQeklzX0E,253
|
|
204
207
|
tests/departements/nord/activ_emploi.yaml,sha256=eXB3vNNoRDQ8yfvoeAhyxHHfT1fMOPLWns-aBQvYrH0,387
|
|
205
208
|
tests/departements/vendee/bourses_jeunes_benevoles.yaml,sha256=BCgEXxm0z8fl5TYah_0z3OfnKomvmBFeeltT_B8hpGo,162
|
|
209
|
+
tests/departements/yvelines/aide_permis.yml,sha256=ny1sZvk6Gel6eSWQQfy1ZA2uM8M3Rj5HZuSWdeJXy6g,782
|
|
206
210
|
tests/metropoles/bordeaux/aide_tarification_solidaire_transport.yaml,sha256=X79WzT1ykTuaLwSR4AtXTlDITRIFxHwzTSDjCVoJLw8,369
|
|
207
211
|
tests/metropoles/brest/quotient_familial_caf.yaml,sha256=ETZhCReIpCh9Ag2nJqxmvMjBXJ3YUvLUQN6pViT-3fI,1542
|
|
208
212
|
tests/metropoles/brest/transport.yaml,sha256=OX2b90LLD7taZFdridHNFUH_5_3dRUGUvfcK9X6K4hs,842
|
|
209
|
-
tests/metropoles/lyon/revenu_solidaire_jeune.yaml,sha256=
|
|
213
|
+
tests/metropoles/lyon/revenu_solidaire_jeune.yaml,sha256=LmZtermbunVBYidq0EMFQTBwnSljNJHcZ8YnidnAJHQ,1121
|
|
210
214
|
tests/metropoles/nantes/eligibilite.yaml,sha256=uc63B6SZ1CgBItGojwRIa8ay1eKMRgNx6fT7r0egEyM,266
|
|
211
215
|
tests/metropoles/nantes/quotient_familial.yaml,sha256=-UJoDYaTy_e2DaOu4SNpH4kbC1XAG0DkeRn07FD_0TI,136
|
|
212
216
|
tests/metropoles/nantes/tarification_solidaire_transports.yaml,sha256=VYmKKOhohQvCxF45VEutzv-jx8ZRydMj21qcFEtFmgc,243
|
|
@@ -236,8 +240,8 @@ tests/regions/occitanie/carte_jeune_region.yml,sha256=t86RNkSuBYr2fEt60WZi0R115n
|
|
|
236
240
|
tests/regions/occitanie/carte_transport_scolaire.yml,sha256=ZzVRWnH6i9nni7hatdfUX0ltcWR2BCwh4BLP7UpKuZE,318
|
|
237
241
|
tests/regions/occitanie/msa_midi_pyrenees_sud/aide_permis.yml,sha256=zAI_NBTfsP_Q72pDabN2ChQnpK98xasXetIQJmq6LTc,439
|
|
238
242
|
tests/regions/pays_de_la_loire/epass_jeunes_culture_sport.yaml,sha256=vgdq2hFtBWYWHHmO70bPV0lR_0wohJfmJGQb48A0EpQ,336
|
|
239
|
-
OpenFisca_France_Local-6.
|
|
240
|
-
OpenFisca_France_Local-6.
|
|
241
|
-
OpenFisca_France_Local-6.
|
|
242
|
-
OpenFisca_France_Local-6.
|
|
243
|
-
OpenFisca_France_Local-6.
|
|
243
|
+
OpenFisca_France_Local-6.11.0.dist-info/LICENSE,sha256=dql8h4yceoMhuzlcK0TT_i-NgTFNIZsgE47Q4t3dUYI,34520
|
|
244
|
+
OpenFisca_France_Local-6.11.0.dist-info/METADATA,sha256=C6DSjsPg5ogbgLsCMMp0kjYeCB2S1OPDCsfPt8YrOok,1130
|
|
245
|
+
OpenFisca_France_Local-6.11.0.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
246
|
+
OpenFisca_France_Local-6.11.0.dist-info/top_level.txt,sha256=DPfQtZjavxRdHDsGTetqu5AEeVMEEBtG1qdv7ijuwWQ,56
|
|
247
|
+
OpenFisca_France_Local-6.11.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
from openfisca_france.model.base import Variable, Individu, MONTH
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class yvelines_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 des Yvelines"
|
|
9
|
+
reference = 'https://www.78-92.fr/annuaire/aides-et-services/detail/laide-au-financement-du-permis-de-conduire'
|
|
10
|
+
|
|
11
|
+
def formula(individu, period, parameters):
|
|
12
|
+
params = parameters(period).departements.yvelines.aide_permis
|
|
13
|
+
|
|
14
|
+
individus_age = individu('age', period)
|
|
15
|
+
|
|
16
|
+
age_maximum = params.age.maximum_inclusif
|
|
17
|
+
age_minimum = params.age.minimum_inclusif
|
|
18
|
+
eligibilites_age = (individus_age >= age_minimum) * (individus_age <= age_maximum)
|
|
19
|
+
|
|
20
|
+
eligibilite_residentielle = individu.menage('yvelines_eligibilite_residence', period)
|
|
21
|
+
|
|
22
|
+
rbg = individu.foyer_fiscal('rbg', period.last_year)
|
|
23
|
+
nb_pac = individu.foyer_fiscal('nb_pac', period.last_year)
|
|
24
|
+
|
|
25
|
+
rbg_max = params.revenu_global_brut.base + (nb_pac * params.revenu_global_brut.marginal_par_personne)
|
|
26
|
+
eligibilite_revenu = rbg < rbg_max
|
|
27
|
+
|
|
28
|
+
montant = params.montant
|
|
29
|
+
|
|
30
|
+
return eligibilites_age * eligibilite_residentielle * eligibilite_revenu * 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 yvelines_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 dans les Yvelines"
|
|
11
|
+
|
|
12
|
+
def formula(menage, period):
|
|
13
|
+
return startswith(menage('depcom', period), str.encode('78'))
|
|
@@ -3,6 +3,13 @@ from openfisca_france.model.base import (
|
|
|
3
3
|
Variable, Individu, MONTH, TypesActivite)
|
|
4
4
|
|
|
5
5
|
|
|
6
|
+
class sous_contrat_engagement_jeune(Variable):
|
|
7
|
+
value_type = bool
|
|
8
|
+
entity = Individu
|
|
9
|
+
definition_period = MONTH
|
|
10
|
+
label = "Est actuellement en Contrat Engagement Jeune"
|
|
11
|
+
|
|
12
|
+
|
|
6
13
|
class revenu_solidaire_jeune(Variable):
|
|
7
14
|
value_type = float
|
|
8
15
|
entity = Individu
|
|
@@ -20,8 +27,8 @@ class revenu_solidaire_jeune(Variable):
|
|
|
20
27
|
rsa = individu.famille('rsa', period)
|
|
21
28
|
aah = individu('aah', period)
|
|
22
29
|
aeeh = individu.famille('aeeh', period)
|
|
23
|
-
|
|
24
|
-
prestations_incompatibles = rsa + aah + aeeh +
|
|
30
|
+
sous_contrat_engagement_jeune = individu('sous_contrat_engagement_jeune', period)
|
|
31
|
+
prestations_incompatibles = rsa + aah + aeeh + sous_contrat_engagement_jeune
|
|
25
32
|
eligibilite_prestations = prestations_incompatibles == 0
|
|
26
33
|
|
|
27
34
|
pas_en_etude = individu('activite', period) != TypesActivite.etudiant
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
age:
|
|
2
|
+
maximum_inclusif:
|
|
3
|
+
values:
|
|
4
|
+
2010-01-01:
|
|
5
|
+
value: 25
|
|
6
|
+
minimum_inclusif:
|
|
7
|
+
values:
|
|
8
|
+
2010-01-01:
|
|
9
|
+
value: 18
|
|
10
|
+
|
|
11
|
+
revenu_global_brut:
|
|
12
|
+
base:
|
|
13
|
+
values:
|
|
14
|
+
2010-01-01:
|
|
15
|
+
value: 6400
|
|
16
|
+
marginal_par_personne:
|
|
17
|
+
values:
|
|
18
|
+
2010-01-01:
|
|
19
|
+
value: 3200
|
|
20
|
+
|
|
21
|
+
montant:
|
|
22
|
+
values:
|
|
23
|
+
2010-01-01:
|
|
24
|
+
value: 500
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
- period: 2023-02
|
|
2
|
+
name: Éligibilité d'age et de résidence
|
|
3
|
+
input:
|
|
4
|
+
age: [17, 18, 25, 32, 22]
|
|
5
|
+
depcom: ['78000', '78000', '78000', '78000', '13000']
|
|
6
|
+
rbg:
|
|
7
|
+
2022: ['9000','9000','9000','9000', '9000']
|
|
8
|
+
nb_pac:
|
|
9
|
+
2022: ['1', '1','1','1', '1']
|
|
10
|
+
output:
|
|
11
|
+
yvelines_aide_permis: [0, 500, 500, 0, 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, 18]
|
|
17
|
+
depcom: ['78000', '78000', '78000', '78000', '78000', '78000', '78000', '78000', '78000']
|
|
18
|
+
rbg:
|
|
19
|
+
2022: ['9599', '9600','12799', '12800', '15999', '16000', '19199', '19200', '12800']
|
|
20
|
+
nb_pac:
|
|
21
|
+
2022: ['1', '1', '2', '2', '3', '3', '4', '4', '1']
|
|
22
|
+
output:
|
|
23
|
+
yvelines_aide_permis: [500, 0, 500, 0, 500, 0, 500, 0, 0]
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
rsa: [0, 0, 0, 0, 0, 1, 0, 0, 0, 0]
|
|
9
9
|
aah: [0, 0, 0, 0, 0, 0, 1, 0, 0, 0]
|
|
10
10
|
aeeh: [0, 0, 0, 0, 0, 0, 0, 1, 0, 0]
|
|
11
|
-
|
|
11
|
+
sous_contrat_engagement_jeune: [False, False, False, False, False, False, False, False, True, False]
|
|
12
12
|
activite: ['inactif', 'inactif', 'inactif', 'inactif', 'inactif', 'inactif', 'inactif', 'inactif', 'inactif', 'etudiant']
|
|
13
13
|
output:
|
|
14
14
|
revenu_solidaire_jeune: [420, 0, 0, 0, 420, 0, 0, 0, 0, 0]
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
input:
|
|
21
21
|
age: [18, 18, 18, 18]
|
|
22
22
|
depcom: [69003, 69003, 69003, 69003]
|
|
23
|
-
|
|
23
|
+
sous_contrat_engagement_jeune: [False, False, False, False]
|
|
24
24
|
salaire_net: [1, 400, 401, 101]
|
|
25
25
|
indemnites_stage: [0, 0, 0, 101]
|
|
26
26
|
ppa: [0, 0, 0, 101]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{OpenFisca_France_Local-6.9.0.dist-info → OpenFisca_France_Local-6.11.0.dist-info}/top_level.txt
RENAMED
|
File without changes
|