Skip to main content

An unofficial API into WeightBot.com

Project description

This module is an unofficial API into WeightBot. Right now it’s very simple because WeightBot is simple.

Here’s an example of how you can use it:

from weightbot import WeightBot
from pprint import pprint

wb = WeightBot('me@example.com', 'my_password')
data = wb.get_data()

pprint(data)

And then running that program might result in:

[{'date': datetime.date(2009, 8, 6), 'kilograms': 91.2, 'pounds': 201.1},
 {'date': datetime.date(2009, 8, 7), 'kilograms': 90.1, 'pounds': 198.7},
 {'date': datetime.date(2009, 8, 8), 'kilograms': 90.0, 'pounds': 198.5},
 {'date': datetime.date(2009, 8, 9), 'kilograms': 89.8, 'pounds': 198.0},]

You could also get at the raw csv file by doing wb.get_csv_data.

Hope you enjoy it!

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

weightbot-0.1.tar.gz (2.8 kB view details)

Uploaded Source

File details

Details for the file weightbot-0.1.tar.gz.

File metadata

  • Download URL: weightbot-0.1.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for weightbot-0.1.tar.gz
Algorithm Hash digest
SHA256 bcac937b371a79581f484791a68d922db60b0eddb0c3c572897b948aec2d73fd
MD5 490bd9ee017200e4849519a4d55499e0
BLAKE2b-256 2b50a708729590f943ba0309e9280bd50636407c094afb8caa2cb23c6c7fb163

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page