[!IMPORTANT]
PyPastais a lightweight Python utility for interacting with the Pastebin API. It allows users to upload code snippets with metadata like title, syntax highlighting, and expiration time, as well as retrieve and display paste content via a simple interface.
Installation and Development 🚀
- Via PyPi ⚡️
# via PyPi
pip install PyPasta -U
🚀 Quick Start .
from PyPasta import Paste
object = Paste()
# Uploading Paste .
object.upload(
api_dev_key= "", # Your Pastebin Developer API key (default provided but recommended to use your own)
syntax="" , # Syntax highlighting format (e.g., python, html, text)
code="" , # The actual code snippet to upload
expire_date="10M" , # Expiration time (10M, 1H, 1D, 1W, 2W, 1M, 6M, 1Y, or N for never)
title="" , # Name/title of the paste
private= 1 # Paste visibility (0=public, 1=unlisted, 2=private)
)
# Get Paste .
object.get("") # ID Of Paste
Features 📚
-
✅ Upload code snippets to Pastebin using their API
-
📝 Set paste title, syntax format, expiration date, and visibility
-
🔍 Retrieve existing pastes by ID
-
🌐 Fetch paste metadata (title, visibility) and raw code content
-
🎨 Clean and colored terminal output using colorama
Notes ✍️
-
Make sure to get your own API key from Pastebin.
-
This tool is ideal for quick snippet sharing, backups, or automated code posting from scripts.
💬 Help & Support .
- Follow updates via the Telegram Channel.
- For general questions and help, join our Telegram chat.
Metadata
Release files for PyPasta 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pypasta-0.1.tar.gz | 4.0 kB | Without provenance | Details for pypasta-0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| PyPasta-0.1-py3-none-any.whl | Python 3 | none | any | Details for PyPasta-0.1-py3-none-any.whl |
Total release size: 8.2 kB
Release files / pypasta-0.1.tar.gz
| Download URL | pypasta-0.1.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
71e93558025a7400534fc5bd5c17bd7c59b28b0f28a56a8562a62f5f5bfdf8ca
|
|
BLAKE2b-256 checksum How to use checksums |
5b298f306fd388d14a9629737dd0182034c9bec0b736e2c169e21f8cd655a37c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.13.0
|
Release files / PyPasta-0.1-py3-none-any.whl
| Download URL | PyPasta-0.1-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c910a0e3091ae49bb0a5626beed5ec8120712a450ad2e55d7d6d1b91c6dae73e
|
|
BLAKE2b-256 checksum How to use checksums |
098b19e8e3ad009879e5d53011da0dde96e906781d1a2e49ddd1d4aaba03cf7b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.13.0
|
Security for PyPasta 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.