Skip to main content

JustPaste.py: Simple JustPaste.py API Wrapper for Python

Disclaimer:

Justpaste.py API requires captcha for creating new notes for accounts that have not purchased their Premium service. Once purchased, captchas will disappear even after the premium expires.

Installation:

pip install -U justpaste.py

Usage:

from justpaste import Justpaste

jp = Justpaste("<your email>", "<your password>")

# create new article
article = jp.new_article(
    title="Title of article",
    body="<p>Hello World</p>",
    privacy="public",
    tags=["test"],
    hide_views=True
)

# edit existing article

edited = jp.edit_article(
    article,
    title="New Title",
    body="<p>Hello, World!</p>"
    privacy="hidden"
)

# delete article (move to trash)

jp.delete_article(edited)

# get a user's public articles

user = user_from_url("...")
user.public_articles # previews
[load_articles_from_preview(preview) for preview in user.public_articles] # full articles

Release files for JustPaste.py 2.0

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

Source distribution (sdist)

Source distribution for JustPaste.py 2.0
File Size Uploaded
justpaste_py-2.0.tar.gz 27.4 kB Details

Release files / justpaste_py-2.0.tar.gz

Download URL justpaste_py-2.0.tar.gz
Size 27.4 kB
Tags Source
SHA-256 checksum
How to use checksums
41acdf61343ee89bbff516d0120cdfd91ebd9173c31b34f6d4e929019cefcdd2
BLAKE2b-256 checksum
How to use checksums
95276b53b0a52a5bc463f5c43880816892bb3dfc8ee573a37c1aec2881ca5eee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.2
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