PastebinPython
A complete http://pastebin.com API wrapper for Python
Sample Usage
"""
Creating paste from file...
"""
from pastebin_python import PastebinPython
from pastebin_python.pastebin_exceptions import PastebinBadRequestException, PastebinNoPastesException, PastebinFileException
from pastebin_python.pastebin_constants import PASTE_PUBLIC, EXPIRE_10_MIN
from pastebin_python.pastebin_formats import FORMAT_NONE, FORMAT_PYTHON, FORMAT_HTML
pbin = PastebinPython(api_dev_key='<unique api key>')
try:
pbin.createAPIUserKey('<username>','<password>')
print pbin.createPasteFromFile('/home/six519/Downloads/email.html', 'Email format testing 2...', FORMAT_HTML, PASTE_PUBLIC, EXPIRE_10_MIN)
except PastebinBadRequestException as e:
print e
except PastebinFileException as e:
print e
Code Documentation
You can read the documentation at: http://pythonhosted.org/pastebin_python/
Metadata
Release files for pastebin_python 1.2
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 |
|---|---|---|---|---|
| pastebin_python-1.2.tar.gz | 7.3 kB | Without provenance | Details for pastebin_python-1.2.tar.gz |
Release files / pastebin_python-1.2.tar.gz
| Download URL | pastebin_python-1.2.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7b045179222339c3b1e97a867ec22468a1f2fde87149ce6ad0eeae0c4c734a78
|
|
BLAKE2b-256 checksum How to use checksums |
5b56c300cbc96f71685917404c2d3203b2f166b3c8f975ba92a9f1fd62488f71
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pastebin_python 1.2
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.