Pybooru - Package for Danbooru/Moebooru API
Pybooru is a Python package to access to the API of Danbooru/Moebooru based sites.
- Version: 4.2.2
- Licensed under: MIT License
Dependencies
- Python: >= 2.7 or Python: >= 3.3
- requests
Installation
from Python Package Index (Pypi)
pip install --user Pybooru
Manual installation
git clone git://github.com/luquedaniel/pybooru.git
cd pybooru
pip install --user -r requirements.txt
sudo python setup.py build
python setup.py install
Examples of use
See More examples.
Danbooru
from pybooru import Danbooru
client = Danbooru('danbooru')
artists = client.artist_list('ma')
for artist in artists:
print("Name: {0}".format(artist['name']))
Login example
from pybooru import Danbooru
client = Danbooru('danbooru', username='your-username', api_key='your-apikey')
client.comment_create(post_id=id, body='Comment content')
Moebooru
from pybooru import Moebooru
client = Moebooru('konachan')
artists = client.artist_list(name='neko')
for artist in artists:
print("Name: {0}".format(artist['name']))
Login example
Default sites
from pybooru import Moebooru
client = Moebooru('konachan', username='your-username', password='your-password')
client.comment_create(post_id=id, comment_body='Comment content')
Not default sites
from pybooru import Moebooru
client = Moebooru('konachan.com', username='your-username', password='your-password',
hash_string='So-I-Heard-You-Like-Mupkids-?--{0}--')
client.comment_create(post_id=id, comment_body='Comment content')
Documentation
You can consult the documentation on Read the Docs
Status
| Platform | Master | Develop |
|---|---|---|
| Linux & OSX (Travis CI) | ||
| Windows (AppVeyor) |
Contributing
Feel free to contribute, take a look at CONTRIBUTING.
License
Metadata
Release files for Pybooru 4.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| Pybooru-4.2.2.tar.gz | 20.6 kB | Without provenance | Details for Pybooru-4.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| Pybooru-4.2.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for Pybooru-4.2.2-py2.py3-none-any.whl |
Total release size: 43.4 kB
Release files / Pybooru-4.2.2.tar.gz
| Download URL | Pybooru-4.2.2.tar.gz |
|---|---|
| Size | 20.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c3e31bb718753b8ee678fc7b87a9f6a9cf18747066f84efe245d3b25ecb2882f
|
|
BLAKE2b-256 checksum How to use checksums |
7518149e531601092779ad57e835090f94cdbc6276ec8e71e287c1edf51989da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6
|
Release files / Pybooru-4.2.2-py2.py3-none-any.whl
| Download URL | Pybooru-4.2.2-py2.py3-none-any.whl |
|---|---|
| Size | 22.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
a855cfa9dbb6d641d81d7bbeb378977345edc466e11b0c32346e9209f2ae4d3b
|
|
BLAKE2b-256 checksum How to use checksums |
9a0d1407f45337349f1614d203cbbf648260f364f8c356caf956040902cbdf78
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6
|
Security for Pybooru 4.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.