Metadata-Version: 2.4
Name: TermuxC
Version: 2.2.3
Summary: A lightweight utility to copy text to the device clipboard using OSC 52.
Author: Ruizennis
License: MIT
Project-URL: Homepage, https://github.com/Ruizennis/TermuxC
Project-URL: Issues, https://github.com/Ruizennis/TermuxC/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: POSIX :: Linux
Classifier: Environment :: Console
Classifier: Topic :: Utilities
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# TermuxC 
### Termux copy to clipboard made easy.
## Also known as TermuxCopy
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Python Version](https://img.shields.io/badge/python-3.6%2B-blue.svg)](https://www.python.org)
[![PyPI version](https://img.shields.io/pypi/v/TermuxC.svg?color=blue)](https://pypi.org/project/TermuxC/)
[![PyPI downloads](https://img.shields.io/pypi/dm/TermuxC.svg)](https://pypi.org/project/TermuxC/)


This dual function pip package & cli tool was made to solve an issue with Termux, not allowing copying to device clipboard easily without their companion app; This package solves that.

## Cli Tool Usage:

### Copy text
```bash
termuxc text
```
**Or**
```bash
echo "test" | termuxc
```
### Copy text from file
```bash
cat filename | termuxc
```
### Copy current working directory
```bash
pwd | termuxc
```
Also compatible with
- bat
- grep
- curl
- head
- tail
## Pip package Usage:

### Copy text
```python
from TermuxC import Copy
Copy("Str") #works with strings,
Copy(1) # numbers
Copy(1.3) # and floats!
```

### Copy text from file
```python
from TermuxC import Copy
with open("TermuxC.py", "r") as f:
    content = f.read()
    Copy(content)
```
### Copy current working directory
```python
from TermuxC import Copy
import os
Copy(os.getcwd())
```

## Installation 
Install pip package
```bash
pip install TermuxC
```

## Uninstallation
```bash
pip uninstall TermuxC
```

## Requirements:
**Python 3+**

Get Python from https://www.python.org!

View Package here! https://pypi.org/project/TermuxC/


### Tmux support
As of version **2.2.0 And above** TermuxC has native tmux support!
