This project shows how we can translate the Atoti notebook - French presidential election 2022 - into an actual project, ready for deployment into Heroku.
It is adapted from the Atoti project template.
On top of the atoti
package, it comes with:
- Dependency management with Poetry
- Settings management with Pydantic
- Testing with pytest
- Type checking with mypy
- Formatting with Black and isort
- Linting with Ruff
-
Install the dependencies:
poetry install
To get a list of the commands that can be executed to interact with the project, run:
poetry run app --help
A few examples:
-
Start the app:
poetry run app start
-
Reformat the code:
poetry run app format
This version includes authentication which requires the locked version of Atoti.
Authentication is required in order to control access to the web application and prevent overwriting of dashboards by unauthorized personnel.
Refer to create_users.py for the authorized users and their access rights.
You can register online for an evaluation license and check out how to unlock all features of Atoti.
ATOTI_LICENSE
: contains the Base64 encoded content of your license key file that is required to start the application.
Refer to Atoti documentation on how to set up the license key.
This project also includes the modifications required to deploy it to Heroku.
Click on the button below to deploy this project to Heroku:
Note: to deploy a project started from this template, remember to change the repository
value in app.json.