Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dvamishkilapa/gradejs-py-api
Asyncio micro-library for working with GradeJS.
https://github.com/dvamishkilapa/gradejs-py-api
aiohttp asyncio gradejs python3
Last synced: 6 days ago
JSON representation
Asyncio micro-library for working with GradeJS.
- Host: GitHub
- URL: https://github.com/dvamishkilapa/gradejs-py-api
- Owner: DvaMishkiLapa
- License: apache-2.0
- Created: 2023-05-16T13:15:31.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-24T13:51:43.000Z (10 months ago)
- Last Synced: 2024-10-10T18:25:02.865Z (27 days ago)
- Topics: aiohttp, asyncio, gradejs, python3
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gradejs-py-api
Asyncio micro-library for working with [GradeJS](https://github.com/gradejs/gradejs).
- [gradejs-py-api](#gradejs-py-api)
- [1. Dependencies](#1-dependencies)
- [2. Usage example](#2-usage-example)## 1. Dependencies
- [`aiohttp` 3.8 or never](https://pypi.org/project/aiohttp/);
- [Python 3.7 or newer](https://www.python.org/).## 2. Usage example
```python
import asynciofrom 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 itif __name__ == '__main__':
asyncio.run(main())
```