OpenFisca-France-Local 6.12.2__py3-none-any.whl → 6.12.4__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.2
3
+ Version: 6.12.4
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
@@ -18,7 +18,7 @@ Classifier: Topic :: Scientific/Engineering :: Information Analysis
18
18
  Description-Content-Type: text/markdown
19
19
  License-File: LICENSE
20
20
  Requires-Dist: OpenFisca-Core <42,>=40.0.1
21
- Requires-Dist: OpenFisca-France <168,>=153.0.1
21
+ Requires-Dist: OpenFisca-France <169,>=153.0.1
22
22
  Requires-Dist: pandas <2.0,>=1.5.3
23
23
  Provides-Extra: excel-reader
24
24
  Requires-Dist: openpyxl ==3.1.2 ; extra == 'excel-reader'
@@ -1,4 +1,4 @@
1
- OpenFisca_France_Local-6.12.2.data/scripts/openfisca_local_test,sha256=M55UQ5tskwZpJVLXGqlIcVs1nVZ2pBr_-R9jh-z2tbw,128
1
+ OpenFisca_France_Local-6.12.4.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
@@ -42,7 +42,7 @@ openfisca_france_local/departements/haute_saone/aide_permis.py,sha256=_IPaVqxeAq
42
42
  openfisca_france_local/departements/haute_saone/eligibilite.py,sha256=UOwrtn7M0cfxlo-ORdb87cDdWux1OLnJ7WeOvCN-dSU,430
43
43
  openfisca_france_local/departements/haute_vienne/aide_permis.py,sha256=5thrWdV9cvmBqKnm4LctNoaST2oKbmCODhyDRRceywU,1180
44
44
  openfisca_france_local/departements/haute_vienne/eligibilite.py,sha256=0lIasKgtRLoIGtsjJk6q6SZZS_mzy_B9dfGf-oEvYoY,432
45
- openfisca_france_local/departements/loire_atlantique/aide_mobilite.py,sha256=B9WOcvUeFEQE-9AeeQSDAnCJE0vzwusLudBRU3afMBk,3402
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
47
  openfisca_france_local/departements/nord/activ_emploi.py,sha256=juzjujhnlvWgiTkTBCqP_BqQAnA-0IAHyrhgyOnyF90,1262
48
48
  openfisca_france_local/departements/seine_saint_denis/cheque_reussite.py,sha256=c9Zx2N11W5I-X8NzjVP1DErB2GS2hzEr6z4YqBJwUgQ,1968
@@ -83,6 +83,7 @@ openfisca_france_local/parameters/departements/eure_et_loir/repas_foyer.yml,sha2
83
83
  openfisca_france_local/parameters/departements/eure_et_loir/transports.yml,sha256=OJoqYqAd_dGhwY_CpYflSBKFT-AedPfk_f1bSqD4Ndo,180
84
84
  openfisca_france_local/parameters/departements/haute_saone/aide_permis.yaml,sha256=ZjgA0REbrqrLEmZYj9V4rj1pq-Ikc-GpN53QB6f-AHw,1421
85
85
  openfisca_france_local/parameters/departements/haute_vienne/aide_permis.yaml,sha256=798J4k4oUHDMCuIVKuyNDplIO1r7WYF0oyGeW9JeD0A,1387
86
+ openfisca_france_local/parameters/departements/loire_atlantique/aide_mobilite.yml,sha256=FEyo8nNEv8km9kQyS4Vm1ZPahMiU1Wd_R_PzVIOhfKQ,2250
86
87
  openfisca_france_local/parameters/departements/yvelines/aide_permis.yml,sha256=pnfBjsPnKau0ej-k6jCLnm57OsrDKZ0AgkiHYB2IDgo,348
87
88
  openfisca_france_local/parameters/metropoles/bordeaux/aide_tarification_solidaire_transport.yaml,sha256=LBEEAXdufDPr7bMGakxw6M0s9DPa8VKDktW7AKTgwKk,544
88
89
  openfisca_france_local/parameters/metropoles/lyon/revenu_solidaire_jeune.yaml,sha256=eXlsYbAL48jzUEcV0LbI9XEzvABXNmPr1Y5ZHbdFNtQ,609
@@ -208,7 +209,7 @@ tests/departements/eure_et_loir/repas_foyer_personne_handicape.yml,sha256=LZIf2R
208
209
  tests/departements/eure_et_loir/transport_eleves_etudiants.yml,sha256=temar3124TEk37zluaCh4yj0oq2mqlYR5z6JPBElTgQ,1236
