Skip to main content

A CLI tool to use Pastegram from the terminal

Project description

pastegram-cli

A CLI tool to use Pastegram from the terminal

Installing

sudo pip install pastegram-cli # install globally

Examples

Uploading

pastegram-cli upload my-file.txt

or read from STDIN

# implicit upload
pastegram-cli < my-file.txt

or

cat my-file.txt | pastegram-cli

Fetching a paste

pastegram-cli fetch "https://paste.uploadgram.me/61d7737a9ae36g#AmX76Y3RDgh_xfHB2ktgVYcT76jjCXMmMs7xPYSbqoc"
# outputs to STDOUT

or write the output to a file

pastegram-cli fetch "https://paste.uploadgram.me/61d7737a9ae36g#AmX76Y3RDgh_xfHB2ktgVYcT76jjCXMmMs7xPYSbqoc" -o the-paste.txt

Deleting a paste

pastegram-cli delete TOKEN
# TOKEN is the 49 characters long string you get after uploading a paste

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

pastegram-cli-1.0.0.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

pastegram_cli-1.0.0-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

Supported by

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