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
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
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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file paspybin-1.1.0.tar.gz.
File metadata
- Download URL: paspybin-1.1.0.tar.gz
- Upload date:
- Size: 16.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: poetry/1.8.5 CPython/3.13.1 Linux/6.5.0-1025-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
19ab4b6f4d69e9846c0c5ea444a88d9e67e8a3f5dfac9c5969db2606ec489a75
|
|
| MD5 |
fdf46970f43a988e267a187b1889ebb8
|
|
| BLAKE2b-256 |
01de66084c5a4c861935333305147a276346a9153b0f316895aaa60ec4a7ed46
|
File details
Details for the file paspybin-1.1.0-py3-none-any.whl.
File metadata
- Download URL: paspybin-1.1.0-py3-none-any.whl
- Upload date:
- Size: 20.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: poetry/1.8.5 CPython/3.13.1 Linux/6.5.0-1025-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e355a35c29f90cabf30336fd803226a1f3bdb0a756e7c9a4cf73347a0b0808d5
|
|
| MD5 |
e35fc0e2fe3bae7b627232674a7d060f
|
|
| BLAKE2b-256 |
e48cd2514e304893a8e908670d08672ff66c63e2c00ea6885f3adc0f499db0fe
|