beddit-python 0.1.1

Last updated:

0 purchases

beddit-python 0.1.1 Image
beddit-python 0.1.1 Images
Add to Cart

Description:

bedditpython 0.1.1

API Client for Beddit in Python.
Read API Documentation for detail.

Installation
pip install beddit-python


Usage
List sleep scores per day
from datetime import datetime
from beddit.client import BedditClient

client = BedditClient('[email protected]', password)

start_date = datetime(2016, 7, 1)
end_date = datetime(2016, 7, 31)

sleeps = client.get_sleeps(start=start_date, end=end_date)
for sleep in sleeps:
print(sleep.date.strftime('%Y-%m-%d'), sleep.property.total_sleep_score)
2016-07-01 75
2016-07-02 92
....


Supported Python
Python 2.7, 3.3, 3.4, 3.5


LICENSE
MIT License

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.