Fetches the latest edition of given dataset.
The api fetches bydelsfakta data based on geography.
- Install Serverless Framework
- Install Serverless plugins:
make init
- Install Python toolchain:
python3 -m pip install (--user) tox black pip-tools
- If running with
--user
flag, add$HOME/.local/bin
to$PATH
- If running with
Code is formatted using black: make format
Tests are run using tox: make test
For tests and linting we use pytest, flake8 and black.
Deploy to dev is automatic via GitHub Actions, while deploy to prod can be triggered with GitHub Actions via dispatch. You can alternatively deploy from local machine with: make deploy
or make deploy-prod
.
Optional parameter geography, e.g. geography=01
The function returns the data from a bydelsfakta.