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 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page