DvaMishkiLapa / gradejs-py-api

Asyncio micro-library for working with GradeJS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gradejs-py-api

Asyncio micro-library for working with GradeJS.

1. Dependencies

2. Usage example

import asyncio

from gradejs_py_api import API


async def main():
    url_example = 'https://github.com/'
    package_example = 'axios'
    api = API('https://api.gradejs.com')
    print(f'Ping: {await api.ping()}\n')
    print(f'URL Scan: {await api.getOrRequestWebPageScan(url_example)}\n')
    print(f'Package Scan: {await api.getPackageInfo(package_example)}\n')
    print(f'getShowcase: {await api.getShowcase()}')
    await api.close()  # Mandatory closure of the session `aiohttp.ClientSession` if you no longer need it


if __name__ == '__main__':
    asyncio.run(main())

About

Asyncio micro-library for working with GradeJS.

License:Apache License 2.0


Languages

Language:Python 100.0%