An async wrapper made in Python for Zane API.
Project description
Made for Python 3.6+. Website Link
Example:
import aiozaneapi # Import the package so it can be used.
client = aiozaneapi.Client('Token Here') # Instantiate the Client.
try:
image = await client.magic('Image URL Here') # This will return a BytesIO object.
except aiozaneapi.GatewayError as err:
print(f'Error has occurred on the server-side. {err}')
except aiozaneapi.UnauthorizedError as err:
print(f'Error has occurred on the client-side. {err}')
await client.close() # Close the client unless you want aiohttp screaming at you.
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
aiozaneapi-1.6.tar.gz
(2.6 kB
view hashes)