A lightweight habit tracker with a simple REST API.
Project description
A lightweight habit tracker.
Features
Support for SQLite, MySQL, and Postgres databases
Simple web interface
Installation
git clone https://github.com/csu/habits.git cd habits # make a Python virtual environment, if you want pip install -r requirements.txt bower install python server.py
API
Base URL: /api/ Endpoints: GET /habits - Get all habits GET /habits/names - Get a mapping of habit slugs to names GET /habits/<habit_slug> - Get the slug and name for a habit POST /habits/<habit_slug> - Make a new habit GET /entries/export - Get all entries GET /entries/<YYYY-MM-DD date string> - Get entry for a day POST /entries/<YYYY-MM-DD date string> - Set entry for a day POST /entries/<YYYY-MM-DD>/<habit_slug> - Set the value for a habit on a day
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
habits-0.0.14.tar.gz
(233.4 kB
view details)
File details
Details for the file habits-0.0.14.tar.gz.
File metadata
- Download URL: habits-0.0.14.tar.gz
- Upload date:
- Size: 233.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b6365a1498e2cd5a0c8e140298e0733a5b76c75250c4e653ae4bcda3bd89e38
|
|
| MD5 |
61988226ad3c04a715c9f1ad624518f2
|
|
| BLAKE2b-256 |
4eb3833a4002aca83c4f690285b1257983f996fd9515846d65fa536ceac7fd71
|