Skip to main content

Python Pastebin API Wrapper

Project description

paspybin

Test CodeQL Docs codecov pre-commit security: bandit Checked with mypy Ruff pypi python License: MIT

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 and aiohttp 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


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.0.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

paspybin-1.0.0-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

Details for the file paspybin-1.0.0.tar.gz.

File metadata

  • Download URL: paspybin-1.0.0.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-1023-azure

File hashes

Hashes for paspybin-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8bf289e03867d799fac51cbdd97d0770c8b052daa033b58b99ee10619ae86b85
MD5 b7e785e261050d6930b0fef3842cd1ac
BLAKE2b-256 a466418f0dd1b3acf06df05ba1db725eb81ce07ef13ca1d4150c875793ca40b6

See more details on using hashes here.

File details

Details for the file paspybin-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: paspybin-1.0.0-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-1023-azure

File hashes

Hashes for paspybin-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 48cdd2ab683786b17c537d9fc399716ede78bd9edb0b08a3926c586908e23f3b
MD5 43a10a778868f82b7d936e10dfa1ca0e
BLAKE2b-256 e4aae09fbd29096e1a46d355fb135e32699b956ae27a709233cc8f8a17c64ed4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page