209
210
  tests/departements/haute-vienne/aide_permis.yaml,sha256=XAnflnjRNB_rCJSC0X2ZwxElLKLwe2RK_cskfgCJJYs,628
210
211
  tests/departements/haute_saone/aide_permis.yaml,sha256=h1KhWPM0vAcNMqzwlhHmZmt2of1zdAFpcKpb564ebQU,720
211
- tests/departements/loire_atlantique/aide_mobilite.yml,sha256=qOaSwLN2b7KBlLti5j5Vgt_ZFdTe5k_AkSPQeklzX0E,253
212
+ tests/departements/loire_atlantique/aide_mobilite.yml,sha256=JoOQ0_kPVAySu13m2McptbEgHIUhtlh14y_nHVGvqD0,642
212
213
  tests/departements/nord/activ_emploi.yaml,sha256=eXB3vNNoRDQ8yfvoeAhyxHHfT1fMOPLWns-aBQvYrH0,387
213
214
  tests/departements/vendee/bourses_jeunes_benevoles.yaml,sha256=BCgEXxm0z8fl5TYah_0z3OfnKomvmBFeeltT_B8hpGo,162
214
215
  tests/departements/yvelines/aide_permis.yml,sha256=O7bRsOgXZcIwDZ3xJM9kFxWyjrcigkNw3W2cN3g5te4,675
@@ -248,8 +249,8 @@ tests/regions/occitanie/carte_jeune_region.yml,sha256=t86RNkSuBYr2fEt60WZi0R115n
248
249
  tests/regions/occitanie/carte_transport_scolaire.yml,sha256=ZzVRWnH6i9nni7hatdfUX0ltcWR2BCwh4BLP7UpKuZE,318
249
250
  tests/regions/occitanie/msa_midi_pyrenees_sud/aide_permis.yml,sha256=zAI_NBTfsP_Q72pDabN2ChQnpK98xasXetIQJmq6LTc,439
250
251
  tests/regions/pays_de_la_loire/epass_jeunes_culture_sport.yaml,sha256=vgdq2hFtBWYWHHmO70bPV0lR_0wohJfmJGQb48A0EpQ,336
