Skip to main content

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

  • REST-ful API

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


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.10.tar.gz (200.7 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for habits-0.0.10.tar.gz
Algorithm Hash digest
SHA256 8e136d144f4d7cef728c1731dacee39219dca8dee5d716fa38ecf7efba54cdf5
MD5 ff0b9b20f3624efde57870803685027f
BLAKE2b-256 7eb5144b9fbc0e4a4173d1f4945d1264e1fa0bd86e1686fcc6c41bd27f559228

See more details on using hashes here.

Supported by

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