Find out how happy you are
Project description
happymeter :blush:
Find out how happy you are
ML model based on Somerville Happiness Survey Data Set.
To run locally (from root folder):
- create virtual environment:
python -m venv .venv
- install dependencies:
poetry install --no-root
- launch backend:
poetry run uvicorn src.app.main:app --port=8080 --reload
- launch front-end:
poetry run streamlit run src/streamlit/ui.py --server.port 8501
- pre-commit:
poetry run pre-commit run --all-files
- unit tests:
poetry run pytest --cov=. --cov-report=html
- coverage badge:
coverage report
coverage xml -o ./reports/coverage/coverage.xml
coverage html
move /y .\htmlcov\index.html .\reports\coverage
genbadge coverage --output-file reports/coverage/coverage-badge.svg
- docker backend:
docker build -t backend-image -f Dockerfile.backend .
docker run --name backend-container -p 8080:8080 --rm backend-image
- docker frontend:
docker build -t frontend-image -f Dockerfile.frontend .
docker run --name frontend-container -p 8501:8501 --rm frontend-image
- docker compose:
docker compose build
docker compose up
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
happymeter-1.1.0.tar.gz
(4.8 kB
view details)
Built Distribution
File details
Details for the file happymeter-1.1.0.tar.gz
.
File metadata
- Download URL: happymeter-1.1.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7da5b4a3f6ed0aa6f7b5c83b4bb57b7454dc67a92ac5bb44a3625ded363df05e |
|
MD5 | ff086cea1b447b5109c09016919e5402 |
|
BLAKE2b-256 | ddc48cd17b5ce6cbc8a9c3a23a4b1bec95cd917ed1d64c8f8c6436feaf2f4f91 |
File details
Details for the file happymeter-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: happymeter-1.1.0-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a101a46edd214de823d262ea558832d201cb5d1b63daf20fde9ff9e7001ab518 |
|
MD5 | 10935787aa05b9add5fbf486c7f5bc4c |
|
BLAKE2b-256 | df3dd4cafcb18defa02c865b910efb20614703c7e0cc0037300122343f86e654 |