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('user@example.com', 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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
beddit-python-0.1.1.tar.gz
(8.7 kB
view details)
File details
Details for the file beddit-python-0.1.1.tar.gz.
File metadata
- Download URL: beddit-python-0.1.1.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24895d8a2643222196f78e561d887a8b9ffe597b0043030506bc03b9c7146ede
|
|
| MD5 |
8a3b713af15b908db13acc961e40aa0b
|
|
| BLAKE2b-256 |
818c80554ec01399ca46e6a93f03d9f1e3c894dd50dfee00dd90df086c09b458
|