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

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: OpenFisca-France-Local
3
- Version: 6.12.4
3
+ Version: 6.13.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.12.4.data/scripts/openfisca_local_test,sha256=M55UQ5tskwZpJVLXGqlIcVs1nVZ2pBr_-R9jh-z2tbw,128
1
+ OpenFisca_France_Local-6.13.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=ai1nfE0WPmBjTNSc3WoYQ71kOquaTEjdX8iOheistK0,16418
4
4
  openfisca_france_local/convert_benefit_conditions_to_parameters.py,sha256=qMQNMQKJh-m77KWvbAaMxO2VHB8SwUtVw80c7r7YeFc,6304
@@ -44,6 +44,8 @@ openfisca_france_local/departements/haute_vienne/aide_permis.py,sha256=5thrWdV9c
44
44
  openfisca_france_local/departements/haute_vienne/eligibilite.py,sha256=0lIasKgtRLoIGtsjJk6q6SZZS_mzy_B9dfGf-oEvYoY,432
45
45
  openfisca_france_local/departements/loire_atlantique/aide_mobilite.py,sha256=9uL6l_AA1zQmb4U3Pk7M_TGtYGY8e1M2x9zXLVbMqiY,3154
46
46
  openfisca_france_local/departements/loire_atlantique/eligibilite.py,sha256=8eWIzfXRqDVtZNCuO88Zvbk435YbugKPYVhPadKzsHY,451
47
+ openfisca_france_local/departements/meurthe_et_moselle/eligibilite.py,sha256=aXfeVTEo5jomU8pb7GEfr9wGniUag3hwoHzDN6t3OK8,429
48
+ openfisca_france_local/departements/meurthe_et_moselle/pass_jeune_54.py,sha256=iSNKgl_9IRsSEvaLxR5wRoIA9HJ04Q2mafWY-a1dIIM,1911
47
49
  openfisca_france_local/departements/nord/activ_emploi.py,sha256=juzjujhnlvWgiTkTBCqP_BqQAnA-0IAHyrhgyOnyF90,1262
48
50
  openfisca_france_local/departements/seine_saint_denis/cheque_reussite.py,sha256=c9Zx2N11W5I-X8NzjVP1DErB2GS2hzEr6z4YqBJwUgQ,1968
49
51
  openfisca_france_local/departements/seine_saint_denis/eligibilite.py,sha256=hMJEVwTw4dsrtNuru74v4s-jV9J3HhCdqGs-_gT6up0,456
@@ -84,6 +86,7 @@ openfisca_france_local/parameters/departements/eure_et_loir/transports.yml,sha25
84
86
  openfisca_france_local/parameters/departements/haute_saone/aide_permis.yaml,sha256=ZjgA0REbrqrLEmZYj9V4rj1pq-Ikc-GpN53QB6f-AHw,1421
85
87
  openfisca_france_local/parameters/departements/haute_vienne/aide_permis.yaml,sha256=798J4k4oUHDMCuIVKuyNDplIO1r7WYF0oyGeW9JeD0A,1387
86
88
  openfisca_france_local/parameters/departements/loire_atlantique/aide_mobilite.yml,sha256=FEyo8nNEv8km9kQyS4Vm1ZPahMiU1Wd_R_PzVIOhfKQ,2250
89
+ openfisca_france_local/parameters/departements/meurthe_et_moselle/pass_jeune_54.yml,sha256=2uZBx7FQTt7hh0EMjKK03ipujz06dGegVlvxg_bFZbU,1358
87
90
  openfisca_france_local/parameters/departements/yvelines/aide_permis.yml,sha256=pnfBjsPnKau0ej-k6jCLnm57OsrDKZ0AgkiHYB2IDgo,348
88
91
  openfisca_france_local/parameters/metropoles/bordeaux/aide_tarification_solidaire_transport.yaml,sha256=LBEEAXdufDPr7bMGakxw6M0s9DPa8VKDktW7AKTgwKk,544
89
92
  openfisca_france_local/parameters/metropoles/lyon/revenu_solidaire_jeune.yaml,sha256=eXlsYbAL48jzUEcV0LbI9XEzvABXNmPr1Y5ZHbdFNtQ,609
@@ -210,6 +213,7 @@ tests/departements/eure_et_loir/transport_eleves_etudiants.yml,sha256=temar3124T
210
213
  tests/departements/haute-vienne/aide_permis.yaml,sha256=XAnflnjRNB_rCJSC0X2ZwxElLKLwe2RK_cskfgCJJYs,628
211
214
  tests/departements/haute_saone/aide_permis.yaml,sha256=h1KhWPM0vAcNMqzwlhHmZmt2of1zdAFpcKpb564ebQU,720
