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

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 TermuxC has native tmux support!

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.2.0.tar.gz (3.8 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.2.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for termuxc-2.2.0.tar.gz
Algorithm Hash digest
SHA256 c9ca016e65dab2627fc9ce51d43c47e0c52a88c818f2d09581dcd2c6c1196812
MD5 979e29682f2910a4386b7dd004bcc9c1
BLAKE2b-256 f9065c7616e7657d94b6846222c4cf87e8eb8f82b0e6c1a532ec55b1135fbe17

See more details on using hashes here.

File details

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

File metadata

  • Download URL: termuxc-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c27cd1134a37b27eb08f8b22fa1295abc58b44a970f895ac2760282fd0fb9de7
MD5 4b4a23299b3254c1f9deaf1bac9c8b54
BLAKE2b-256 45d47f4178b4a1971b985d0be8169d1f6797193747bf7c586d5877e458f929ef

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