OpenFisca-France-Local 5.2.0__py3-none-any.whl → 5.3.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: 5.2.0
3
+ Version: 5.3.0
4
4
  Summary: Extension OpenFisca pour nos partenariats avec les collectivités territoriales
5
5
  Home-page: https://github.com/openfisca/openfisca-france
6
6
  Author: OpenFisca Team
@@ -1,4 +1,4 @@
1
- OpenFisca_France_Local-5.2.0.data/scripts/openfisca_local_test,sha256=M55UQ5tskwZpJVLXGqlIcVs1nVZ2pBr_-R9jh-z2tbw,128
1
+ OpenFisca_France_Local-5.3.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
@@ -10,6 +10,8 @@ openfisca_france_local/test_dispositif.py,sha256=ceGZB4LTo4iqZn_c6GALHCadBwNO1bw
10
10
  openfisca_france_local/communes/alfortville/eligibilite.py,sha256=zcj9-0GuAHLzU4M5eS6Jvc3N6RMjHPGmEopFiHHDBE4,397
11
11
  openfisca_france_local/communes/alfortville/noel_enfants.py,sha256=pG7wB1do4AeE5udV_EuFRmV3EUBghsj5SappbpnfZDI,2898
12
12
  openfisca_france_local/communes/cambrai/aide_permis.py,sha256=AiRrJH-NoSSDohe6jX4Sk-gIWTgNzmKaKRgswyvAfsQ,1217
13
+ openfisca_france_local/communes/carcassonne/aide_permis.py,sha256=CfvA1YFcousdxZETqYEKDoayd_BhMFcnfyC-VcE89mY,1145
14
+ openfisca_france_local/communes/carcassonne/eligibilite.py,sha256=lVU1oap1_KVl1TeVTiNWb3TeMN5ujnhrTghGd2wb6o4,361
13
15
  openfisca_france_local/communes/illkirch_graffenstaden/base.py,sha256=L90ys8g0jdOkybVtmdjuhycTt2KQAKfIbDTJZ957tMQ,2746
14
16
  openfisca_france_local/communes/iwuy/aide_permis.py,sha256=Xr-5NCWux1Hk4oFGurkWFkIFyEhxVDWYsR1hszzngvQ,933
15
17
  openfisca_france_local/communes/le_cateau/aide_permis.py,sha256=Ms2PKH-35eZc0ibbRbVIjOLc5gIwS0aHHdZh-ef20FI,1238
@@ -63,6 +65,7 @@ openfisca_france_local/metropoles/toulouse/tisseo/transport_reduction.py,sha256=
63
65
  openfisca_france_local/parameters/garantie_jeunes.yaml,sha256=VmdMgY06DWQ_nGp1Ijv866a_sZcGATEdnHTQQjofwLw,335
64
66
  openfisca_france_local/parameters/communes/alfortville.yml,sha256=pwbNW9C7mP2u04_f1oEICP_Wz9DAXaemOUK46ur5Kp8,105
65
67
  openfisca_france_local/parameters/communes/cambrai/aide_permis.yml,sha256=ngzABrR2PFgi3XFzeQL5uKEA9Z0hqxTbKKnNvT9Ys3I,231
68
+ openfisca_france_local/parameters/communes/carcassonne/aide_permis.yaml,sha256=Tozcfwo751bbfrTfpP0TKaQUZc49quZhJh5Uzd0r4oo,1343
66
69
  openfisca_france_local/parameters/communes/iwuy/aide_permis.yml,sha256=OQL0IKFGV7Jiy-1hjajsfMKszrRN-l7ffrn3KszOy20,239
67
70
  openfisca_france_local/parameters/communes/le_cateau/aide_permis.yml,sha256=uk4QI2yfY_8bfmTJhVqhVfj32LTKs9kcuRJOxP4ppAk,245
