Python Pastebin API Wrapper
Project description
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
asyncio
andaiohttp
for efficient API requests. - Data Schema: Built with Python's
dataclass
for clear and structured data representation. - Comprehensive Documentation: Explore detailed documentation for seamless integration and usage.
Installation
pip install paspybin
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())
Docs
You can start reading the documentation here.
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
paspybin-1.0.1.tar.gz
(16.7 kB
view details)
Built Distribution
paspybin-1.0.1-py3-none-any.whl
(20.6 kB
view details)
File details
Details for the file paspybin-1.0.1.tar.gz
.
File metadata
- Download URL: paspybin-1.0.1.tar.gz
- Upload date:
- Size: 16.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Linux/6.5.0-1024-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8af2e0be888e550025a659841409bf57c42669d3bcdfe7e4f3cec2296ca59996 |
|
MD5 | fcf6a11d4e2aede9f1d7d24f7785b9cd |
|
BLAKE2b-256 | fae8b04fb773cb7b92546ed400cc68262f002353b70fa9260ce10261e2123cd1 |
File details
Details for the file paspybin-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: paspybin-1.0.1-py3-none-any.whl
- Upload date:
- Size: 20.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Linux/6.5.0-1024-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51163581431d71671e6e150402deab4cebe137da98d109496d50c4af4e2c78d2 |
|
MD5 | 8e76b6029b8469cbd2dcde520c956b6a |
|
BLAKE2b-256 | 0900ea3d6b0e369633957d7e00cff7883360da26b181d9da09ca8aefa5a88418 |