Code Monkey home page Code Monkey logo

probe's Introduction

Probe

https://badge.fury.io/py/probe.png https://pypip.in/d/probe/badge.png

Probe lets you ship personal metrics (feelings, energy level, productivity) to external services for analysis.

Features

  • Keep track of numbers, ratings, hours, and yes/no questions.
  • Ship personal metrics to multiple services.
  • Schedule how often you want to collect data, it'll keep track.

Getting Started

Run probe init after installing. Then look at the "configuration example" below. To anwer questions, run probe answer.

Configuration Example

questions:
  - sleep.hours:
    text: How long did you sleep last night? (in hours)
    unit: hours
    interval: every day

  - energy:
    text: what is your energy level right now?
    unit: rating
    lower: 0
    upper: 10

outputs:
  - stdout:
    level: debug

  - tempodb:
    key: ...
    secret: ...

Save this as ~/.probe_config and run probe, and you'll get some nice output asking you questions at appropriate times. Run it as many times as you like, the questions will only be asked once per appropriate period.

Available Units:

  • Hours (key: hours) takes upper and lower limit (lower defaults to 0)
  • Rating (key: rating) takes upper and lower limit. (default to 10 and 0, respectively)
  • Number (key: number) keep track of arbitrary floating-point numbers.
  • Yes/No (key: yesno) answers a yes/no question. (accepts yes/no, 0/1, and true/false or shortened versions like t/f.)

Available Outputs:

  • StdOut (key: stdout) accepts a "level" argument - currently info or debug.

  • TempoDB (key: tempodb) accepts any arguments passed to tempodb.Client but you'll probably only need to know key and secret. Get these for a database in your account.

    You'll need to install with the "tempodb" extra (pip install probe[tempodb]) for this to work. You could also just install the tempodb client, but installing with the extra ensures you'll get future dependencies.

probe's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

splurge831

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.