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 uv is the easiest way run:
uvx capyt
Installing is also easy:
uv tool install capyt
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.
Developing
- Clone the repo
uv syncto setup the environment
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
capyt-1.2.2.tar.gz
(3.0 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
capyt-1.2.2-py3-none-any.whl
(3.9 kB
view details)
File details
Details for the file capyt-1.2.2.tar.gz.
File metadata
- Download URL: capyt-1.2.2.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4dcb4758643bf7a46c93a865a229d64d6e2d5f2df20f0112a1e9d9379facb279
|
|
| MD5 |
5b2c8a9fb0e5dbcfcf49df402fda8c7b
|
|
| BLAKE2b-256 |
ad0d2b6f6983f559fa40d0cbee9d2b375ac59d8883967350ae8545f60a4250e2
|
File details
Details for the file capyt-1.2.2-py3-none-any.whl.
File metadata
- Download URL: capyt-1.2.2-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8beda80fb2e809c36920c7022d50635832c29a1ad898c27f417990c3719e7a74
|
|
| MD5 |
3e88a6a2a00143d103eb46556c705254
|
|
| BLAKE2b-256 |
275d36010c8a78c359627a19df5d7671553b1cf63ba6df1756f87ce5f2591634
|