Skip to main content

Python library to interact with the Tinybeans API

Project description

Tinybeans API Wrapper (unofficial)

This library will allow you to interact with Tinybeans.

Installation

pip install pytinybeans

Examples

In [1]: from pytinybeans import PyTinybeans

In [2]: tb = PyTinybeans()

In [3]: tb.login('<username>', '<password>')

In [4]: print(tb.children)
[<Jane Doe 2019-10-16 00:00:00>]

In [5]: entry = tb.get_entries(tb.children[0])[0]

In [6]: entry.blobs
Out[6]:
{'o': 'https://tinybeans.com/pv/e/<url>/<url>.jpg',
 'p': 'https://tinybeans.com/pv/e/<url>/<url>.jpg'}

In [7]: entry.comments[0].text
Out[7]: 'Ok, I got this!'

Notes

This isn't a wonderful example of API design, and there's some weirdness like using .format() in some places vs old style string replacement in others. In my defense, I was extremely sleep deprived, but it's functional :)

Project details


Download files

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

Source Distribution

pytinybeans-1.1.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

pytinybeans-1.1-py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 3

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