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.0b2.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.0b2-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: applebooru-1.0.0b2.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.0b2.tar.gz
Algorithm Hash digest
SHA256 fe522ebef94891c1cbd5a9758747f29b01b5df97d8275d168d76847da17bae44
MD5 ab58cf28134b2a0fc60f400882c0980e
BLAKE2b-256 4389d9c281db3d207584af3c5255b4e295ef4f1aa677b9f0c038ed2606c67a55

See more details on using hashes here.

File details

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

File metadata

  • Download URL: applebooru-1.0.0b2-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.0b2-py3-none-any.whl
Algorithm Hash digest
SHA256 acab96d03106b75be612a3de30b6f70e9d9db90bdd13ee5a5b3b3dc46fdcd931
MD5 2574a74f0c85cd2ece8f4c7b4f9bdf91
BLAKE2b-256 61201d062e4c6ac2edd0e8408ba192804cb18d21af66e06cd409f2944d9aad8b

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