A small package to create pastes on Pastebin with the Pastebin API
Project description
Pastebin
Create a Paste as a guest.
get your api_dev_key from here
paste = pb.Paste("<your api_dev_key>")
paste.create_paste(title="test",
text="test",
format=pb.code_formats.PYTHON,
expire=pb.expire_type.ONE_DAY,
paste_type=pb.paste_type.PUBLIC)
Get your user key:
import pastebin as pb
api_user_key = pb.Login("username","password","api_dev_key").get_user_key()
Create Paste as a registered user.
paste = pb.Paste("<your api_dev_key>",user_key="<your user_key>")
paste.create_paste(title="test",
text="test",
format=pb.code_formats.PYTHON,
expire=pb.expire_type.ONE_DAY,
paste_type=pb.paste_type.PUBLIC)
get the paste url.
paste.get_paste()
list all pastes.
paste.list_pastes()
delete a paste.
paste.delete_paste(paste_key="<paste_key>")
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
NaNbin-0.0.1.tar.gz
(4.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file NaNbin-0.0.1.tar.gz.
File metadata
- Download URL: NaNbin-0.0.1.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d846b939cd5c105915d89d404193ba9bd0c10a0566d4d25644b928bf52b13a3d
|
|
| MD5 |
98cc78180888ea072feef339e35f1926
|
|
| BLAKE2b-256 |
fcdd9df875e5176eba08baa31202eccc93f70c885ecb2908b45a07a771fddad6
|
File details
Details for the file NaNbin-0.0.1-py3-none-any.whl.
File metadata
- Download URL: NaNbin-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e41ee15085de10b51a52f7642c74ce8f2eb5165639e544933a57e8423f9cafd1
|
|
| MD5 |
fbfcf6335a1e03f4b6cd11831bacae99
|
|
| BLAKE2b-256 |
25bae5929ec844d61563beb53d08850562838bdc6f20937edcc506abd69200b9
|