{"id":41371110,"url":"https://github.com/openfisca/openfisca-france-local","last_synced_at":"2026-01-23T09:31:30.930Z","repository":{"id":43732843,"uuid":"148479377","full_name":"openfisca/openfisca-france-local","owner":"openfisca","description":"Extension OpenFisca pour nos partenariats avec les collectivités territoriales","archived":false,"fork":false,"pushed_at":"2026-01-21T10:29:00.000Z","size":4601,"stargazers_count":3,"open_issues_count":3,"forks_count":10,"subscribers_count":14,"default_branch":"master","last_synced_at":"2026-01-21T21:27:01.366Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openfisca.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-09-12T12:48:04.000Z","updated_at":"2026-01-21T10:02:02.000Z","dependencies_parsed_at":"2023-09-27T18:13:56.164Z","dependency_job_id":"12541a3c-a6c7-4071-9244-d5f77b11e5d1","html_url":"https://github.com/openfisca/openfisca-france-local","commit_stats":null,"previous_names":[],"tags_count":93,"template":false,"template_full_name":null,"purl":"pkg:github/openfisca/openfisca-france-local","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfisca%2Fopenfisca-france-local","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfisca%2Fopenfisca-france-local/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfisca%2Fopenfisca-france-local/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfisca%2Fopenfisca-france-local/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openfisca","download_url":"https://codeload.github.com/openfisca/openfisca-france-local/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfisca%2Fopenfisca-france-local/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28686399,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T05:48:07.525Z","status":"ssl_error","status_checked_at":"2026-01-23T05:48:07.129Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-23T09:31:29.688Z","updated_at":"2026-01-23T09:31:30.910Z","avatar_url":"https://github.com/openfisca.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Extension OpenFisca pour nos partenariats avec les collectivités territoriales\n\n[![Créer un environnement de travail dans Gitpod](https://camo.githubusercontent.com/1eb1ddfea6092593649f0117f7262ffa8fbd3017/68747470733a2f2f676974706f642e696f2f627574746f6e2f6f70656e2d696e2d676974706f642e737667)](https://gitpod-referer.now.sh/api/gitpod-referer-redirect)\n\n\n## Introduction\n\n[OpenFisca](https://www.openfisca.fr/) est un logiciel libre de micro-simulation. Ce dépôt contient la modélisation des aides locales françaises. Celles-ci enrichissent le modèle national de la France, [openfisca-france](https://github.com/openfisca/openfisca-france#openfisca-france).\n\nPour plus d'information sur les fonctionnalités et la manière d'utiliser OpenFisca, vous pouvez consulter la [documentation générale](https://openfisca.org/doc/).\n\n\n## Installation\n\nCe paquet requiert [Python 3.9 ou supérieur](https://www.python.org/downloads/) et [pip](https://pip.pypa.io/en/stable/installation/).\n\nAfin d'installer l'extension `openfisca-france-local`, lancez une fenêtre de terminal et suivez les instructions suivantes pour en récupérer le code source :\n\n```shell\ngit clone git@github.com:openfisca/openfisca-france-local.git\n```\n\nPuis, pour se rendre dans ce dossier `openfisca-france-local`\n\n```shell\ncd openfisca-france-local\n```\n\nIl y a plusieurs moyens de gérer ses environements (venv, docker, etc...) pour ne pas polluer son environement ou celui d'autres projets, voici une proposition avec `venv` :\n\n```shell\npython -m venv .venv # Creation de l'environement\nsource .venv/bin/activate # Activation de l'environement\n```\n\nInstallation d'`openfisca-france-local` :\n\n```shell\nmake install\n```\n### Lancement des tests\n\n#### Tester le bon fonctionnement d'OpenFisca\nUne fois l'installation terminée, vous devriez pouvoir la tester avec les commandes suivantes :\n\n```shell\nopenfisca test tests/test_dispositif.yml --country-package openfisca_france --extension openfisca_france_local\n```\n\nOu plus simplement :\n\n```shell\nopenfisca_local_test tests/test_dispositif.yml\n```\n\nCeci exécute un test `test_dispositif.yml` faisant appel au module `openfisca_france_local`. Vous devriez obtenir un résultat se terminant par `1 passed in 0.0xs` tel que dans cet exemple :\n\n```shell\n=================== test session starts ===================\nplatform linux -- Python 3.9.5, pytest-7.4.0, pluggy-1.2.0\nrootdir: /home/user/dev/Aides-Jeunes/repos/openfisca-france-local\ncollected 2 items\n\ntests/test_dispositif.yml ..\n==================== 1 passed in 0.01s ====================\n```\n\n:tada: openfisca-france-local est prêt à être utilisé !\n\n#### Lancer les tests :\n\nPour lancer tous les tests, vous pouvez utiliser :\n```shell\nmake test\n```\n\nPour lancer un dossier ou fichier de test spécifique : |\n\n```shell\nopenfisca_local_test tests/Chemin/Vers/Dossier-fichier/cible\n```\n\n### Rédaction des formules et tests\n\nVous trouverez un exemple d'aide dans le fichier [communes/alfortville/noel_enfants.py](https://github.com/betagouv/openfisca-france-local/blob/master/openfisca_france_local/communes/alfortville/noel_enfants.py#L57-L71), ainsi que le fichier de tests associé, [tests/communes/alfortville/noel_enfants.yml](https://github.com/betagouv/openfisca-france-local/blob/master/tests/communes/alfortville/noel_enfants.yml#L50-L56). Les paramètres nécessaires au calcul se trouvent quant à eux dans le fichier [openfisca_france_local/parameters/communes/alfortville.yml](https://github.com/betagouv/openfisca-france-local/blob/master/openfisca_france_local/parameters/communes/alfortville.yml).\n\nPour ajouter des formules et tests, créez simplement des fichiers .py et .yml à l'intérieur du répertoire.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenfisca%2Fopenfisca-france-local","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenfisca%2Fopenfisca-france-local","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenfisca%2Fopenfisca-france-local/lists"}