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.0.tar.gz (5.4 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.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: moanapi-0.2.0.tar.gz
  • Upload date:
  • Size: 5.4 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.0.tar.gz
Algorithm Hash digest
SHA256 1aaadac27c5adaeaa1838b197a5388455c085aa89544d7418e0ed9334bb72f78
MD5 a18ff2d5e72d35b41c1fd6054bd3caec
BLAKE2b-256 00ef87ada364cdcd7b22a67b0d1b083b54a49891d9caef759625e41a316cc4e9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: moanapi-0.2.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b2edb2e6b3e6ba727b01e9dee21065b50d178e2c0ffc08a925f41afff4268b85
MD5 b05d44fdd7b9f61ef0f255e6e863b1d5
BLAKE2b-256 7018ec24e03741adaec0a00886980c68bb760d95b215f39a0b23c991699ddfb5

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