An app for tracking your health and training progress.
Project description
Valens
/ˈva.lens/ [ˈväːlɛns] lat. strong, vigorous, healthy
Features
- Track your training progress
- Define training routines
- Log repetitions, weight, time and rating of perceived exertion (RPE) for each set
- Measure your training execution using a stopwatch, timer or metronome
- Assess the progress for each routine and exercise
- Keep track of your body weight
- Calculate and log your body fat based on the 3-site or 7-site caliper method
- Monitor your menstrual cycle (if you have one 😉)
Installation
pip install valens
Demo Mode
To get a first impression of Valens, the app can be run in demo mode.
valens demo
The app can be accessed on http://127.0.0.1:5000/
. A temporary database with random example data is used. All changes are non-persistent. Adding --public
to the command line makes the app available to other devices on your network.
Configuration and Running
A configuration file must be created before running the app for the first time.
valens config
The environment variable VALENS_CONFIG
must be set to the absolute path of the created config file.
Local Network
The development server can be used to provide the app for your local computer or local network.
VALENS_CONFIG=$PWD/config.py valens run
By default, the app is only accessible on your local computer at http://127.0.0.1:5000/
. If you trust the users in your network, you can make the server publicly available adding --public
to the command line:
VALENS_CONFIG=$PWD/config.py valens run --public
Public Network
The development server is not intended for production use. Please consider the deployment options for providing the app in a public network.
Example Configuration: nginx and uWSGI
The following configuration binds the app to /valens
.
/etc/uwsgi/valens.ini
[uwsgi]
master = true
plugins = python
socket = /run/uwsgi/%n.sock
manage-script-name = true
mount = /valens=valens.web:app
uid = http
gid = http
env = VALENS_CONFIG=/opt/valens/config.py
/etc/nginx/nginx.conf
[...]
http {
[...]
server {
[...]
location = /valens { rewrite ^ /valens/; }
location /valens { try_files $uri @valens; }
location @valens {
include uwsgi_params;
uwsgi_pass unix:/run/uwsgi/valens.sock;
}
}
}
License
This project is licensed under the terms of the AGPL-3.0 license and includes third-party software.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file valens-0.2.0.tar.gz
.
File metadata
- Download URL: valens-0.2.0.tar.gz
- Upload date:
- Size: 1.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 176afca3882a8ed0459556e05078106dd421d628e9020c7c8ab1a598912a85ad |
|
MD5 | c2912d1592c8e54dccd934a08c547ec3 |
|
BLAKE2b-256 | 7c94118823868f6fc9572a96100405e92a53f605f0d5c058d2fe4ab4c1eeed8d |
File details
Details for the file valens-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: valens-0.2.0-py3-none-any.whl
- Upload date:
- Size: 1.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f4fb8a8857b8382427f51c6180b3d37895494370a32e527cac543bf3bafe918 |
|
MD5 | 4523956324702fcd6deb07bc3ac12bb0 |
|
BLAKE2b-256 | fa86935e0353235c8a718e01c2b67276d766e198403b2146b33cc6b465e3cc41 |