A command-line tool for quickly sharing files and text snippets using a Zipline server
Project description
pastit-cli
A command-line tool for quickly sharing files and text snippets using a Zipline server.
Features
- Upload files directly from command line
- Upload text from stdin
- Progress bar with upload status
- Configurable file extensions
- Supports custom Zipline servers
- Automatic first-time setup
Installation
pip install pastit-cli
Usage
Upload a file:
pasta filename.txt
Upload from stdin:
echo "Hello World" | pastit
Or pipe any command output:
ls -la | pastit
On first run, you'll be prompted to enter your:
- Zipline server URL
- Authorization token
Your configuration will be saved in ~/.config/pastit/.env and will be used for future uploads.
Manual Configuration
If you need to change your configuration, you can either:
- Edit
~/.config/pastit/.envdirectly:
URL=https://your.server/api/upload
AUTHORIZATION_TOKEN=your_token
DEFAULT_EXTENSION=sh
CONSIDER_FILES_STARTING_WITH_DOT_EXTENSIONLESS=true
- Or run the setup command:
pastit-setup
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
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 pastit_cli-1.0.5.tar.gz.
File metadata
- Download URL: pastit_cli-1.0.5.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
30f76c9cda0695179b5fd97f2d528be2359941222947648a62c39f52b6ae89c4
|
|
| MD5 |
e98b7892874568b7bc0aad19f395e82e
|
|
| BLAKE2b-256 |
5d98e11870cec7084b00ddca2dc2a14f57b22037ac06f35f7bc4de7dcf771362
|
File details
Details for the file pastit_cli-1.0.5-py3-none-any.whl.
File metadata
- Download URL: pastit_cli-1.0.5-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05924050a0d2e632a95b628cdf1b22bc4bfcfa2388e628f10f0d128acec2722e
|
|
| MD5 |
40d822b36eeb45142a7ab7ed3f20390f
|
|
| BLAKE2b-256 |
12c9e68ad17d6403824e8f59c2430e7259df04b17a46dee0a192565f1ace1121
|