Metadata-Version: 2.4
Name: capyt
Version: 1.2.2
Summary: A python3 CLI utility to interface with cpy.pt
Author: Laura Batalha
License: MIT
License-File: LICENSE
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Utilities
Requires-Python: >=3.10
Requires-Dist: requests>=2.33.0
Description-Content-Type: text/markdown

# A python3 CLI utility to interface with [pastething](https://github.com/lbatalha/pastething)

Example: `https://cpy.pt`

## Dependencies

- python3
- requests

## Installation

Using uv is the easiest way run:

```bash
uvx capyt
```

Installing is also easy:

```bash
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_ID`
- `capyt -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 sync` to setup the environment
