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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size pytinybeans-1.1-py3-none-any.whl (3.7 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Filename, size pytinybeans-1.1.tar.gz (3.5 kB) | File type Source | Python version None | Upload date | Hashes View |
Close
Hashes for pytinybeans-1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3566b1b5a855b0dbe1848ef7ba1e103a31d171d7d4195aeccf2544c42e663a35 |
|
MD5 | 7ef790558698fedafa7f8e79499582e4 |
|
BLAKE2-256 | f21da95453e7785b004789067a2ee57ad6a1d3de334831367eeaa86c92210126 |