Skip to main content

A wrapper for the Hyena API.

Project description

Hyena API Wrapper

❓| Hyena API

The Hyena API is an API made by Donut#4427 for stuff like:

  • Chatbot
  • NSFW

To use the Hyena API you can visit this page. And to get more info on it you can visit the Docs!

And to see how the hyena-bot works and test it out visit the official Discord server!

Installing

Python 3.8 or higher is required

To install the library use the following commands:

pip install hyena-api.py
# or
pip install hyena-api.py==version

To install from the master branch do this:

$ git clone https://github.com/AHiddenDonut/hyena-api.py.py hyena-api
$ cd hyena-api
$ python3 -m pip install -U .

Examples

Some quick examples to show how you can use the api

import hyena

hyena = hyena.Client("MY SUPER SECRET API KEY")

# Chatbot response
resp = hyena.chatbot("Hello!", name="My bot's name", owner="My name")
print(resp)
import hyena

hyena = hyena.Client("MY SUPER SECRET API KEY")

# NSFW images
resp = hyena.nsfw("endpoint", format="json") # format will be a class by default
print(resp)

"""
How to use the response class [Default]

resp.title : Title of response
resp.description : Description of response
resp.image_url : Image URL of response
resp.url : url of the original post
"""

Links

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

hyena-api.py-1.0.1.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

hyena_api.py-1.0.1-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

Details for the file hyena-api.py-1.0.1.tar.gz.

File metadata

  • Download URL: hyena-api.py-1.0.1.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for hyena-api.py-1.0.1.tar.gz
Algorithm Hash digest
SHA256 dce6f29cb7592f10248cf9def6d1e890e503bee7db207defb69b0678054fce28
MD5 99cb1aaf07ca0b279f1499cbc3a4ffae
BLAKE2b-256 e01f492936449a4bd49507332a1318720ba58163454a423e1e52f1f3424e669d

See more details on using hashes here.

File details

Details for the file hyena_api.py-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: hyena_api.py-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 16.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for hyena_api.py-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 decb76159e5ed593428222cb66274a6eb2a792627d6bcc4b1749849caac99165
MD5 845c3a4ed378e17786964686ca5d8921
BLAKE2b-256 0a8b3988cc14dc586df6b2787c77c7d386f8199835ad3e5e4009ed81053813f3

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