Skip to main content

PASTEBIN API

# Module made by @venaxyt on Github
import pastebinapi

username = "pastebin account username"
password = "pastebin account password"
api_key = "account api_key findable here https://pastebin.com/doc_api

# Check an account
pastebinapi.check(username, password, api_key)
>>> Output : [username] Valid account

# Get the token of an account
pastebinapi.token(username, password, api_key)
>>> Output : [username] Token : account token

# Upload a paste on an account
privacity = "2"  # 0 : public | 1 : unlisted | 2 : private
content = "That's my text"
title = "Venax paste"
pastebinapi.paste(username, password, api_key, privacity, title, content)
>>> Output : [>] Successfully uploaded :
>>> Output : [>] Pastebin text page : https://pastebin.com/pasteid
>>> Output : [>] Pastebin text /raw : https://pastebin.com/raw/pasteid

Download : pip install pastebinapi

Metadata

Release files for pastebinapi 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pastebinapi 0.0.5
File Size Uploaded
pastebinapi-0.0.5.tar.gz 2.3 kB Details

Release files / pastebinapi-0.0.5.tar.gz

Download URL pastebinapi-0.0.5.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d9a8680b0bd41702a95381dc4dcfac06c4ee43a408688e4d1dfe1d11480785e3
BLAKE2b-256 checksum
How to use checksums
fd50e4a976f23bef54867d21731c432a0f13405c37a96fd61e2e83995983c5b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.0.5 This release

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page