Skip to main content

A dynamic, auto-updating Python wrapper for the Moan API suite.

Project description

Moan API Python Client (Dynamic Version)

A simple and intuitive Python wrapper for the Moan API.

This package features a dynamic loader for its API modules and an automatic update checker.

Installation

Install the package directly from PyPI:

pip install moanapi

Usage

First, import and initialize the client with your API key. The client will automatically load all available API categories.

import moanapi

try:
    client = moanapi.Client(api_key="YOUR_API_KEY")

    # Access dynamically loaded API modules
    quote = client.utility.get_quote(category="anime")
    print(quote['quote'])

    user = client.roblox.get_user_info(user_id=261)
    print(f"Username: {user['data']['username']}")
    
    image_data = client.generative.get_flux_image(prompt="a powerful cat wizard")
    print(f"Image URL: {image_data['image_url']}")

except moanapi.APIError as e:
    print(f"An API error occurred: {e}")

For a full list of available functions and to check for new updates, use the built-in help function:

import moanapi

moanapi.help()

License

This project is licensed under the 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

moanapi-0.2.1.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

moanapi-0.2.1-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file moanapi-0.2.1.tar.gz.

File metadata

  • Download URL: moanapi-0.2.1.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for moanapi-0.2.1.tar.gz
Algorithm Hash digest
SHA256 ddcd8b185c9dcf4216b930207018e9b0ac503911f05305210d3bf0a7eaf05099
MD5 1ee167471de3ac8f64e8abeb876d6565
BLAKE2b-256 6728170780dc99fe1ba42740b54ca5c347b1678d911cc32e0a97b77098f6a464

See more details on using hashes here.

File details

Details for the file moanapi-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: moanapi-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for moanapi-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 30d724c11c8ddadd2df0066e3f7fb51afcd020363e640d85b57cfcd2a4c7f815
MD5 fe15606e3be2ff744264cd1f16fd1239
BLAKE2b-256 c8e2cbc6d92feb5709882e8698575f165eed574972af5781b4a145c335288d60

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