Giter Site home page Giter Site logo

tally's Introduction

Tally - A Simple Daily Counter

Tally is used to count things. The count resets every day. This is useful if you consume an API with a daily rate limit, and they don't give you any way to check it.

Installation

First, create a virtualenv and install the package.

$ virtualenv --distribute /www/tally
$ source /www/tally/bin/activate
$ git clone [email protected]:Mapkin/tally.git
$ cd tally
$ pip install -e .

Migrate the database, and make sure you add a superuser for the admin interface.

$ tally syncdb --migrate

If you're running Ubuntu, you can set Tally up as an Upstart service.

$ vim extra/tally.conf
$ sudo cp extra/tally.conf /etc/init
$ sudo ln -s /lib/init/upstart-job /etc/init.d/tally
$ sudo service tally start

Setup

The Django admin interface is used to create API clients and counters.

API

Tally uses basic access authentication over SSL. Pass your API key as the username field, and leave the password field blank.

To increment a counter:

$ curl -X PATCH \
       -u 8ZrTSskX1UPHqUJeqXwN: \
       https://tally.example.com/api/v1/counters/TestCounter

To read a counter:

$ curl -X GET \
       -u 8ZrTSskX1UPHqUJeqXwN: \
       https://tally.example.com/api/v1/counters/TestCounter

tally's People

Contributors

jwatson avatar

Stargazers

 avatar

Watchers

 avatar James Cloos avatar Marc Regan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.