narthur / pyminder Goto Github PK
View Code? Open in Web Editor NEWBeeminder library for Python
License: MIT License
Beeminder library for Python
License: MIT License
Currently it is not obvious to me how to do this using this library
I found
pyminder/pyminder/beeminder.py
Line 35 in 36a7d6f
pyminder = Pyminder(user='[your username - dummy field]', token=token())
pyminder._beeminder.update_goal("ping_babcia", title="ping_babcia_description")
works, but is using internal _
prefixed things.
And to edit arbitrary parameters following terribleness works, but I hope for something nicer.
pyminder = Pyminder(user='[your username - dummy field]', token=token())
#pyminder._beeminder.update_goal("ping_babcia", title="ping_babcia_description")
goal_name = "ping_babcia"
endpoint = f'users/{pyminder._beeminder._user}/goals/{goal_name}.json'
data = {"fineprint": "test fineprint", "title": "ping_babcia_description"}
pyminder._beeminder._call(endpoint, data=data, method="PUT")
And thanks for a publishing this library, it saved me some time that would be needed to write it on my own!
I'm trying to update a goal if and only if there is no data for a specific date.
When I run
dummy3.stage_rate_change(1, 1586815200, 1586820000)
dummy3.commit_road()
I get the following output:
Exception: API request failed with code 422: {"errors":{"message":"Error parsing params (roadall)"}}
Am I using stage_rate_change
correctly? Is it correct to input the start and end timestamps as Unix timestamps?
Not sure is this simply a bug, or is pyminder-0.6.2 released with a too low minimum Python version
python run.py
Traceback (most recent call last):
File "run.py", line 2, in <module>
from pyminder.pyminder import Pyminder
File "/home/mateusz/.local/lib/python3.5/site-packages/pyminder/pyminder.py", line 7
_beeminder: Beeminder = None
^
SyntaxError: invalid syntax
python --version
Python 3.5.2
Can you consider adding topics to the repository description? For this repo "beeminder" would be a good fit.
I am unable to make PR for this, as it is not a part repository but repository metadata managed by github.
For example see https://github.com/openstreetmap/openstreetmap-website - it has following tags:
See https://blog.github.com/2017-01-31-introducing-topics/ and https://help.github.com/articles/about-topics/ for a description of topics (it is a name that Github used for tags/categories)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.