Python wrapper for the Inkbunny API
Project description
Inkbunny
A Python wrapper for the Inkbunny API.
DISCLAIMER
I have no idea what I'm doing!
- I'm not a programmer.
- I have next to no experience with Python (or any other language for that matter).
- I have no affiliation with Inkbunny.
- This project exists because I couldn't find a Python wrapper anywhere else.
- This is still very much a work in progress.
- I'm trying my best, but my best isn't very good.
Use this wrapper at your own risk
Installation
pip install inkbunny
Requirements
- Python ≥ 3.10.2
- Requests
- platformdirs (for now, at least)
Usage
TODO
from inkbunny import Inkbunny
ib = Inkbunny()
details = ib.submission_details(submission_ids=['14576', '14579'])
print(details)
ib = Inkbunny('myusername')
submission_results = ib.search('fox')
# first time login
ib = Inkbunny('myusername', password='mypassword')
print(ib.unread_submissions())
with Inkbunny() as ib:
bunnies = ib.search('bunny', results_count=1000)
print(bunnies)
ib = Inkbunny('myusername')
ib.new_submission(
files=['path/to/my/file/dog1.png', 'path/to/my/file/dog2.png'],
title='Good dog',
desc='A drawing I made',
keywords=['male', 'dog', 'good'],
type_='picture')
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
inkbunny-0.0.3.tar.gz
(9.1 kB
view hashes)