@openfisca/france-json
Version:
JSON & YAML data extracted from OpenFisca-France source code (parameters, variables, etc)
374 lines (373 loc) • 11.9 kB
JSON
{
"default_value": 0,
"definition_period": "month",
"description": {
"2021-09-07": [
{
"href": "https://www.service-public.fr/particuliers/vosdroits/N20360",
"note": "Ce montant correspond à la somme des 3 types d'allocations logement : l'APL, versée en raison d'un critère de financement du logement (conventionné) ; l'ALF, versée en raison de la situation familiale, et l'ALS, versée dans tous les autres cas.",
"title": "Service-Public.fr"
}
]
},
"dtype": "float32",
"entity": "famille",
"file_path": "openfisca_france/model/prestations/aides_logement.py",
"formulas": {
"0001-01-01": {
"ast": {
"args": {
"args": [
{
"arg": "famille",
"ast_class": "arg",
"col_offset": 12,
"end_col_offset": 19,
"end_lineno": 1,
"lineno": 1
},
{
"arg": "period",
"ast_class": "arg",
"col_offset": 21,
"end_col_offset": 27,
"end_lineno": 1,
"lineno": 1
}
],
"ast_class": "arguments",
"defaults": [],
"kw_defaults": [],
"kwonlyargs": [],
"posonlyargs": []
},
"ast_class": "FunctionDef",
"body": [
{
"ast_class": "Assign",
"col_offset": 4,
"end_col_offset": 32,
"end_lineno": 2,
"lineno": 2,
"targets": [
{
"ast_class": "Name",
"col_offset": 4,
"ctx": {
"ast_class": "Store"
},
"end_col_offset": 7,
"end_lineno": 2,
"id": "apl",
"lineno": 2
}
],
"value": {
"args": [
{
"ast_class": "Constant",
"col_offset": 18,
"end_col_offset": 23,
"end_lineno": 2,
"lineno": 2,
"value": "apl"
},
{
"ast_class": "Name",
"col_offset": 25,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 31,
"end_lineno": 2,
"id": "period",
"lineno": 2
}
],
"ast_class": "Call",
"col_offset": 10,
"end_col_offset": 32,
"end_lineno": 2,
"func": {
"ast_class": "Name",
"col_offset": 10,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 17,
"end_lineno": 2,
"id": "famille",
"lineno": 2
},
"keywords": [],
"lineno": 2
}
},
{
"ast_class": "Assign",
"col_offset": 4,
"end_col_offset": 32,
"end_lineno": 3,
"lineno": 3,
"targets": [
{
"ast_class": "Name",
"col_offset": 4,
"ctx": {
"ast_class": "Store"
},
"end_col_offset": 7,
"end_lineno": 3,
"id": "als",
"lineno": 3
}
],
"value": {
"args": [
{
"ast_class": "Constant",
"col_offset": 18,
"end_col_offset": 23,
"end_lineno": 3,
"lineno": 3,
"value": "als"
},
{
"ast_class": "Name",
"col_offset": 25,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 31,
"end_lineno": 3,
"id": "period",
"lineno": 3
}
],
"ast_class": "Call",
"col_offset": 10,
"end_col_offset": 32,
"end_lineno": 3,
"func": {
"ast_class": "Name",
"col_offset": 10,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 17,
"end_lineno": 3,
"id": "famille",
"lineno": 3
},
"keywords": [],
"lineno": 3
}
},
{
"ast_class": "Assign",
"col_offset": 4,
"end_col_offset": 32,
"end_lineno": 4,
"lineno": 4,
"targets": [
{
"ast_class": "Name",
"col_offset": 4,
"ctx": {
"ast_class": "Store"
},
"end_col_offset": 7,
"end_lineno": 4,
"id": "alf",
"lineno": 4
}
],
"value": {
"args": [
{
"ast_class": "Constant",
"col_offset": 18,
"end_col_offset": 23,
"end_lineno": 4,
"lineno": 4,
"value": "alf"
},
{
"ast_class": "Name",
"col_offset": 25,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 31,
"end_lineno": 4,
"id": "period",
"lineno": 4
}
],
"ast_class": "Call",
"col_offset": 10,
"end_col_offset": 32,
"end_lineno": 4,
"func": {
"ast_class": "Name",
"col_offset": 10,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 17,
"end_lineno": 4,
"id": "famille",
"lineno": 4
},
"keywords": [],
"lineno": 4
}
},
{
"ast_class": "Return",
"col_offset": 4,
"end_col_offset": 36,
"end_lineno": 6,
"lineno": 6,
"value": {
"args": [
{
"args": [
{
"ast_class": "Name",
"col_offset": 21,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 24,
"end_lineno": 6,
"id": "apl",
"lineno": 6
},
{
"ast_class": "Name",
"col_offset": 26,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 29,
"end_lineno": 6,
"id": "als",
"lineno": 6
}
],
"ast_class": "Call",
"col_offset": 16,
"end_col_offset": 30,
"end_lineno": 6,
"func": {
"ast_class": "Name",
"col_offset": 16,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 20,
"end_lineno": 6,
"id": "max_",
"lineno": 6
},
"keywords": [],
"lineno": 6
},
{
"ast_class": "Name",
"col_offset": 32,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 35,
"end_lineno": 6,
"id": "alf",
"lineno": 6
}
],
"ast_class": "Call",
"col_offset": 11,
"end_col_offset": 36,
"end_lineno": 6,
"func": {
"ast_class": "Name",
"col_offset": 11,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 15,
"end_lineno": 6,
"id": "max_",
"lineno": 6
},
"keywords": [],
"lineno": 6
}
}
],
"col_offset": 0,
"decorator_list": [],
"end_col_offset": 36,
"end_lineno": 6,
"lineno": 1,
"name": "formula"
},
"file_path": "openfisca_france/model/prestations/aides_logement.py",
"parameters": [
"prestations.aides_logement.age_max_etudiant",
"prestations.aides_logement.al_min",
"prestations.aides_logement.al_pac",
"prestations.aides_logement.autres.abattement_forfaitaire",
"prestations.aides_logement.autres.nr_seuil",
"prestations.aides_logement.forfait_charges",
"prestations.aides_logement.loyers_plafond",
"prestations.aides_logement.participation_min.montant_forfaitaire",
"prestations.aides_logement.participation_min.taux",
"prestations.aides_logement.patrimoine.seuil_valorisation",
"prestations.aides_logement.taux_participation_fam.dom.taux1",
"prestations.aides_logement.taux_participation_fam.dom.taux2",
"prestations.aides_logement.taux_participation_fam.dom.taux3",
"prestations.aides_logement.taux_participation_fam.dom.taux4",
"prestations.aides_logement.taux_participation_fam.dom.taux5",
"prestations.aides_logement.taux_participation_fam.dom.taux6",
"prestations.aides_logement.taux_participation_fam.dom.taux7",
"prestations.aides_logement.taux_participation_fam.dom.taux8",
"prestations.aides_logement.taux_participation_fam.taux_1_adulte",
"prestations.aides_logement.taux_participation_fam.taux_1_enf",
"prestations.aides_logement.taux_participation_fam.taux_2_adulte",
"prestations.aides_logement.taux_participation_fam.taux_2_enf",
"prestations.aides_logement.taux_participation_fam.taux_3_enf",
"prestations.aides_logement.taux_participation_fam.taux_4_enf",
"prestations.aides_logement.taux_participation_fam.taux_enf_supp",
"prestations.reduction_loyer_solidarite.fraction_baisse_aide_logement"
],
"source_code": "def formula(famille, period):\n apl = famille('apl', period)\n als = famille('als', period)\n alf = famille('alf', period)\n\n return max_(max_(apl, als), alf)\n",
"start_line_number": 28,
"stop_line_number": 34,
"variables": [
"alf",
"als",
"apl"
]
}
},
"json_type": "number",
"label": "Aides au logement (APL, ALF et ASL)",
"name": "aide_logement",
"referring_variables": [
"aides_logement",
"cmu_forfait_logement_al",
"covid_aide_exceptionnelle_famille_montant",
"mobili_jeune",
"ppa_forfait_logement",
"psa",
"rsa_forfait_logement"
],
"set_input": "set_input_divide_by_period",
"start_line_number": 21,
"stop_line_number": 34,
"unit": "currency",
"ux_name": "Aides logement (APL, ALF et ASL)",
"value_type": "float"
}