MyPasteBot
A simple https://pastebin.com Python package to create guest pastes, find new public pastes and more!
prerequisites
requests==2.22.0
Installation
python -m pip install mypastebot
Methods
Create a New Guest Paste
from mypastebot import Create
token = Create.getToken()
paste = Create.makePaste(text='This is the text of our new paste', title='This is the title of the paste', format='1', token=token)
print("Link: " + paste['link'])
print("Raw Link: " + paste['raw'])
Find Pastes Using Keyword
from mypastebot import Search
# max limit is 15
pastes = Search.find(term='Python', limit=10)
print(pastes['results'])
# find most recent pastes
pastes = Search.find(term='Python', limit=10, sortType='date')
print(pastes['results'])
Find Newest Public Pastes
from mypastebot import Search
pastes = Search.new()
print(pastes['results'])
# get new public pastes as links
pastes = Search.new(linkType='link')
print(pastes['results'])
# get new public pastes as raw links
pastes = Search.new(linkType='raw')
print(pastes['results'])
Metadata
Release files for mypastebot 0.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 | |
|---|---|---|---|---|
| mypastebot-0.2.tar.gz | 1.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mypastebot-0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 3.3 kB
Release files / mypastebot-0.2.tar.gz
| Download URL | mypastebot-0.2.tar.gz |
|---|---|
| Size | 1.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9e905a4bcdce89a787d5f552ee50fb68a6f33e13e3162e576e354d2eea3d921d
|
|
BLAKE2b-256 checksum How to use checksums |
8f77221b53e3621074acba522d6221248f1a1282493405a8f701a08107647dd9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.5
|
Release files / mypastebot-0.2-py3-none-any.whl
| Download URL | mypastebot-0.2-py3-none-any.whl |
|---|---|
| Size | 1.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
37533701e25d6e802743f88e387d3986817357dd116016e793eddf31dc21bbff
|
|
BLAKE2b-256 checksum How to use checksums |
59e0a76d9ddde7e819dd656c2a56a7a00a1902aa1e63edddfbf19522f848083c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.5
|
Security for mypastebot 0.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.