Skip to main content

A Python package for creating encrypted pastes using Paste.sh

Project description

pastesh

A package to create and upload encrypted pastes to paste.sh.

Installation

pip install pastesh

Dependencies

  • requests
  • openssl (should be installed on your system)

Usage

from pastesh import upload_to_pastesh

title = "Sample Title"
message = "This is the body of the paste."
api_endpoint = "https://paste.sh"

try:
    url = upload_to_pastesh(title, message, api_endpoint)
    print(f"Paste created successfully: {url}")
except Exception as e:
    print(f"Failed to create paste: {str(e)}")

Similar Projects

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pastesh-0.1.5.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pastesh-0.1.5-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file pastesh-0.1.5.tar.gz.

File metadata

  • Download URL: pastesh-0.1.5.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for pastesh-0.1.5.tar.gz
Algorithm Hash digest
SHA256 98b80df62fd344e1d6a5c3ebb7c6a993573fdef87eb89cfda4b1ff5ec3b11f58
MD5 16e47bac8f3de831799aff55feb0108b
BLAKE2b-256 0ecef06ec145ea153e1825b9fa53d9ed8799cf4759778ed7d7fd3dc36481d11f

See more details on using hashes here.

File details

Details for the file pastesh-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: pastesh-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for pastesh-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a9cd1225562af71d0beb9daf2754f5a952be45e42d55f6d2df889bd1d8b4bc53
MD5 6ac210ad24ed9d3ead71d8d986d2a37c
BLAKE2b-256 6ccf54994cda15db6cab1e928e67da5cc81e4734eae458bf30051de9f8df4463

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page