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
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
pastegram-cli-1.0.0.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for pastegram_cli-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ce927c0842044c3ef469854fc9a2b85fbefedb85c9eda2a13ef988483f914f3 |
|
MD5 | 60093d9be2af8ff012311f4442d9e4cb |
|
BLAKE2b-256 | 83ce7d47803059da716d6a679825cbb23d606dafe74a6f5459ca663fe6fa3bd3 |