Simple wrapper for pyLoad's API.
This module provides a simplified interface (PyLoadAPI class) to interact with pyLoad's API using aiohttp for asynchronous HTTP requests. It handles login authentication and provides methods to perform various operations such as pausing downloads, restarting pyLoad, retrieving status information, and more.
- Full Documentation: https://tr4nt0r.github.io/pyloadapi
- Source Code: https://github.com/tr4nt0r/pyloadapi
You can install PyLoadAPI via pip:
pip install PyLoadAPI
import asyncio
from pyloadapi import PyLoadAPI
async def main():
async with PyLoadAPI("http://localhost:8000", "username", "password") as api:
status = await api.status()
print(status)
asyncio.run(main())
Pause Downloads
await api.pause(True) # Pause all downloads
Resume Downloads
await api.pause(False) # Resume all downloads
Restart pyLoad
await api.restart()
For more advanced usage, refer to the documentation.
Contributions are welcome! To contribute:
- Fork the repository.
- Create a new branch.
- Make your changes and commit them.
- Submit a pull request.
Make sure to follow the contributing guidelines.
This project is licensed under the MIT License - see the LICENSE file for details.
If you find this project useful, consider buying me a coffee ☕ or sponsoring me on GitHub!