212
215
  tests/departements/loire_atlantique/aide_mobilite.yml,sha256=JoOQ0_kPVAySu13m2McptbEgHIUhtlh14y_nHVGvqD0,642
216
+ tests/departements/meurthe_et_moselle/pass_jeune_54.yml,sha256=qoMRgJqMa460tL1FbgM52ozh6T-XFwU_KBmdjpEXsoQ,553
213
217
  tests/departements/nord/activ_emploi.yaml,sha256=eXB3vNNoRDQ8yfvoeAhyxHHfT1fMOPLWns-aBQvYrH0,387
214
218
  tests/departements/vendee/bourses_jeunes_benevoles.yaml,sha256=BCgEXxm0z8fl5TYah_0z3OfnKomvmBFeeltT_B8hpGo,162
215
219
  tests/departements/yvelines/aide_permis.yml,sha256=O7bRsOgXZcIwDZ3xJM9kFxWyjrcigkNw3W2cN3g5te4,675
@@ -249,8 +253,8 @@ tests/regions/occitanie/carte_jeune_region.yml,sha256=t86RNkSuBYr2fEt60WZi0R115n
249
253
  tests/regions/occitanie/carte_transport_scolaire.yml,sha256=ZzVRWnH6i9nni7hatdfUX0ltcWR2BCwh4BLP7UpKuZE,318
250
254
  tests/regions/occitanie/msa_midi_pyrenees_sud/aide_permis.yml,sha256=zAI_NBTfsP_Q72pDabN2ChQnpK98xasXetIQJmq6LTc,439
251
255
  tests/regions/pays_de_la_loire/epass_jeunes_culture_sport.yaml,sha256=vgdq2hFtBWYWHHmO70bPV0lR_0wohJfmJGQb48A0EpQ,336
