A Python web application built with Flask and SQLite that allows users to track pet weights over time. The application can be easily modified to track any type of time-series data.
- Track multiple pets and their weights
- Support for different species with weight range validation
- Simple SQLite database for easy deployment
- Configurable database location
petweb/
├── config/
│ ├── config.py # Your configuration file (create from config_example.py)
│ └── config_example.py # Example configuration template
├── db/
│ └── setup_database.py # Database initialization and test data
└── petweb.db # SQLite database (created on first run)
The application uses the following database tables:
name
(TEXT): Pet nameweight
(REAL): Weight measurementdate
(DATE): Measurement date- Unique constraint on (name, date)
name
(TEXT): Pet namespecies
(TEXT): Type of petbirth_day
(DATE): Pet's birth dateactive
(BOOLEAN): Whether pet is activecolor
(TEXT): Pet's color- Unique constraints on name and (species, color)
species
(TEXT): Species namemin
(REAL): Minimum healthy weightmax
(REAL): Maximum healthy weight
name
(TEXT): Configuration namevalue
(TEXT): Configuration value- Unique constraint on name
This project is licensed under the MIT License.
- Flask: BSD-3-Clause License
- SQLite: Public Domain
Flask is a lightweight WSGI web application framework. It is designed to make getting started quick and easy, with the ability to scale up to complex applications.
Website: https://palletsprojects.com/p/flask/ License: BSD-3-Clause Copyright: 2010 by Pallets
BSD-3-Clause License:
Copyright 2010 Pallets
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.