Skip to main content

A lightweight habit tracker with a simple REST API.

Project description

A lightweight habit tracker with a simple REST API.

Features

  • Support for SQLite, MySQL, and Postgres databases

  • Simple web interface

  • REST-ful API

Installation and Usage

pip install habits # install via pip
habits # start the web server, browse to localhost:5000

API

Base URL: http://<your-habits-instance-hostname>/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

Install from Source

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 habits/server.py

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

habits-0.0.20.tar.gz (233.6 kB view details)

Uploaded Source

File details

Details for the file habits-0.0.20.tar.gz.

File metadata

  • Download URL: habits-0.0.20.tar.gz
  • Upload date:
  • Size: 233.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for habits-0.0.20.tar.gz
Algorithm Hash digest
SHA256 057a4a9df8b55b095b9db69b8edba9dd08154cb18e6598677aa47c0dd14bc095
MD5 564760d4afa225e552d51176d932774b
BLAKE2b-256 5ddff204e6c17c3941b158970fec79e907e3f6def4a6d94f1f859df7f164fefc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page