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**})
- read_paste(paste_id:str) -> str
- This function return text of paste
- read_var_paste(paste_id:str) -> str
- This function return paste's varible
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file PastebinReaderPy-0.9.9.tar.gz
.
File metadata
- Download URL: PastebinReaderPy-0.9.9.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e30b72ff74ea6630a6503d1554ced7a1170d63f2d72bf071ceaa55f322c9f47 |
|
MD5 | e07f4c854e9b6972b03ce963a2751de7 |
|
BLAKE2b-256 | 864c15d2fbc59ad644d979ebc70eb79ceda4b7c90351b24bbd99f532f7a9315f |