https://github.com/adhadse/taxapi
API for managing tax by accountant, tax payer and admin
https://github.com/adhadse/taxapi
flask flask-api flask-restful pytest python python3
Last synced: 2 months ago
JSON representation
API for managing tax by accountant, tax payer and admin
- Host: GitHub
- URL: https://github.com/adhadse/taxapi
- Owner: adhadse
- License: apache-2.0
- Created: 2022-09-21T06:50:47.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-09-21T06:55:24.000Z (almost 4 years ago)
- Last Synced: 2025-04-04T17:32:24.486Z (over 1 year ago)
- Topics: flask, flask-api, flask-restful, pytest, python, python3
- Language: Python
- Homepage:
- Size: 43.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TaxAPI in Flask
A Flask API example with PyTest
Currently, this is a bare-bone implementation with Tax Payer, Tax Accountant, and Admin
models written. Apart from that, I have also written validators for the above models +
for Country and State (storing individual tax value).
I have also set up the API end points for adding Tax Payer, Tax Accountant, Country
and State and modifying them. Plus some perfectly running unittests.
I wasn't able to fulfill each and every requirements because of time constraints.
I also wasn't able to test the docker file as Docker seems to have issue on my latop. So instead run the unittests as per these instructions for the time being.
To run unit test, first install requirements.
```
pip install -r requirements.txt
```
and then run unittests using this command (doesn't require running acutal instance)
```
py -m unittest discover test -p '*_test.py'
```
Incase you want to run an actual server:
```
py manage.py db init
py manage.py db migrate
py manage.py db upgrade
py manage.py run
```