beddit-python
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
Metadata
Release files for beddit-python 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| beddit-python-0.1.1.tar.gz | 8.7 kB | Without provenance | Details for beddit-python-0.1.1.tar.gz |
Release files / beddit-python-0.1.1.tar.gz
| Download URL | beddit-python-0.1.1.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
24895d8a2643222196f78e561d887a8b9ffe597b0043030506bc03b9c7146ede
|
|
BLAKE2b-256 checksum How to use checksums |
818c80554ec01399ca46e6a93f03d9f1e3c894dd50dfee00dd90df086c09b458
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for beddit-python 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.