https://github.com/openfisca/openfisca-senegal
Senegalese tax and benefit system for OpenFisca
https://github.com/openfisca/openfisca-senegal
Last synced: 4 months ago
JSON representation
Senegalese tax and benefit system for OpenFisca
- Host: GitHub
- URL: https://github.com/openfisca/openfisca-senegal
- Owner: openfisca
- License: agpl-3.0
- Created: 2016-10-31T13:52:32.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-06-27T13:48:07.000Z (almost 2 years ago)
- Last Synced: 2025-10-29T04:52:41.855Z (7 months ago)
- Language: Jupyter Notebook
- Size: 9.37 MB
- Stars: 7
- Watchers: 8
- Forks: 3
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# OpenFisca Sénégal
Senegalese tax and benefit system for OpenFisca
> Warning: this is highly experimental!
## OGP Paris Hackathon
This work was done during the first [OGP hackathon in Paris](https://en.2016.ogpsummit.org/osem/conference/ogp-summit/)
See the [Jupyter Notebook](/notebooks/hackathon_ogp_paris.ipynb) or [](https://mybinder.org/v2/gh/openfisca/senegal/master?filepath=notebooks%2Fhackathon_ogp_paris.ipynb).
## Dakar Hackathon for technological innovation for the Senegalese tax administration
This work was done during the first [hackathon in Dakar for Innovation and Collaboration for the Senegalese Tax System](http://www.imf.org/en/News/Events/Hackathon-Technological-Innovation-for-the-Senegalese-Tax-Administration)
See the [Jupyter Notebook](/notebooks/Senegalese%20tax%20and%20benefit%20system%20from%20scratch.ipynb) or [](https://mybinder.org/v2/gh/openfisca/senegal/master?filepath=notebooks%2FSenegalese%20tax%20and%20benefit%20system%20from%20scratch.ipynb).
## Links
- http://www.gouv.sn/IMG/pdf/cgi2013.pdf
- http://www.impotsetdomaines.gouv.sn/sites/default/files/formulaires/ir_declarationsanspagedegarde.pdf
- http://www.impotsetdomaines.gouv.sn/fr/simulateur-dimpots
## API
### Installation
```sh
make install # needs to be executed in the folder containing the Makefile
```
### Testing
```sh
make test # needs to be executed in the folder containing the Makefile
```
### Run with the Web API
```sh
pip install OpenFisca-Web-API[paster]
paster serve api/api_config.ini
```
To test with a sample file:
```sh
curl http://localhost:2000/api/1/calculate -X POST --data @./api/test.json --header 'Content-type: application/json'
```