A python3 CLI utility to interface with cpy.pt
Project description
A python3 CLI utility to interface with pastething
Example: https://cpy.pt
Dependencies
- python3
- requests
Installation
Using pip is the easiest way to install this
Install from pypi: pip install capyt
You can also manually install this from source:
- install dependencies -
pip install -r requirements.txt - symlink
capyt/capyt.pyto a location of your choice - adjust defaults and options if required
Usage
capyt -h to see all available options
Pasting
- paste a single file
capyt somefile - create a single paste with many files concatenated
capyt file1 file2 file3 - paste from stdin
somestdout | capyt -
Deleting a paste
capyt -d DELETE_TOKEN PASTE_IDcapyt -d DELETE_TOKEN https://cpy.pt/PASTE_ID
Extra Features
- Transparently open gzip and bzip compressed files
Warning
The optional encoding flag only serves to open the file, internally everything is handled and converted to utf-8. Retrieved pastes are utf-8 encoded.
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
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 capyt-1.1.post1.tar.gz.
File metadata
- Download URL: capyt-1.1.post1.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
061c078e4c9065ee5cbdd59fc6e94ab1ce9e72ae3d1cc977ccd15da246ce8db8
|
|
| MD5 |
229613f7a1dd8fb9a7ef8429b933445d
|
|
| BLAKE2b-256 |
f566d4f2eace6392478cea726506e3fb9c2bf4f8cc838edab276c016af79fc46
|
File details
Details for the file capyt-1.1.post1-py3-none-any.whl.
File metadata
- Download URL: capyt-1.1.post1-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2417fee26cec0caf80714fb159ee397fc0c824b3f72ba3c16636da8e6dd3002
|
|
| MD5 |
18bae4b58af9dc8a8f81593807f28cb8
|
|
| BLAKE2b-256 |
e2d751c33339fb49fc22490c23c077bb4c09fbbdd5d3f7d67c27aeefba6e8679
|