68
71
  openfisca_france_local/parameters/communes/les_rues_des_vignes/aide_permis.yml,sha256=g_ds6N6oZ7Y-R5dmxqCbRtqkLv2EduUsX61Xdj6HjRE,233
@@ -145,6 +148,7 @@ tests/communes/alfortville/eligibilite.yml,sha256=LpUHyhBSKUlmk7pmXLvzSF-dawWTtA
145
148
  tests/communes/alfortville/noel_enfants.yml,sha256=Qw3wu8jgCp2XEf-yqiJEo1EkBD-5yq9bvmBWYsTgtt0,1570
146
149
  tests/communes/alfortville/noel_enfants_base_ressource.yml,sha256=-IXtEfB0OoMDEKnTou_kGpW7MdS6TZgVqtImCXe8wcU,811
147
150
  tests/communes/cambrai/aide_permis.yml,sha256=bunUx-90pSLAo462LGw7LVmwBTm6CvN6Ch15XpOOKGU,223
151
+ tests/communes/carcassonne/aide_permis.yaml,sha256=gqE1qdqz0l3cjDQMCuKjYpN-klauODUzQlQH_FdCYIg,775
148
152
  tests/communes/iwuy/aide_permis.yml,sha256=vbWLT4hP4x3xDBBP8fh-zShCGjxsEEduhGzinS_TPCk,142
149
153
  tests/communes/le_cateau/aide_permis.yml,sha256=Hf1RI6pdgkL7pvyDb4euV9PVea7s1U-AyZ5JDNrJ0_0,223
150
154
  tests/communes/les_rues_des_vignes/aide_permis.yml,sha256=NbGXyaOT1lft1eAvB1zecuS1qqJMDnbnV8k-byhB_xk,157
@@ -206,8 +210,8 @@ tests/regions/occitanie/carte_jeune_region.yml,sha256=t86RNkSuBYr2fEt60WZi0R115n
206
210
  tests/regions/occitanie/carte_transport_scolaire.yml,sha256=ZzVRWnH6i9nni7hatdfUX0ltcWR2BCwh4BLP7UpKuZE,318
207
211
  tests/regions/occitanie/msa_midi_pyrenees_sud/aide_permis.yml,sha256=zAI_NBTfsP_Q72pDabN2ChQnpK98xasXetIQJmq6LTc,439
