Closed PhunkyBob closed 4 years ago
Salut @PhunkyBob !
Une liste à proprement parler pas vraiment, mais tu peux chercher l'attribut cerfa_field
qui a à peu près cette intention. C'est un sujet qu'on a déjà abordé, cf #853 sans toutefois le résoudre de façon parfaite. @claireleroy peut éventuellement apporter des compléments.
Salut @PhunkyBob , de notre côté (TAXIPP) on utilise bien les CERFA en inputs de nos simulations. Pour traduire les CERFA en variables OpenFisca, on utilise la fonction "build_cerfa_fields_by_variable" d'Openfisca-france-data.
C'est justement en lisant #853 que j'ai eu l'espoir qu'il y ait une équivalence disponible quelque part. J'ai récupéré le code source en me disant qu'il y aurait peut-être dedans un dictionnaire. J'ai fait une recherche dans le code de "1AJ" en espérant tomber sur ce dictionnaire, mais en vain.
Je ne comptais pas développer en Python, mais me contenter de créer un JSON pour appeler l'API, d'où mon besoin d'équivalence. Je vais essayer de remonter la piste de "build_cerfa_fields_by_variable".
Je suis passé dans tous les fichiers "openfisca_france/model/*.py" pour lire le contenu de "cerfa_field".
| class OF | cerfa | |-------------------------------|-----| | sal_pen_exo_etr | 1AC | | chomeur_longue_duree | 1AI | | salaire_imposable | 1AJ | | frais_reels | 1AK | | pensions_alimentaires_percues | 1AO | | chomage_imposable | 1AP | | f1ar | 1AR | | retraite_imposable | 1AS | | hsup | 1AU | | ppe_du_sa | 1AV | | f1aw | 1AW | | ppe_tp_sa | 1AX | | pensions_invalidite | 1AZ | | sal_pen_exo_etr | 1BC | | chomeur_longue_duree | 1BI | | salaire_imposable | 1BJ | | frais_reels | 1BK | | pensions_alimentaires_percues | 1BO | | chomage_imposable | 1BP | | f1br | 1BR | | retraite_imposable | 1BS | | hsup | 1BU | | ppe_du_sa | 1BV | | f1bw | 1BW | | ppe_tp_sa | 1BX | | pensions_invalidite | 1BZ | | sal_pen_exo_etr | 1CC | | chomeur_longue_duree | 1CI | | salaire_imposable | 1CJ | | frais_reels | 1CK | | pensions_alimentaires_percues | 1CO | | chomage_imposable | 1CP | | f1cr | 1CR | | retraite_imposable | 1CS | | hsup | 1CU | | ppe_du_sa | 1CV | | f1cw | 1CW | | ppe_tp_sa | 1CX | | pensions_invalidite | 1CZ | | sal_pen_exo_etr | 1DC | | chomeur_longue_duree | 1DI | | salaire_imposable | 1DJ | | frais_reels | 1DK | | pensions_alimentaires_percues | 1DO | | chomage_imposable | 1DP | | f1dr | 1DR | | retraite_imposable | 1DS | | hsup | 1DU | | ppe_du_sa | 1DV | | f1dw | 1DW | | ppe_tp_sa | 1DX | | pensions_invalidite | 1DZ | | chomeur_longue_duree | 1EI | | salaire_imposable | 1EJ | | frais_reels | 1EK | | pensions_alimentaires_percues | 1EO | | chomage_imposable | 1EP | | f1er | 1ER | | retraite_imposable | 1ES | | ppe_du_sa | 1QV | | ppe_tp_sa | 1QX | | f1tt | 1TT | | f1tv | 1TV | | f1tw | 1TW | | f1tx | 1TX | | f1tt | 1UT | | f1tv | 1UV | | f1tw | 1UW | | f1tx | 1UX | | f2aa | 2AA | | f2ab | 2AB | | f2al | 2AL | | f2am | 2AM | | f2an | 2AN | | f2aq | 2AQ | | f2ar | 2AR | | f2bg | 2BG | | f2bh | 2BH | | f2ca | 2CA | | f2cg | 2CG | | f2ch | 2CH | | f2ck | 2CK | | f2da | 2DA | | f2dc | 2DC | | f2dh | 2DH | | f2dm | 2DM | | f2ee | 2EE | | f2fa | 2FA | | f2fu | 2FU | | f2go | 2GO | | f2gr | 2GR | | f2tr | 2TR | | f2ts | 2TS | | f2tt_2016 | 2TT | | f2tt | 2TT | | f2tu_2016 | 2TU | | f2tu | 2TU | | f2tv | 2TV | | f2tw | 2TW | | f2xx | 2XX | | f2yy | 2YY | | f2zz | 2ZZ | | f3sa | 3SA | | f3sa_2012 | 3SA | | f3sb | 3SB | | f3vd | 3SD | | f3vf | 3SF | | f3sg | 3SG | | f3sh | 3SH | | f3vi | 3SI | | f3sj | 3SJ | | f3sk | 3SK | | f3sl | 3SL | | f3sm | 3SM | | f3tz | 3TZ | | f3ua | 3UA | | f3va_2014 | 3VA | | f3va_2016 | 3VA | | f3va | 3VA | | f3va_2016 | 3VB | | f3vb | 3VB | | f3vc | 3VC | | f3vd | 3VD | | f3ve | 3VE | | f3vf | 3VF | | f3vg | 3VG | | f3vh | 3VH | | f3vi | 3VI | | f3vj | 3VJ | | f3vj | 3VK | | f3vl | 3VL | | f3vm | 3VM | | f3va_2016 | 3VO | | f3vp | 3VP | | f3va_2016 | 3VP | | f3vq | 3VQ | | f3vr | 3VR | | f3vt | 3VT | | f3vv | 3VV | | f3vv_end_2010 | 3VV | | f3vy | 3VY | | f3vz | 3VZ | | f3wb | 3WB | | f3wd | 3WD | | f3we | 3WE | | f3wi | 3WI | | f3wj | 3WJ | | f3wn | 3WN | | f3wp | 3WP | | f3wr | 3WR | | f3wt | 3WT | | f4ba | 4BA | | f4bb | 4BB | | f4bc | 4BC | | f4bd | 4BD | | f4be | 4BE | | f4bf | 4BF | | f4tq | 4TQ | | f5ga | 5GA | | f5gb | 5GB | | f5gc | 5GC | | f5gd | 5GD | | f5ge | 5GE | | f5gf | 5GF | | f5gg | 5GG | | f5gh | 5GH | | f5gi | 5GI | | f5gj | 5GJ | | abic_impm | 5HA | | arag_exon | 5HB | | arag_impg | 5HC | | frag_fore | 5HD | | arag_pvce | 5HE | | arag_defi | 5HF | | pveximpres | 5HG | | nrag_exon | 5HH | | nrag_impg | 5HI | | nrag_pvce | 5HK | | cncn_exon | 5HK | | nrag_defi | 5HL | | nrag_ajag | 5HM | | frag_exon | 5HN | | frag_impo | 5HO | | mbnc_exon | 5HP | | mbnc_impo | 5HQ | | mbnc_pvce | 5HR | | mbnc_mvlt | 5HS | | f5ht | 5HT | | mbic_mvct | 5HU | | mbnc_pvct | 5HV | | frag_pvct | 5HW | | frag_pvce | 5HX | | revimpres | 5HY | | arag_sjag | 5HZ | | pvtaimpres | 5HZ | | abic_impm | 5IA | | arag_exon | 5IB | | arag_impg | 5IC | | frag_fore | 5ID | | arag_pvce | 5IE | | arag_defi | 5IF | | pveximpres | 5IG | | nrag_exon | 5IH | | nrag_impg | 5II | | nbic_pvce | 5IK | | nrag_defi | 5IL | | nrag_ajag | 5IM | | frag_exon | 5IN | | frag_impo | 5IO | | mbnc_exon | 5IP | | mbnc_impo | 5IQ | | mbnc_pvce | 5IR | | mbnc_mvlt | 5IS | | f5it | 5IT | | macc_mvct | 5IU | | mbnc_pvct | 5IV | | frag_pvct | 5IW | | frag_pvce | 5IX | | revimpres | 5IY | | arag_sjag | 5IZ | | pvtaimpres | 5IZ | | abic_impm | 5JA | | arag_exon | 5JB | | arag_impg | 5JC | | frag_fore | 5JD | | arag_pvce | 5JE | | arag_defi | 5JF | | cncn_aimp | 5JG | | nrag_exon | 5JH | | nrag_impg | 5JI | | cncn_adef | 5JJ | | nrag_pvce | 5JK | | cncn_exon | 5JK | | nrag_defi | 5JL | | nrag_ajag | 5JM | | frag_exon | 5JN | | frag_impo | 5JO | | mbnc_exon | 5JP | | mbnc_impo | 5JQ | | mbnc_pvce | 5JR | | mbnc_mvlt | 5JS | | f5jt | 5JT | | mncn_mvct | 5JU | | mbnc_pvct | 5JV | | frag_pvct | 5JW | | frag_pvce | 5JX | | revimpres | 5JY | | arag_sjag | 5JZ | | pvtaimpres | 5JZ | | nbic_impm | 5KA | | abic_exon | 5KB | | abic_impn | 5KC | | abic_imps | 5KD | | abic_pvce | 5KE | | abic_defn | 5KF | | abic_defs | 5KG | | nbic_exon | 5KH | | nbic_impn | 5KI | | nbic_imps | 5KJ | | nbic_mvct | 5KJ | | nbic_pvce | 5KK | | nbic_defn | 5KL | | nbic_defs | 5KM | | mbic_exon | 5KN | | mbic_impv | 5KO | | mbic_imps | 5KP | | mbic_pvce | 5KQ | | mbic_mvlt | 5KR | | nbic_apch | 5KS | | f5kt | 5KT | | mncn_impo | 5KU | | mncn_pvce | 5KV | | mncn_mvlt | 5KW | | mbic_pvct | 5KX | | mncn_pvct | 5KY | | mbnc_mvct | 5KZ | | nbic_impm | 5LA | | abic_exon | 5LB | | abic_impn | 5LC | | abic_imps | 5LD | | abic_pvce | 5LE | | abic_defn | 5LF | | abic_defs | 5LG | | nbic_exon | 5LH | | nbic_impn | 5LI | | nbic_imps | 5LJ | | nbic_mvct | 5LJ | | nrag_pvce | 5LK | | cncn_exon | 5LK | | nbic_defn | 5LL | | nbic_defs | 5LM | | mbic_exon | 5LN | | mbic_impv | 5LO | | mbic_imps | 5LP | | mbic_pvce | 5LQ | | mbic_mvlt | 5LR | | nbic_apch | 5LS | | f5lt | 5LT | | mncn_impo | 5LU | | mncn_pvce | 5LV | | mncn_mvlt | 5LW | | mbic_pvct | 5LX | | mncn_pvct | 5LY | | mbnc_mvct | 5LZ | | nbic_impm | 5MA | | abic_exon | 5MB | | abic_impn | 5MC | | abic_imps | 5MD | | abic_pvce | 5ME | | abic_defn | 5MF | | abic_defs | 5MG | | nbic_exon | 5MH | | nbic_impn | 5MI | | nbic_imps | 5MJ | | nbic_mvct | 5MJ | | nbic_pvce | 5MK | | nbic_defn | 5ML | | nbic_defs | 5MM | | mbic_exon | 5MN | | mbic_impv | 5MO | | mbic_imps | 5MP | | mbic_pvce | 5MQ | | mbic_mvlt | 5MR | | nbic_apch | 5MS | | f5mt | 5MT | | mncn_impo | 5MU | | mncn_pvce | 5MV | | mncn_mvlt | 5MW | | mbic_pvct | 5MX | | mncn_pvct | 5MY | | mbnc_mvct | 5MZ | | alnp_imps | 5NA | | aacc_exon | 5NB | | aacc_impn | 5NC | | aacc_imps | 5ND | | aacc_pvce | 5NE | | aacc_defn | 5NF | | aacc_gits | 5NG | | aacc_defs | 5NG | | nacc_exon | 5NH | | nacc_impn | 5NI | | nacc_meup | 5NJ | | nacc_pvce | 5NK | | nacc_defn | 5NL | | nacc_defs | 5NM | | macc_exon | 5NN | | macc_impv | 5NO | | macc_imps | 5NP | | macc_pvce | 5NQ | | macc_mvlt | 5NR | | cncn_bene | 5NS | | cncn_pvce | 5NT | | cncn_defi | 5NU | | ppe_du_ns | 5NV | | ppe_tp_ns | 5NW | | macc_pvct | 5NX | | alnp_defs | 5NY | | nlnp_defs | 5NZ | | alnp_imps | 5OA | | aacc_exon | 5OB | | aacc_impn | 5OC | | aacc_imps | 5OD | | aacc_pvce | 5OE | | aacc_defn | 5OF | | aacc_gits | 5OG | | aacc_defs | 5OG | | nacc_exon | 5OH | | nacc_impn | 5OI | | nacc_meup | 5OJ | | nacc_pvce | 5OK | | nacc_defn | 5OL | | nacc_defs | 5OM | | macc_exon | 5ON | | macc_impv | 5OO | | macc_imps | 5OP | | macc_pvce | 5OQ | | macc_mvlt | 5OR | | cncn_bene | 5OS | | cncn_pvce | 5OT | | cncn_defi | 5OU | | ppe_du_ns | 5OV | | ppe_tp_ns | 5OW | | macc_pvct | 5OX | | alnp_defs | 5OY | | nlnp_defs | 5OZ | | alnp_imps | 5PA | | aacc_exon | 5PB | | aacc_impn | 5PC | | aacc_imps | 5PD | | aacc_pvce | 5PE | | aacc_defn | 5PF | | aacc_gits | 5PG | | aacc_defs | 5PG | | nacc_exon | 5PH | | nacc_impn | 5PI | | nacc_meup | 5PJ | | nacc_pvce | 5PK | | nacc_defn | 5PL | | nacc_defs | 5PM | | macc_exon | 5PN | | macc_impv | 5PO | | macc_imps | 5PP | | macc_pvce | 5PQ | | macc_mvlt | 5PR | | ppe_du_ns | 5PV | | ppe_tp_ns | 5PW | | macc_pvct | 5PX | | alnp_defs | 5PY | | nlnp_defs | 5PZ | | abic_defm | 5QA | | abnc_exon | 5QB | | abnc_impo | 5QC | | abnc_pvce | 5QD | | abnc_defi | 5QE | | f5qf | 5QF | | f5qg | 5QG | | nbnc_exon | 5QH | | nbnc_impo | 5QI | | nbnc_pvce | 5QJ | | nbnc_defi | 5QK | | f5qm | 5QM | | f5qn | 5QN | | f5qo | 5QO | | f5qp | 5QP | | f5qq | 5QQ | | abic_defm | 5RA | | abnc_exon | 5RB | | abnc_impo | 5RC | | abnc_pvce | 5RD | | abnc_defi | 5RE | | cncn_aimp | 5RF | | cncn_adef | 5RG | | nbnc_exon | 5RH | | nbnc_impo | 5RI | | nbnc_pvce | 5RJ | | nbnc_defi | 5RK | | f5qm | 5RM | | f5rn | 5RN | | f5ro | 5RO | | f5rp | 5RP | | f5rq | 5RQ | | f5rr | 5RR | | f5rw | 5RW | | abic_defm | 5SA | | abnc_exon | 5SB | | abnc_impo | 5SC | | abnc_pvce | 5SD | | abnc_defi | 5SE | | cncn_aimp | 5SF | | cncn_adef | 5SG | | nbnc_exon | 5SH | | nbnc_impo | 5SI | | nbnc_pvce | 5SJ | | nbnc_defi | 5SK | | cncn_bene | 5SN | | cncn_pvce | 5SO | | cncn_defi | 5SP | | f5sq | 5SQ | | cncn_jcre | 5SV | | cncn_jcre | 5SW | | cncn_jcre | 5SX | | ebic_impv | 5TA | | ebic_imps | 5TB | | cncn_info | 5TC | | ebnc_impo | 5TE | | abnc_proc | 5TF | | mncn_exon | 5TH | | nbnc_proc | 5TI | | ebic_impv | 5UA | | ebic_imps | 5UB | | cncn_info | 5UC | | ebnc_impo | 5UE | | abnc_proc | 5UF | | mncn_exon | 5UH | | nbnc_proc | 5UI | | ebic_impv | 5VA | | ebic_imps | 5VB | | cncn_info | 5VC | | ebnc_impo | 5VE | | abnc_proc | 5VF | | mncn_exon | 5VH | | nbnc_proc | 5VI | | f6aa | 6AA | | f6cb | 6CB | | f6dd | 6DD | | f6de | 6DE | | f6el | 6EL | | f6em | 6EM | | f6eu | 6EU | | f6ev | 6EV | | f6fa | 6FA | | f6fb | 6FB | | f6fc | 6FC | | f6fd | 6FD | | f6fe | 6FE | | f6fl | 6FL | | f6gh | 6GH | | f6gi | 6GI | | f6gj | 6GJ | | f6gp | 6GP | | f6gu | 6GU | | f6hj | 6HJ | | f6hk | 6HK | | f6hl | 6HL | | f6hm | 6HM | | f6hn | 6HN | | f6ho | 6HO | | f6hp | 6HP | | f6hq | 6HQ | | f6hr | 6HR | | f6ps | 6PS | | f6ps | 6PT | | f6ps | 6PU | | f6rs | 6RS | | f6rs | 6RT | | f6rs | 6RU | | f6ss | 6SS | | f6ss | 6ST | | f6ss | 6SU | | f7aa_2016 | 7AA | | f7aa | 7AA | | f7ac | 7AC | | f7ad | 7AD | | f7ac | 7AE | | f7af | 7AF | | f7ac | 7AG | | f7ah | 7AH | | f7ai | 7AI | | f7ak | 7AK | | f7al | 7AL | | f7am | 7AM | | f7an | 7AN | | f7ao | 7AO | | f7ap | 7AP | | f7aq | 7AQ | | f7ar | 7AR | | f7as | 7AS | | f7av | 7AV | | f7ax | 7AX | | f7ay | 7AY | | f7az | 7AZ | | f7bb | 7BB | | f7bc | 7BC | | f7bd | 7BD | | f7be | 7BE | | f7bf | 7BF | | f7bh | 7BH | | f7bi | 7BI | | f7bk | 7BK | | f7bl | 7BL | | f7bm_2016 | 7BM | | f7bm | 7BM | | f7bz | 7BZ | | f7cb | 7CB | | f7cc | 7CC | | f7cd | 7CD | | f7ce | 7CE | | f7cf | 7CF | | f7ci | 7CI | | f7cl | 7CL | | f7cm | 7CM | | f7cn | 7CN | | f7cq | 7CQ | | f7cr | 7CR | | f7cu | 7CU | | f7cv | 7CV | | f7cx | 7CX | | f7cy | 7CY | | f7ey | 7CY | | f7cz | 7CZ | | f7db | 7DB | | f7dd | 7DD | | f7df | 7DF | | f7dg | 7DG | | f7di | 7DI | | f7dl | 7DL | | f7dq | 7DQ | | f7dy | 7DY | | f7dz | 7DZ | | f7ea | 7EA | | f7eb | 7EB | | f7ec | 7EC | | f7ed | 7ED | | f7ef | 7EF | | f7eg | 7EG | | f7ek | 7EK | | f7el | 7EL | | f7en | 7EN | | f7ez | 7EZ | | f7fa | 7FA | | f7fb | 7FB | | f7fc | 7FC | | f7fd | 7FD | | f7ff | 7FF | | f7fg | 7FG | | f7fh | 7FH | | f7fi | 7FI | | f7fk | 7FK | | f7fl | 7FL | | f7fm | 7FM | | f7fn | 7FN | | f7fq | 7FQ | | f7fr | 7FR | | f7fv | 7FV | | f7fw | 7FW | | f7fy_2011 | 7FY | | f7fy | 7FY | | f7ga | 7GA | | f7gb | 7GB | | f7gc | 7GC | | f7ge | 7GE | | f7gf | 7GF | | f7gg | 7GG | | f7gh | 7GH | | f7gi | 7GI | | f7gj | 7GJ | | f7gk | 7GK | | f7gl | 7GL | | f7gn | 7GN | | f7gp | 7GP | | f7gq | 7GQ | | f7gs | 7GS | | f7gt | 7GT | | f7gu | 7GU | | f7gv | 7GV | | f7gw | 7GW | | f7gx | 7GX | | f7gy | 7GY | | f7gz | 7GZ | | f7ha | 7HA | | f7hb | 7HB | | f7hd | 7HD | | f7he | 7HE | | f7hf | 7HF | | f7hg | 7HG | | f7hh | 7HH | | f7hj | 7HJ | | f7hk | 7HK | | fhql | 7HL | | f7hl | 7HL | | f7hm | 7HM | | f7hn | 7HN | | f7ho | 7HO | | f7hr | 7HR | | f7hs | 7HS | | f7ht | 7HT | | fhku | 7HU | | f7hu | 7HU | | f7hv | 7HV | | fhpw | 7HW | | f7hw | 7HW | | f7hx | 7HX | | f7hy | 7HY | | f7hz | 7HZ | | f7ia | 7IA | | f7ib | 7IB | | f7ic | 7IC | | f7id | 7ID | | f7ie | 7IE | | f7if | 7IF | | f7ig | 7IG | | f7ih | 7IH | | f7ij | 7IJ | | f7ik | 7IK | | f7il | 7IL | | f7im | 7IM | | f7in | 7IN | | f7io | 7IO | | f7ip | 7IP | | f7iq | 7IQ | | f7ir | 7IR | | f7is | 7IS | | f7it | 7IT | | f7iu | 7IU | | f7iv | 7IV | | f7iw | 7IW | | f7ix | 7IX | | f7iy | 7IY | | f7iz | 7IZ | | f7ja | 7JA | | f7jb | 7JB | | f7jc | 7JC | | f7jd | 7JD | | f7je | 7JE | | f7jf | 7JF | | f7jg | 7JG | | f7jh | 7JH | | f7ji | 7JI | | f7jj | 7JJ | | f7jk | 7JK | | f7jl | 7JL | | f7jm | 7JM | | f7jn | 7JN | | f7jo | 7JO | | f7jp | 7JP | | f7jq | 7JQ | | f7jr | 7JR | | f7js | 7JS | | f7jt | 7JT | | f7ju | 7JU | | f7jv | 7JV | | f7jw | 7JW | | f7jx | 7JX | | f7jy | 7JY | | f7ka | 7KA | | f7kb | 7KB | | f7kc | 7KC | | f7kd | 7KD | | f7ke | 7KE | | f7kg | 7KG | | f7kh | 7KH | | f7ki | 7KI | | f7ks | 7KS | | fhkt | 7KT | | f7kt | 7KT | | f7ku | 7KU | | f7ky | 7KY | | f7la | 7LA | | f7lb | 7LB | | f7lc | 7LC | | f7ld | 7LD | | f7le | 7LE | | f7lf | 7LF | | f7lg | 7LG | | f7lh_2012 | 7LH | | f7lh | 7LH | | f7li | 7LI | | f7lj | 7LJ | | f7lk | 7LK | | f7ll | 7LL | | f7lm | 7LM | | f7ln | 7LN | | f7lo | 7LO | | f7lp | 7LP | | f7ls | 7LS | | f7lt | 7LT | | f7lx | 7LX | | f7ly | 7LY | | f7lz | 7LZ | | f7ma | 7MA | | f7mb | 7MB | | f7mc | 7MC | | f7mg | 7MG | | f7mh | 7MH | | f7mm | 7MM | | f7mn | 7MN | | f7my | 7MY | | f7na | 7NA | | f7nb | 7NB | | f7nc | 7NC | | f7nd | 7ND | | f7ne | 7NE | | f7nf | 7NF | | f7ng | 7NG | | f7nh | 7NH | | f7ni | 7NI | | f7nj | 7NJ | | f7nk | 7NK | | f7nl | 7NL | | f7nm | 7NM | | f7nn | 7NN | | f7no | 7NO | | f7np | 7NP | | f7nq | 7NQ | | f7nr | 7NR | | f7ns | 7NS | | f7nt | 7NT | | f7nu | 7NU | | f7nv | 7NV | | f7nw | 7NW | | f7nx | 7NX | | f7ny | 7NY | | f7nz | 7NZ | | f7oa | 7OA | | f7ob | 7OB | | f7oc | 7OC | | f7od | 7OD | | f7oe | 7OE | | f7of | 7OF | | f7og | 7OG | | f7oh | 7OH | | f7oi | 7OI | | f7oj | 7OJ | | f7ok | 7OK | | f7ol | 7OL | | f7om | 7OM | | f7on | 7ON | | f7oo | 7OO | | f7op_2012 | 7OP | | f7op | 7OP | | f7oq_2012 | 7OQ | | f7oq | 7OQ | | f7or_2012 | 7OR | | f7or | 7OR | | f7os_2012 | 7OS | | f7os | 7OS | | f7ot | 7OT | | f7ou | 7OU | | f7ov | 7OV | | f7ow | 7OW | | f7ox | 7OX | | f7oz | 7OZ | | f7pa_2012 | 7PA | | f7pa | 7PA | | f7pb_2012 | 7PB | | f7pb | 7PB | | f7pc_2011 | 7PC | | f7pc | 7PC | | f7pd_2012 | 7PD | | f7pd | 7PD | | f7pe_2012 | 7PE | | f7pe | 7PE | | f7pf_2012 | 7PF | | f7pf | 7PF | | f7pg | 7PG | | f7ph | 7PH | | f7pi_2012 | 7PI | | f7pi | 7PI | | f7pj_2012 | 7PJ | | f7pj | 7PJ | | f7pk | 7PK | | f7pl | 7PL | | f7pm | 7PM | | f7pn | 7PN | | f7po | 7PO | | f7pp_2012 | 7PP | | f7pp | 7PP | | f7pq_2012 | 7PQ | | f7pq | 7PQ | | f7pr_2012 | 7PR | | f7pr | 7PR | | f7ps_2012 | 7PS | | f7ps | 7PS | | f7pt_2012 | 7PT | | f7pt | 7PT | | f7pu | 7PU | | f7pv | 7PV | | f7pw | 7PW | | f7px | 7PX | | f7py | 7PY | | f7pz | 7PZ | | f7qa | 7QA | | f7qb | 7QB | | f7qc | 7QC | | f7qd | 7QD | | f7qe | 7QE | | f7qf | 7QF | | f7qg | 7QG | | f7qh | 7QH | | f7qi | 7QI | | f7qj | 7QJ | | f7qk | 7QK | | f7ql | 7QL | | f7qm_2012 | 7QM | | f7qm | 7QM | | f7qn_2012 | 7QN | | f7qn | 7QN | | f7qo_2012 | 7QO | | f7qo | 7QO | | f7qp_2012 | 7QP | | f7qp | 7QP | | f7qq | 7QQ | | f7qr_2012 | 7QR | | f7qr | 7QR | | f7qs_2012 | 7QS | | f7qs | 7QS | | f7qt_2012 | 7QT | | f7qt | 7QT | | f7qu_2012 | 7QU | | f7qu | 7QU | | f7qv | 7QV | | f7qw | 7QW | | f7qx | 7QX | | f7qz_2012 | 7QZ | | f7qz | 7QZ | | f7ra_2015 | 7RA | | f7ra | 7RA | | f7rb_2015 | 7RB | | f7rb | 7RB | | f7rc_2015 | 7RC | | f7rc | 7RC | | f7rd_2015 | 7RD | | f7rd | 7RD | | f7re | 7RE | | f7rf | 7RF | | f7rg | 7RG | | f7rh | 7RH | | f7ri | 7RI | | f7rj | 7RJ | | f7rk | 7RK | | f7rl | 7RL | | f7rm | 7RM | | f7rn | 7RN | | f7ro | 7RO | | f7rp | 7RP | | f7rq | 7RQ | | f7rr | 7RR | | f7rs | 7RS | | f7rt | 7RT | | f7ru | 7RU | | f7rv | 7RV | | f7rw | 7RW | | f7rx | 7RX | | f7ry | 7RY | | f7rz_2010 | 7RZ | | f7rz_2015 | 7RZ | | f7rz | 7RZ | | f7sa | 7SA | | f7sb_2011 | 7SB | | f7sb | 7SB | | f7sc_2009 | 7SC | | f7sc | 7SC | | f7sd | 7SD | | f7se | 7SE | | f7sf | 7SF | | f7sg | 7SG | | f7sh | 7SH | | f7si | 7SI | | f7sj | 7SJ | | f7sk | 7SK | | f7sl | 7SL | | f7sm | 7SM | | f7sn | 7SN | | f7so | 7SO | | f7sp | 7SP | | f7sq | 7SQ | | f7sr | 7SR | | f7ss | 7SS | | f7st | 7ST | | f7su | 7SU | | f7sv | 7SV | | f7sw | 7SW | | f7sx | 7SX | | f7sy | 7SY | | f7sz_2009 | 7SZ | | f7sz_2015 | 7SZ | | f7sz | 7SZ | | f7ta | 7TA | | f7tb | 7TB | | f7tc | 7TC | | f7td | 7TD | | f7te | 7TE | | f7tf | 7TF | | f7tg | 7TG | | f7th | 7TH | | f7ti | 7TI | | f7tj | 7TJ | | f7tk | 7TK | | f7tm | 7TM | | f7tn | 7TN | | f7to | 7TO | | f7tp | 7TP | | f7tq | 7TQ | | f7tr | 7TR | | f7ts | 7TS | | f7tt | 7TT | | f7tu | 7TU | | f7tv | 7TV | | f7tw | 7TW | | f7tx | 7TX | | f7tx_2012 | 7TX | | f7tx_2015 | 7TX | | f7ty | 7TY | | f7ty_2012 | 7TY | | f7ty_2015 | 7TY | | f7tz | 7TZ | | f7ua_2007 | 7UA | | f7ua | 7UA | | f7ub_2007 | 7UB | | f7ub | 7UB | | f7uc | 7UC | | f7ud | 7UD | | f7uf | 7UF | | f7uh_2007 | 7UH | | f7uh | 7UH | | f7ui_2008 | 7UI | | f7ui | 7UI | | f7uj | 7UJ | | f7uk | 7UK | | f7ul | 7UL | | f7um | 7UM | | f7un | 7UN | | f7uo | 7UO | | f7up | 7UP | | f7uq | 7UQ | | f7ur | 7UR | | f7us | 7US | | f7ut | 7UT | | f7uu | 7UU | | f7uv | 7UV | | f7uw | 7UW | | f7ux | 7UX | | f7uy | 7UY | | f7uz | 7UZ | | f7va | 7VA | | f7vc | 7VC | | f7ve | 7VE | | f7vf | 7VF | | f7vg | 7VG | | f7vh | 7VH | | f7vi | 7VI |
Et pour info, j'ai généré la correspondance comme ça :
directory_in_str = "C:/Python Scripts/openfisca-france/openfisca_france/model/"
pathlist = Path(directory_in_str).glob('**/*.py')
for path in pathlist:
path_in_str = str(path)
with open(path_in_str, 'r') as content_file:
content = content + content_file.read()
cerfa_fields = {}
all_classes = re.findall(r"class (.+?)\(", content)
for c in all_classes:
c_content = re.findall(r"class " + c + "\((.*?)class", content.replace("\n", "\t") + "class")[0]
cerfa_field = re.findall(r'cerfa_field\s+=\s+"(\w+)"', c_content)
if cerfa_field:
cerfa_fields[c] = [cerfa_field[0]]
cerfa_field = re.findall(r'cerfa_field\s+=\s+{([^}]+)', c_content)
if cerfa_field:
cerfa_fields[c] = re.findall(r'"(\w+)"', cerfa_field[0])
for c in cerfa_fields:
for f in cerfa_fields[c]:
print(f"{c}\t{f}")
(ce n'est certainement pas le plus optimisé, mais en tout cas ça m'a donné l'information que je recherchais)
Bonjour,
Si cela peut servir à quelqu'un, voilà le code que j'ai utilisé pour récupérer la liste des cases (en listant toutes les classes qui héritent de Variable
). Ca permet en plus d'avoir la description en français de la case et le type de la variable :)
import pkgutil
from openfisca_france import model
from openfisca_france.model.base import Variable
# Import all modules from OpenFisca-France model (so that __subclass__ finds them)
__all__ = []
for loader, module_name, is_pkg in pkgutil.walk_packages(model.__path__):
__all__.append(module_name)
_module = loader.find_module(module_name).load_module(module_name)
globals()[module_name] = _module
variables = []
for cls in Variable.__subclasses__():
try:
cerfa = cls.cerfa_field
except AttributeError:
continue
if isinstance(cerfa, dict):
boxes = [cerfa[k] for k in sorted(cerfa)]
elif isinstance(cerfa, str):
boxes = [cerfa]
else:
raise ValueError("cerfa_field is neither a dict nor a string.")
variable = {
'boxes': boxes,
'type': cls.value_type.__name__,
'description': getattr(cls, 'label', None),
}
variables.append(variable)
Bonjour,
J'aimerais savoir s'il existe une liste de correspondance entre les champs d'entrée que l'on peut saisir dans l'API et leur équivalent CERFA dans une déclaration d'impôts.
Idéalement, j'aurais aimé pouvoir entrer mes infos telles qu'elles apparaissent sur ma déclaration (1AJ = 30000, 1BJ = 25000, ...) pour obtenir le résultat.
Merci d'avance.