@leximpact/socio-fiscal-openfisca-json
Version:
JSON & YAML data extracted from OpenFisca-France with Indirect Taxation source code (parameters, variables, etc)
331 lines (330 loc) • 10.5 kB
JSON
{
"default_value": 0,
"definition_period": "year",
"dtype": "float32",
"entity": "menage",
"file_path": "openfisca_france_indirect_taxation/variables/taxes_indirectes/ticpe.py",
"formulas": {
"0001-01-01": {
"ast": {
"args": {
"args": [
{
"arg": "menage",
"ast_class": "arg",
"col_offset": 12,
"end_col_offset": 18,
"end_lineno": 1,
"lineno": 1
},
{
"arg": "period",
"ast_class": "arg",
"col_offset": 20,
"end_col_offset": 26,
"end_lineno": 1,
"lineno": 1
},
{
"arg": "parameters",
"ast_class": "arg",
"col_offset": 28,
"end_col_offset": 38,
"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": 87,
"end_lineno": 2,
"lineno": 2,
"targets": [
{
"ast_class": "Name",
"col_offset": 4,
"ctx": {
"ast_class": "Store"
},
"end_col_offset": 35,
"end_lineno": 2,
"id": "quantites_combustibles_liquides",
"lineno": 2
}
],
"value": {
"args": [
{
"ast_class": "Constant",
"col_offset": 45,
"end_col_offset": 78,
"end_lineno": 2,
"lineno": 2,
"value": "quantites_combustibles_liquides"
},
{
"ast_class": "Name",
"col_offset": 80,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 86,
"end_lineno": 2,
"id": "period",
"lineno": 2
}
],
"ast_class": "Call",
"col_offset": 38,
"end_col_offset": 87,
"end_lineno": 2,
"func": {
"ast_class": "Name",
"col_offset": 38,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 44,
"end_lineno": 2,
"id": "menage",
"lineno": 2
},
"keywords": [],
"lineno": 2
}
},
{
"ast_class": "Assign",
"col_offset": 4,
"end_col_offset": 143,
"end_lineno": 3,
"lineno": 3,
"targets": [
{
"ast_class": "Name",
"col_offset": 4,
"ctx": {
"ast_class": "Store"
},
"end_col_offset": 32,
"end_lineno": 3,
"id": "accise_combustibles_liquides",
"lineno": 3
}
],
"value": {
"ast_class": "Attribute",
"attr": "gazole_fioul_domestique_hectolitre",
"col_offset": 35,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 143,
"end_lineno": 3,
"lineno": 3,
"value": {
"ast_class": "Attribute",
"attr": "ticpe",
"col_offset": 35,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 108,
"end_lineno": 3,
"lineno": 3,
"value": {
"ast_class": "Attribute",
"attr": "produits_energetiques",
"col_offset": 35,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 102,
"end_lineno": 3,
"lineno": 3,
"value": {
"ast_class": "Attribute",
"attr": "imposition_indirecte",
"col_offset": 35,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 80,
"end_lineno": 3,
"lineno": 3,
"value": {
"args": [
{
"ast_class": "Attribute",
"attr": "start",
"col_offset": 46,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 58,
"end_lineno": 3,
"lineno": 3,
"value": {
"ast_class": "Name",
"col_offset": 46,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 52,
"end_lineno": 3,
"id": "period",
"lineno": 3
}
}
],
"ast_class": "Call",
"col_offset": 35,
"end_col_offset": 59,
"end_lineno": 3,
"func": {
"ast_class": "Name",
"col_offset": 35,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 45,
"end_lineno": 3,
"id": "parameters",
"lineno": 3
},
"keywords": [],
"lineno": 3
}
}
}
}
}
},
{
"ast_class": "Assign",
"col_offset": 4,
"end_col_offset": 102,
"end_lineno": 4,
"lineno": 4,
"targets": [
{
"ast_class": "Name",
"col_offset": 4,
"ctx": {
"ast_class": "Store"
},
"end_col_offset": 31,
"end_lineno": 4,
"id": "combustibles_liquides_ticpe",
"lineno": 4
}
],
"value": {
"ast_class": "BinOp",
"col_offset": 34,
"end_col_offset": 102,
"end_lineno": 4,
"left": {
"ast_class": "BinOp",
"col_offset": 34,
"end_col_offset": 96,
"end_lineno": 4,
"left": {
"ast_class": "Name",
"col_offset": 34,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 65,
"end_lineno": 4,
"id": "quantites_combustibles_liquides",
"lineno": 4
},
"lineno": 4,
"op": {
"ast_class": "Mult"
},
"right": {
"ast_class": "Name",
"col_offset": 68,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 96,
"end_lineno": 4,
"id": "accise_combustibles_liquides",
"lineno": 4
}
},
"lineno": 4,
"op": {
"ast_class": "Div"
},
"right": {
"ast_class": "Constant",
"col_offset": 99,
"end_col_offset": 102,
"end_lineno": 4,
"lineno": 4,
"value": 100
}
}
},
{
"ast_class": "Return",
"col_offset": 4,
"end_col_offset": 38,
"end_lineno": 6,
"lineno": 6,
"value": {
"ast_class": "Name",
"col_offset": 11,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 38,
"end_lineno": 6,
"id": "combustibles_liquides_ticpe",
"lineno": 6
}
}
],
"col_offset": 0,
"decorator_list": [],
"end_col_offset": 38,
"end_lineno": 6,
"lineno": 1,
"name": "formula"
},
"file_path": "openfisca_france_indirect_taxation/variables/taxes_indirectes/ticpe.py",
"parameters": [
"imposition_indirecte.produits_energetiques.ticpe.gazole_fioul_domestique_hectolitre"
],
"source_code": "def formula(menage, period, parameters):\n quantites_combustibles_liquides = menage('quantites_combustibles_liquides', period)\n accise_combustibles_liquides = parameters(period.start).imposition_indirecte.produits_energetiques.ticpe.gazole_fioul_domestique_hectolitre\n combustibles_liquides_ticpe = quantites_combustibles_liquides * accise_combustibles_liquides / 100\n\n return combustibles_liquides_ticpe\n",
"start_line_number": 13,
"stop_line_number": 19,
"variables": [
"quantites_combustibles_liquides"
]
}
},
"json_type": "number",
"label": "Calcul du montant de TICPE sur les combustibles liquides",
"name": "combustibles_liquides_ticpe",
"referring_variables": [
"total_taxes_energies"
],
"start_line_number": 8,
"stop_line_number": 19,
"unit": "currency",
"value_type": "float"
}