Skip to main content

Simple wrapper for some-random-api on python.

Project description

SMR - Some Random Api

Модуль для работы с Some-Random-API

========

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

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

Installing

pip install smr

Sync Example

from smr_py import smr_sync


smr = smr_sync.SMR_client()

print(smr.get_point(
		category="canvas",
		name="invert",
		path="?avatar='link'"
    ))

Async example

from smr_py import smr_async
import asyncio


smr = smr_async.SMR()

async def main():
    print(await smr.get_point(
		category="canvas", 
		name="invert",
		path="?avatar='link'"
    ))

loop = asyncio.get_event_loop()
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-1.0.10.tar.gz (2.5 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