Beeminder power tools library
Project description
pyminder
I use Beeminder in a lot of my Python projects, and I find myself writting the same helper functions multiple times. This repository will serve as a place for me to store this functionality and make it accessible to other people.
Installation
pip3 install --user pyminder
Usage
import time
from pyminder.pyminder import Pyminder
pyminder = Pyminder(user='[your username]', token='[your api token]')
goals = pyminder.get_goals()
goal = goals[0]
# Goal objects expose all API data as dynamic properties.
# http://api.beeminder.com/#attributes-2
slug = goal.slug
rate = goal.rate
# Goal objects also implement a handful of helper functions.
# Note: These functions probably contain bugs! Issues & pull requests welcome.
# https://github.com/narthur/pyminder/blob/master/pyminder/goal.py
now = time.time()
sum_ = goal.get_data_sum(now)
needed = goal.get_needed(now)
Links
Development
- Set up a virtual environment in PyCharm so you aren't using the global Python env. This will allow you to avoid conflicts of dependencies.
Deployment
- Update version number in
setup.py
- semantic versioning chmod +x deploy.sh
./deploy.sh
Information
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
pyminder-1.1.1.tar.gz
(5.9 kB
view details)
Built Distribution
File details
Details for the file pyminder-1.1.1.tar.gz
.
File metadata
- Download URL: pyminder-1.1.1.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
031a652d8782a23adb2be3dbe7e98741ede600a45c68b2b22d6dcc8d51425067
|
|
MD5 |
5d4b9076f177e7bea332d22ff9fa69d6
|
|
BLAKE2b-256 |
45cf0083522f5134404ac693c62f496fc7d2e82f8d0a478729236c31b3e1b065
|
File details
Details for the file pyminder-1.1.1-py3-none-any.whl
.
File metadata
- Download URL: pyminder-1.1.1-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
a3d2ca919fcf1e59319dbae506c27a610b56fdf702d2832082cc6a2441b5b157
|
|
MD5 |
a3bda45330a92435fc577d89ff84e675
|
|
BLAKE2b-256 |
969efb89497cd2a7d0e6cff3c73a7b22c9679f053d5b3dc698b7f09b832a5169
|