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.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pytinybeans-1.1.tar.gz.
File metadata
- Download URL: pytinybeans-1.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac820eff1ee7c1a34deee586ea6428eccdccf0ce4c7f118b9641dd0356fa216e
|
|
| MD5 |
82f508816e14e898fa8598760476a799
|
|
| BLAKE2b-256 |
d1a31c34cb630d1ffdfd10e20407ca2d4edb029e9ec4335761a193032deb2d80
|
File details
Details for the file pytinybeans-1.1-py3-none-any.whl.
File metadata
- Download URL: pytinybeans-1.1-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3566b1b5a855b0dbe1848ef7ba1e103a31d171d7d4195aeccf2544c42e663a35
|
|
| MD5 |
7ef790558698fedafa7f8e79499582e4
|
|
| BLAKE2b-256 |
f21da95453e7785b004789067a2ee57ad6a1d3de334831367eeaa86c92210126
|