Skip to main content

Python Pastebin Library for reading and running pastes

Project description

PastebinReaderPy

With this library you can read and run pastes

Installation

pip install PastebinReaderPy

Documentation

(id - https://pastebin.com/{**id**})

  1. read_paste(paste_id:str) -> str
    • This function return text of paste
  2. read_var_paste(paste_id:str) -> str
    • This function return paste's varible
  3. run_paste(paste_id:str) -> None
    • This function run paste's python code

Usage


>>> import pastebin as pr
>>> pr.read_paste('uQS3TJgS') # for reading example id = uQS3TJgS
'{\n    "English": "en",\n    "Chinese": "zh",\n    "Ukrainian": "uk",\n    "Polish": "pl"\n}'
>>> pr.read_var_paste('uQS3TJgS')
{'English': 'en', 'Chinese': 'zh', 'Ukrainian': 'uk', 'Polish': 'pl'}
>>> pr.run_paste('tLDZ9p7w') # for running example id = tLDZ9p7w
Hello, World!

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

PastebinReaderPy-0.9.10.tar.gz (1.7 kB view details)

Uploaded Source

File details

Details for the file PastebinReaderPy-0.9.10.tar.gz.

File metadata

  • Download URL: PastebinReaderPy-0.9.10.tar.gz
  • Upload date:
  • Size: 1.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for PastebinReaderPy-0.9.10.tar.gz
Algorithm Hash digest
SHA256 32945e55f02603a0ad9e51cb458e731b64b5feef7fa8d7231aa56e00891fa928
MD5 1bad1f144b1d000c3ab4c86c0c7b15cc
BLAKE2b-256 fc03653f1b612ce96f695ffbb98e23d410c9e9e199a20da344243b0a09bb9d47

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