251
- OpenFisca_France_Local-6.12.2.dist-info/LICENSE,sha256=dql8h4yceoMhuzlcK0TT_i-NgTFNIZsgE47Q4t3dUYI,34520
252
- OpenFisca_France_Local-6.12.2.dist-info/METADATA,sha256=q4M6I1mt-UK12XW1ilZV29j3zYlNxwbXLN35vn1oWzE,1170
253
- OpenFisca_France_Local-6.12.2.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
254
- OpenFisca_France_Local-6.12.2.dist-info/top_level.txt,sha256=DPfQtZjavxRdHDsGTetqu5AEeVMEEBtG1qdv7ijuwWQ,56
255
- OpenFisca_France_Local-6.12.2.dist-info/RECORD,,
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,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (70.2.0)
2
+ Generator: setuptools (75.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -12,25 +12,20 @@ class loire_atlantique_quotient_familial(Variable):
12
12
  return foyer_fiscal('rfr', period) / 12 / foyer_fiscal('nbptr', period)
13
13
 
14
14
 
15
- class loire_atlantique_aide_mobilite_eligibilite_financiere(Variable):
15
+ class loire_atlantique_aide_mobilite_eligibilite_age(Variable):
16
16
  value_type = bool
17
17
  entity = Individu
18
18
  definition_period = MONTH
19
- label = "Éligibilité financière pour l'aide à la mobilité du département de Loire-Atlantique"
19
+ label = "Éligibilité d'âge pour l'aide à la mobilité pour le permis AM du département de Loire-Atlantique"
20
20
 
21
- def formula(individu, period):
22
- return individu.foyer_fiscal('loire_atlantique_quotient_familial', period.n_2) <= 800
21
+ def formula(individu, period, parameters):
22
+ params = parameters(period).departements.loire_atlantique.aide_mobilite
23
23
 
24
+ individus_age = individu('age', period)
24
25
 
25
- class loire_atlantique_aide_mobilite_eligibilite_age_permis_am(Variable):
26
- value_type = bool
27
- entity = Individu
28
- definition_period = MONTH
29
- label = "Éligibilité d'âge pour l'aide à la mobilité pour le permis AM du département de Loire-Atlantique"
30
-
31
- def formula(individu, period):
32
- age = individu('age', period)
33
- return (14 <= age) * (age <= 24)
26
+ age_maximum = params.age_maximal
27
+ age_minimum = params.age_minimal
28
+ return (individus_age >= age_minimum) * (individus_age < age_maximum)
34
29
 
35
30
 
36
31
  class loire_atlantique_aide_mobilite_permis_am(Variable):
@@ -40,25 +35,18 @@ class loire_atlantique_aide_mobilite_permis_am(Variable):
40
35
  label = "Montant pour l'aide à la mobilité du département de Loire-Atlantique pour le permis AM"
41
36
  reference = [
42
37
  "Règlement relatif à l’aide départementale à la mobilité",
43
- "https://www.loire-atlantique.fr/upload/docs/binary/octet-stream/2018-12/3-reglement_permis_2019_v24-08-2018.pdf"
38
+ "https://www.loire-atlantique.fr/upload/docs/application/pdf/2024-04/reglement_aide_a_la_mobilite_2024.pdf"
44
39
  ]
45
40
 
46
- def formula(individu, period):
47
- eligibilite_financiere = individu('loire_atlantique_aide_mobilite_eligibilite_financiere', period)
48
- eligibilite_residentielle = individu.menage('loire_atlantique_eligibilite_residence', period)
49
- eligibilite_age = individu('loire_atlantique_aide_mobilite_eligibilite_age_permis_am', period)
50
- return 150 * eligibilite_residentielle * eligibilite_financiere * eligibilite_age
51
-
41
+ def formula(individu, period, parameters):
42
+ params = parameters(period).departements.loire_atlantique.aide_mobilite
52
43
 
53
- class loire_atlantique_aide_mobilite_eligibilite_age_permis_b(Variable):
54
- value_type = bool
55
- entity = Individu
56
- definition_period = MONTH
57
- label = "Éligibilité d'âge pour l'aide à la mobilité pour le permis B du département de Loire-Atlantique"
44
+ eligibilite_residentielle = individu.menage('loire_atlantique_eligibilite_residence', period)
45
+ eligibilite_age = individu('loire_atlantique_aide_mobilite_eligibilite_age', period)
46
+ quotient_familial = individu.foyer_fiscal('loire_atlantique_quotient_familial', period.n_2)
47
+ montant = params.montant_en_fonction_du_quotient_familial_permis_am.calc(quotient_familial)
58
48
 
59
- def formula(individu, period):
60
- age = individu('age', period)
61
- return (17 <= age) * (age <= 24)
49
+ return montant * eligibilite_residentielle * eligibilite_age
62
50
 
63
51
 
64
52
  class loire_atlantique_aide_mobilite_permis_b(Variable):
@@ -68,11 +56,15 @@ class loire_atlantique_aide_mobilite_permis_b(Variable):
68
56
  label = "Montant pour l'aide à la mobilité du département de Loire-Atlantique pour le permis B"
69
57
  reference = [
70
58
  "Règlement relatif à l’aide départementale à la mobilité",
71
- "https://www.loire-atlantique.fr/upload/docs/binary/octet-stream/2018-12/3-reglement_permis_2019_v24-08-2018.pdf"
59
+ "https://www.loire-atlantique.fr/upload/docs/application/pdf/2024-04/reglement_aide_a_la_mobilite_2024.pdf"
72
60
  ]
73
61
 
74
- def formula(individu, period):
75
- eligibilite_financiere = individu('loire_atlantique_aide_mobilite_eligibilite_financiere', period)
62
+ def formula(individu, period, parameters):
63
+ params = parameters(period).departements.loire_atlantique.aide_mobilite
64
+
76
65
  eligibilite_residentielle = individu.menage('loire_atlantique_eligibilite_residence', period)
77
- eligibilite_age = individu('loire_atlantique_aide_mobilite_eligibilite_age_permis_b', period)
78
- return 750 * eligibilite_residentielle * eligibilite_financiere * eligibilite_age
66
+ eligibilite_age = individu('loire_atlantique_aide_mobilite_eligibilite_age', period)
67
+ quotient_familial = individu.foyer_fiscal('loire_atlantique_quotient_familial', period.n_2)
68
+ montant = params.montant_en_fonction_du_quotient_familial_permis_b.calc(quotient_familial)
69
+
70
+ return montant * eligibilite_residentielle * eligibilite_age
@@ -0,0 +1,77 @@
1
+ age_minimal:
2
+ description: Âge minimal à partir duquel l'aide départementale à la mobilité peut être accordée
3
+ values:
4
+ 2018-01-01:
5
+ metadata:
6
+ href: https://www.loire-atlantique.fr/upload/docs/binary/2018-12/3-reglement_permis_2019_v24-08-2018.pdf
7
+ value: 14
8
+ 2024-01-01:
9
+ metadata:
10
+ title: Règlement relatif à l’aide départementale à la mobilité
11
+ href: https://www.loire-atlantique.fr/upload/docs/application/pdf/2024-04/reglement_aide_a_la_mobilite_2024.pdf
12
+ value: 14
13
+
14
+ age_maximal:
15
+ description: Âge maximal à partir duquel l'aide départementale à la mobilité peut être accordée
16
+ values:
17
+ 2018-01-01:
18
+ metadata:
19
+ title: Règlement relatif à l’aide départementale à la mobilité
20
+ href: https://www.loire-atlantique.fr/upload/docs/binary/2018-12/3-reglement_permis_2019_v24-08-2018.pdf
21
+ value: 24
22
+ 2024-01-01:
23
+ metadata:
24
+ title: Règlement relatif à l’aide départementale à la mobilité
25
+ href: https://www.loire-atlantique.fr/upload/docs/application/pdf/2024-04/reglement_aide_a_la_mobilite_2024.pdf
26
+ value: 24
27
+
28
+ montant_en_fonction_du_quotient_familial_permis_am:
29
+ description: Montant obtenu pour l'aide au permis moto de conduire.
30
+ metadata:
31
+ type: single_amount
32
+ brackets:
33
+ - threshold:
34
+ 2018-01-01:
35
+ value: 0
36
+ 2022-01-01:
37
+ value: 0
38
+ amount:
39
+ 2018-01-01:
40
+ value: 150
41
+ 2022-01-01:
42
+ value: 100
43
+ - threshold:
44
+ 2018-01-01:
45
+ value: 801
46
+ 2022-01-01:
47
+ value: 601
48
+ amount:
49
+ 2018-01-01:
50
+ value: 0
51
+ 2022-01-01:
52
+ value: 0
53
+ montant_en_fonction_du_quotient_familial_permis_b:
54
+ description: Montant obtenu pour l'aide au permis B de conduire.
55
+ metadata:
56
+ type: single_amount
57
+ brackets:
58
+ - threshold:
59
+ 2018-01-01:
60
+ value: 0
61
+ 2022-01-01:
62
+ value: 0
63
+ amount:
64
+ 2018-01-01:
65
+ value: 750
66
+ 2022-01-01:
67
+ value: 500
68
+ - threshold:
69
+ 2018-01-01:
70
+ value: 801
71
+ 2022-01-01:
72
+ value: 601
73
+ amount:
74
+ 2018-01-01:
75
+ value: 0
76
+ 2022-01-01:
77
+ value: 0
@@ -1,9 +1,23 @@
1
- - period: 2020-07
1
+ - period: 2020-01
2
2
  input:
3
- age: 18
4
- loire_atlantique_eligibilite_residence: true
5
- loire_atlantique_quotient_familial:
6
- 2018: 400
3
+ age: [ 16, 14, 25, 16 ]
4
+ depcom: [ 44100, 44100, 44200, 13140 ]
5
+ rfr:
6
+ 2018: [ 1000, 5000000, 12000, 12000 ]
7
+ nbptr:
8
+ 2018: [ 1, 1, 1, 1 ]
7
9
  output:
8
- loire_atlantique_aide_mobilite_permis_am: 150
9
- loire_atlantique_aide_mobilite_permis_b: 750
10
+ loire_atlantique_aide_mobilite_permis_am: [150, 0, 0, 0]
11
+ loire_atlantique_aide_mobilite_permis_b: [750, 0, 0, 0]
12
+
13
+ - period: 2024-01
14
+ input:
15
+ age: [ 16, 14, 25, 16 ]
16
+ depcom: [ 44100, 44100, 44200, 13140 ]
17
+ rfr:
18
+ 2022: [ 1000, 5000000, 12000, 12000 ]
19
+ nbptr:
20
+ 2022: [ 4, 1, 1, 1 ]
21
+ output:
22
+ loire_atlantique_aide_mobilite_permis_am: [100, 0, 0, 0]
23
+ loire_atlantique_aide_mobilite_permis_b: [500, 0, 0, 0]