Skip to main content

A wrapper for Danbooru API

Project description

AppleBooru

AppleBooru is a Python library for interacting with the Danbooru API. Provides a simple and easy-to-use interface to help developers access and manipulate posts and wiki pages on Danbooru.

Key Features

  • Client: All requests to Danbooru API are through the client.
  • Post API: Easily get posts.
  • Wiki Page API: Get wiki pages on Danbooru, support search options and fuzzy.

Installation

pip install applebooru

Usage Example

from applebooru import AppleBooruClient

# Initialize the client
client = AppleBooruClient(api_key="your_api_key", username="your_username")

# Retrieve posts
posts = client.posts.get_posts(other_names_match='史尔特尔', limit=10)
for post in posts:
    print(post)

# Retrieve wiki pages
wiki_pages = client.wiki_pages.get_wiki_pages(title='surtr_(arknights)', only=['id', 'title'], limit=5)
for page in wiki_pages:
    print(page)

Dependencies

  • Python 3.6+
  • requests

Target Audience

  • Developers who need to interact with the Danbooru API
  • Users who want to automate management of content on Danbooru

License

MIT License

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

applebooru-1.0.0b3.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

applebooru-1.0.0b3-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file applebooru-1.0.0b3.tar.gz.

File metadata

  • Download URL: applebooru-1.0.0b3.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.6

File hashes

Hashes for applebooru-1.0.0b3.tar.gz
Algorithm Hash digest
SHA256 7628056e7503c3b7a77691cbd87ac17716e3f83e204d10214a245925efc582b2
MD5 73e7364d86f1fd94bbdc07cd2c113a12
BLAKE2b-256 19fedf3c0f7f12150ae7dfc917df6454e2eb6a190148dfffa4c67e0ff6c8ecca

See more details on using hashes here.

File details

Details for the file applebooru-1.0.0b3-py3-none-any.whl.

File metadata

  • Download URL: applebooru-1.0.0b3-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.6

File hashes

Hashes for applebooru-1.0.0b3-py3-none-any.whl
Algorithm Hash digest
SHA256 12ceeae849c46ceca8b2923bd913cbbb56def28d83a98ecd29369e2e251ae6f5
MD5 5fc59e127069df188eefd6b088d4f020
BLAKE2b-256 589bbf37caaddcf99bc73cf5e1d472d07bd14110bce53e8e22c960aa86ed03e5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page