Skip to main content

Simple wrapper for some-random-api.

Project description

Some Random Api wrapper

Module for work with SomeRandomAPI

========

Wrapper for https://some-random-api.ml/

Endpoints: https://some-random-api.ml/endpoints

Installing

pip install somerandom_wrapper

Example

import asyncio

from somerandom.api import SomeRandomApi
from somerandom.endpoints import Filters

api = SomeRandomApi(Filters(avatar='your-avatar-url', _filter='comrade'))

async def main():
    data = await api.create_request()
    return data

loop = asyncio.get_event_loop()
print(loop.run_until_complete(main()))

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

some_random_python-2.0.tar.gz (3.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page