Skip to main content

A lightweight utility to copy text to the device clipboard using OSC 52.

Project description

TermuxC

Termux copy to clipboard made easy.

Also known as TermuxCopy

License: MIT Python Version PyPI version PyPI downloads

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

termuxc text

Or

echo "test" | termuxc

Copy text from file

cat filename | termuxc

Copy current working directory

pwd | termuxc

Also compatible with

  • bat
  • grep
  • curl
  • head
  • tail

Pip package Usage:

Copy text

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

Copy text from file

from TermuxC import Copy
with open("TermuxC.py", "r") as f:
    content = f.read()
    Copy(content)

Copy current working directory

from TermuxC import Copy
import os
Copy(os.getcwd())

Installation

Install pip package

pip install TermuxC

Uninstallation

pip uninstall TermuxC

Flags

Flag Function
-f Force file read
-t Force Text copy
-h Show help menu

Aditional flag alliases

  • --file
  • --text
  • --help
  • -help

Requirements:

Python 3+

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

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

Create an issue here! https://github.com/Ruizennis/TermuxC/issues

Tmux support

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

Aware

This package uses the termux-setup-tools package HOWEVER it is non essential and the program works without it the only downside is not being able to cleanly open the github url in browser and instead being required to manualy copy it.

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

termuxc-2.4.1.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

termuxc-2.4.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file termuxc-2.4.1.tar.gz.

File metadata

  • Download URL: termuxc-2.4.1.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for termuxc-2.4.1.tar.gz
Algorithm Hash digest
SHA256 0fe39326589b4b3220c739aa00a09a978b33718cbf46e9b8e9db9a02c42fc916
MD5 135f37f5536189122fca283e9122842d
BLAKE2b-256 3b3458187ddf3e270e7c23177131d0dc8b97b8b956eb23aaed07372d9223c0c4

See more details on using hashes here.

File details

Details for the file termuxc-2.4.1-py3-none-any.whl.

File metadata

  • Download URL: termuxc-2.4.1-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for termuxc-2.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 de202d9287514ba4e5cbbcd65a2630d4045587a376951c06ad25016b30f3e290
MD5 4f6b2206a43eafe851602bcfe224b4b8
BLAKE2b-256 6608c184d128b557a5ef24ea39d04d9e949cc8be7cfbb2a3b0a61de1016cec7b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page