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
Close
Hashes for some_random_python-1.0.12.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f82fc4eca4d1ab711b03dd09ae53bf2489bfeb3502d69689c05627cffdd9a4fb |
|
MD5 | 6f7b2daa508248019e345e2a3927b7f3 |
|
BLAKE2b-256 | 80441dcb3e7b955415d61ac2ab2273e20d11091c82bc8110ba59bb01f81e7eda |