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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98b80df62fd344e1d6a5c3ebb7c6a993573fdef87eb89cfda4b1ff5ec3b11f58
|
|
| MD5 |
16e47bac8f3de831799aff55feb0108b
|
|
| BLAKE2b-256 |
0ecef06ec145ea153e1825b9fa53d9ed8799cf4759778ed7d7fd3dc36481d11f
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9cd1225562af71d0beb9daf2754f5a952be45e42d55f6d2df889bd1d8b4bc53
|
|
| MD5 |
6ac210ad24ed9d3ead71d8d986d2a37c
|
|
| BLAKE2b-256 |
6ccf54994cda15db6cab1e928e67da5cc81e4734eae458bf30051de9f8df4463
|