252
- OpenFisca_France_Local-6.12.4.dist-info/LICENSE,sha256=dql8h4yceoMhuzlcK0TT_i-NgTFNIZsgE47Q4t3dUYI,34520
253
- OpenFisca_France_Local-6.12.4.dist-info/METADATA,sha256=PY5kE34s8TvNYZkCA20SQmXeYOPEqYZ1L215MyGKI9Q,1170
254
- OpenFisca_France_Local-6.12.4.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
255
- OpenFisca_France_Local-6.12.4.dist-info/top_level.txt,sha256=DPfQtZjavxRdHDsGTetqu5AEeVMEEBtG1qdv7ijuwWQ,56
256
- OpenFisca_France_Local-6.12.4.dist-info/RECORD,,
256
+ OpenFisca_France_Local-6.13.0.dist-info/LICENSE,sha256=dql8h4yceoMhuzlcK0TT_i-NgTFNIZsgE47Q4t3dUYI,34520
257
+ OpenFisca_France_Local-6.13.0.dist-info/METADATA,sha256=pk9JbBrJBe4oNOFM6aEQNaEm4Vkt4HiAyEvoquqKoiw,1170
258
+ OpenFisca_France_Local-6.13.0.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
259
+ OpenFisca_France_Local-6.13.0.dist-info/top_level.txt,sha256=DPfQtZjavxRdHDsGTetqu5AEeVMEEBtG1qdv7ijuwWQ,56
260
+ OpenFisca_France_Local-6.13.0.dist-info/RECORD,,
@@ -0,0 +1,12 @@
1
+ from openfisca_france.model.base import Variable, Menage, MONTH
2
+ from numpy.core.defchararray import startswith
3
+
4
+
5
+ class meurthe_et_moselle_eligibilite_residence(Variable):
6
+ value_type = bool
7
+ entity = Menage
8
+ definition_period = MONTH
9
+ label = "Éligibilité résidentielle d'un ménage aux dipositifs de Meurthe-et-Moselle"
10
+
11
+ def formula(menage, period):
12
+ return startswith(menage('depcom', period), b'54')
@@ -0,0 +1,46 @@
1
+ from openfisca_france.model.base import Variable, Individu, MONTH
2
+
3
+
4
+ class eligibilite_age_pass_jeune_54(Variable):
5
+ value_type = float
6
+ entity = Individu
7
+ definition_period = MONTH
8
+ label = "Éligibilité d'âge pour le Pass Jeune 54 du département Meurthe-et-Moselle"
9
+
10
+ def formula(individu, period, parameters):
11
+ age = individu('age', period)
12
+ age_minimum = parameters(period).departements.meurthe_et_moselle.pass_jeune_54.age.minimum_inclusif
13
+ age_maximum = parameters(period).departements.meurthe_et_moselle.pass_jeune_54.age.maximum_inclusif
14
+ return (age_minimum <= age) * (age <= age_maximum)
15
+
16
+ class quotient_familial_pass_jeune_54(Variable):
17
+ value_type = float
18
+ entity = Individu
19
+ definition_period = MONTH
20
+ label = "Quotient familial pour le Pass Jeune 54 du département Meurthe-et-Moselle"
21
+
22
+ def formula(individu, period):
23
+ rfr = individu.foyer_fiscal('rfr', period.n_2)
24
+ nbptr = individu.foyer_fiscal('nbptr', period.n_2)
25
+ return rfr / nbptr / 12
26
+
27
+ class pass_jeune_54(Variable):
28
+ value_type = float
29
+ entity = Individu
30
+ definition_period = MONTH
31
+ label = "Montant pour le Pass Jeune 54 du département Meurthe-et-Moselle"
32
+ reference = [
33
+ "https://meurthe-et-moselle.fr/actions/education-populaire-jeunesse-sports/sport/pass-jeunes-54"
34
+ ]
35
+
36
+ def formula(individu, period, parameters):
37
+
38
+ params = parameters(period).departements.meurthe_et_moselle.pass_jeune_54
39
+
40
+ eligibilite_residentielle = individu.menage('meurthe_et_moselle_eligibilite_residence', period)
41
+ eligibilite_age = individu('eligibilite_age_pass_jeune_54', period)
42
+ quotient_familial = individu('quotient_familial_pass_jeune_54', period)
43
+
44
+ montant = params.montant_en_fonction_du_quotient_familial.calc(quotient_familial)
45
+
46
+ return montant * eligibilite_residentielle * eligibilite_age
@@ -0,0 +1,47 @@
1
+ age:
2
+ minimum_inclusif:
3
+ reference:
4
+ - https://meurthe-et-moselle.fr/actions/education-populaire-jeunesse-sports/sport/pass-jeunes-54
5
+ description: Éligibilité d'âge minimum pour l'aide Pass Jeunes 54 dans le département de la Meurthe-et-Moselle.
6
+ values:
7
+ 2024-01-01:
8
+ value: 6
9
+ maximum_inclusif:
10
+ reference:
11
+ - https://meurthe-et-moselle.fr/actions/education-populaire-jeunesse-sports/sport/pass-jeunes-54
12
+ description: Éligibilité d'âge maximum pour l'aide Pass Jeunes 54 dans le département de la Meurthe-et-Moselle.
13
+ values:
14
+ 2024-01-01:
15
+ value: 16
16
+
17
+ montant_en_fonction_du_quotient_familial:
18
+ reference:
19
+ - https://meurthe-et-moselle.fr/actions/education-populaire-jeunesse-sports/sport/pass-jeunes-54
20
+ description: Montant obtenu pour l'aide Pass Jeunes 54 en région Auvergne-Rhône-Alpes.
21
+ metadata:
22
+ type: single_amount
23
+ brackets:
24
+ - threshold:
25
+ 2024-01-01:
26
+ value: 0
27
+ amount:
28
+ 2024-01-01:
29
+ value: 100
30
+ - threshold:
31
+ 2024-01-01:
32
+ value: 451
33
+ amount:
34
+ 2024-01-01:
35
+ value: 70
36
+ - threshold:
37
+ 2024-01-01:
38
+ value: 551
39
+ amount:
40
+ 2024-01-01:
41
+ value: 50
42
+ - threshold:
43
+ 2024-01-01:
44
+ value: 651
45
+ amount:
46
+ 2024-01-01:
47
+ value: 0
@@ -0,0 +1,23 @@
1
+ - period: 2024-01
2
+ name: "Éligibilité d'âge et de résidence"
3
+ input:
4
+ age: [5, 6, 8, 16, 17]
5
+ depcom: [54000, 54000, 68400, 54000, 54000]
6
+ rfr:
7
+ 2022: [80, 80, 80, 80, 80]
8
+ nbptr:
9
+ 2022: [1, 1, 1, 1, 1]
10
+ output:
11
+ pass_jeune_54: [0, 100, 0, 100, 0]
12
+
13
+ - period: 2024-01
14
+ name: Montant en fonction du quotient familial
15
+ input:
16
+ age: [14, 14, 14, 14]
17
+ depcom: [54000, 54000, 54000, 54000]
18
+ rfr:
19
+ 2022: [7850, 13300, 5600, 5200]
20
+ nbptr:
21
+ 2022: [1, 2, 1, 1]
22
+ output:
23
+ pass_jeune_54: [0, 50, 70, 100]