paspybin
paspybin is an asynchronous API wrapper for the
Pastebin API, designed to streamline
interaction with Pastebin's services in Python. It enables users to
leverage Pastebin's functionality asynchronously, enhancing performance
and usability.
Key Features
- Asynchronous Operations: Utilizes
asyncioandaiohttpfor efficient API requests. - Data Schema: Built with Python's
dataclassfor clear and structured data representation. - Comprehensive Documentation: Explore detailed documentation for seamless integration and usage.
Installation
Usage
import asyncio
import os
from paspybin import Paspybin
PASTEBIN_API_DEV_KEY = os.environ["PASTEBIN_API_DEV_KEY"]
PASTEBIN_USERNAME = os.environ["PASTEBIN_USERNAME"]
PASTEBIN_PASSWORD = os.environ["PASTEBIN_PASSWORD"]
async def main():
async with Paspybin(PASTEBIN_API_DEV_KEY) as paspybin:
await paspybin.login(PASTEBIN_USERNAME, PASTEBIN_PASSWORD)
async for paste in paspybin.pastes.get_all():
print(paste)
asyncio.run(main())
Table Of Contents
You can start reading the documentation with the following links:
Contributing
We welcome contributions to enhance paspybin! Please review our contributing guidelines. before getting started.
Acknowledgements
We would like to thank Pastebin for providing API services and also good documentation for using the API.