Skip to main content

pste

Command-line client for pste-server, a self-hosted paste server inspired by sprunge.

Installation

pip install pste
# or
pipx install pste

Configuration

Set PSTE_URL to the bookmark URL printed by pste-admin key add on the server — the same URL you'd save in a browser to use the web form:

export PSTE_URL="https://pste.example.com/?key=your-api-key"

Usage

# Create a paste from stdin
echo "hello world" | pste
pste < file.txt
cat file.txt | pste

# Create with options
echo "hello" | pste -s              # single-view (deleted after first read)
echo "hello" | pste -e 7d           # expires in 7 days
echo "hello" | pste -e 2W           # expires in 2 weeks
pste -l python < script.py          # explicit syntax highlighting language
pste -l < script.py                 # auto-detect language (Pygments, >0.5 confidence)

# Fetch a paste (by ID or full URL)
pste AB1234
pste https://pste.example.com/AB1234
pste https://pste.example.com/AB1234?python   # ?lang is stripped; always fetches plain text

Language flag behaviour

Invocation What is sent URL returned
pste (no -l) nothing plain URL
pste -l python lang=python https://host/AB1234?python
pste -l (no value) auto_detect=1 https://host/AB1234?python if detected, else plain URL

When a ?<lang> URL is returned, opening it in a browser shows Pygments-highlighted HTML with table line numbers (Ctrl-A selects only the code) and a Copy button. Fetching via pste always strips the ?lang and returns plain text.

Expiry format

-e/--expire accepts an integer followed by a unit:

  • H — hours
  • D — days
  • W — weeks
  • M — minutes

Examples: 24H, 7D, 2W, 30M

Metadata

Release files for pste 0.3.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 pste 0.3.0
File Size Uploaded Provenance Actions
pste-0.3.0.tar.gz 5.2 kB With provenance Details for pste-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pste 0.3.0
File Interpreter ABI Platform Actions
pste-0.3.0-py3-none-any.whl Python 3 none any Details for pste-0.3.0-py3-none-any.whl

Total release size: 9.6 kB

Release files / pste-0.3.0.tar.gz

Download URL pste-0.3.0.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
8c63d1c6500b51ee3dd52b03dcb5596cca373c03e0a0afb9d2f4fa4ec98ae4ba
BLAKE2b-256 checksum
How to use checksums
dbb405f9e7962362da2947f6b244e4fa0903038130f9af1d0fe3fda372bb95f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 29, 2026.

Transparency log

Release files / pste-0.3.0-py3-none-any.whl

Download URL pste-0.3.0-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
321db21219786f61446796fe8c0fa4928ecd176ad0cb5d7735714cef4772d9ab
BLAKE2b-256 checksum
How to use checksums
3715a7e26beecf5e47cc00ef1f2b9b883cbc7dfd2d64962fb3ab4167fca7b6b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 29, 2026.

Transparency log

Security for pste 0.3.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pste-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 29, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files Full provenance

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