208
212
  tests/regions/pays_de_la_loire/epass_jeunes_culture_sport.yaml,sha256=vgdq2hFtBWYWHHmO70bPV0lR_0wohJfmJGQb48A0EpQ,336
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,,
213
+ OpenFisca_France_Local-5.3.0.dist-info/LICENSE,sha256=dql8h4yceoMhuzlcK0TT_i-NgTFNIZsgE47Q4t3dUYI,34520
214
+ OpenFisca_France_Local-5.3.0.dist-info/METADATA,sha256=jfna6AdZzXlv40funr8yqb4JiTwY9mVGAyw6o7mSK40,1187
215
+ OpenFisca_France_Local-5.3.0.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
216
+ OpenFisca_France_Local-5.3.0.dist-info/top_level.txt,sha256=DPfQtZjavxRdHDsGTetqu5AEeVMEEBtG1qdv7ijuwWQ,56
217
+ OpenFisca_France_Local-5.3.0.dist-info/RECORD,,
@@ -0,0 +1,29 @@
1
+ from openfisca_france.model.base import Variable, Individu, MONTH
2
+
3
+
4
+ class carcassonne_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 la commune de Carcassonne"
9
+ reference = [
10
+ 'https://www.carcassonne.org/article-page/bourse-au-permis-0',
11
+ ]
12
+
13
+ def formula(individu, period, parameters):
14
+ params = parameters(period).communes.carcassonne.aide_permis
15
+
16
+ individus_age = individu('age', period)
17
+
18
+ age_maximum = params.age.maximum_inclusif
19
+ age_minimum = params.age.minimum_inclusif
20
+ age_eligibilites = (individus_age >= age_minimum) * (individus_age <= age_maximum)
21
+
22
+ eligibilite_residentielle = individu.menage('carcassonne_eligibilite_residence', period)
23
+
24
+ rfr = individu.foyer_fiscal('rfr', period.n_2)
25
+ nbptr = individu.foyer_fiscal('nbptr', period.n_2)
26
+ quotient_familial = rfr / nbptr / 12
27
+ montant = params.montant_en_fonction_du_quotient_familial.calc(quotient_familial)
28
+
29
+ return age_eligibilites * eligibilite_residentielle * montant
@@ -0,0 +1,11 @@
1
+ from openfisca_france.model.base import Menage, MONTH, Variable
2
+
3
+
4
+ class carcassonne_eligibilite_residence(Variable):
5
+ value_type = bool
6
+ entity = Menage
7
+ definition_period = MONTH
8
+ label = "Éligibilité résidentielle d'un ménage aux dipositifs de Carcassonne"
9
+
10
+ def formula(menage, period):
11
+ return menage('depcom', period) == b'11069'
@@ -0,0 +1,53 @@
1
+ age:
2
+ maximum_inclusif:
3
+ reference:
4
+ - https://www.carcassonne.org/article-page/bourse-au-permis-0
5
+ description: Eligibilité d'âge pour l'aide au permis de conduire dans la commune de Carcassonne.
6
+ values:
7
+ 2006-01-01:
8
+ value: 25
9
+ minimum_inclusif:
10
+ reference:
11
+ - https://www.carcassonne.org/article-page/bourse-au-permis-0
12
+ description: Eligibilité d'âge pour l'aide au permis de conduire dans la commune de Carcassonne.
13
+ values:
14
+ 2006-01-01:
15
+ value: 16
16
+
17
+ montant_en_fonction_du_quotient_familial:
18
+ reference:
19
+ - https://www.carcassonne.org/article-page/bourse-au-permis-0
20
+ description: Montant obtenu pour l'aide au permis de conduire dans la commune de Carcassonne.
21
+ metadata:
22
+ type: single_amount
23
+ brackets:
24
+ - threshold:
25
+ 2006-01-01:
26
+ value: 0
27
+ amount:
28
+ 2006-01-01:
29
+ value: 700
30
+ - threshold:
31
+ 2006-01-01:
32
+ value: 501
33
+ amount:
34
+ 2006-01-01:
35
+ value: 630
36
+ - threshold:
37
+ 2006-01-01:
38
+ value: 601
39
+ amount:
40
+ 2006-01-01:
41
+ value: 560
42
+ - threshold:
43
+ 2006-01-01:
44
+ value: 801
45
+ amount:
46
+ 2006-01-01:
47
+ value: 450
48
+ - threshold:
49
+ 2006-01-01:
50
+ value: 1101
51
+ amount:
52
+ 2006-01-01:
53
+ value: 300
@@ -0,0 +1,23 @@
1
+ - period: 2023-02
2
+ name: Éligibilité d'age et de résidence
3
+ input:
4
+ age: [16, 15, 25, 26, 18]
5
+ depcom: ['11069', '11069', '11069', '11069', '75005']
6
+ rfr:
7
+ 2021: ['5000','5000','5000','5000','5000']
8
+ nbptr:
9
+ 2021: ['1', '1','1','1','1']
10
+ output:
11
+ carcassonne_aide_permis: [700, 0, 700, 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: ['11069','11069','11069','11069','11069', '11069', '11069', '11069', '11069']
18
+ rfr:
19
+ 2021: ['13212', '13200', '9612', '9600', '7212', '7200', '6012', '6000', '0']
20
+ nbptr:
21
+ 2021: ['1','1','1','1','1','1','1','1','1']
22
+ output:
23
+ carcassonne_aide_permis: [300, 450, 450, 560, 560, 630, 630, 700, 700]