Skip to main content

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.

Metadata

Release files for paspybin 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for paspybin 1.1.0
File Size Uploaded
paspybin-1.1.0.tar.gz 16.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for paspybin 1.1.0
File Interpreter ABI Platform
paspybin-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 37.4 kB

Release files / paspybin-1.1.0.tar.gz

Download URL paspybin-1.1.0.tar.gz
Size 16.8 kB
Tags Source
SHA-256 checksum
How to use checksums
19ab4b6f4d69e9846c0c5ea444a88d9e67e8a3f5dfac9c5969db2606ec489a75
BLAKE2b-256 checksum
How to use checksums
01de66084c5a4c861935333305147a276346a9153b0f316895aaa60ec4a7ed46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via poetry/1.8.5 CPython/3.13.1 Linux/6.5.0-1025-azure

Release files / paspybin-1.1.0-py3-none-any.whl

Download URL paspybin-1.1.0-py3-none-any.whl
Size 20.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e355a35c29f90cabf30336fd803226a1f3bdb0a756e7c9a4cf73347a0b0808d5
BLAKE2b-256 checksum
How to use checksums
e48cd2514e304893a8e908670d08672ff66c63e2c00ea6885f3adc0f499db0fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via poetry/1.8.5 CPython/3.13.1 Linux/6.5.0-1025-azure

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page