pyquickcopy

Python implementation of [QuickCopy](https://github.com/foxe6/QuickCopy/).


Keywords
quickcopy, quick, copy
License
AGPL-3.0
Install
pip install pyquickcopy==0.0.2

Documentation

pyQuickCopy

version license pyversions
donate powered made

Python implementation of QuickCopy.

Hierarchy

pyquickcopy
'---- QuickCopy()
    |---- copy()
    |---- paste()
    |---- clear()
    '---- loop()

Example

python

import pyquickcopy


accumulate_list = []


# currently not working with clipboard with '\n' character
def listener(clipboard):
    # tbd
    # copy a special text to trigger clear accumulate_list
    if "::clear" == clipboard:
        accumulate_list.clear()
        qc.clear()
        qc.copy(clipboard)
        return

    # prevent loop after joining accumulate_list
    if "\n" in clipboard:
        return

    accumulate_list.append(clipboard)
    qc.copy("\n".join(accumulate_list))

    print(accumulate_list)
    print()


qc = pyquickcopy.QuickCopy(
    listener=listener,
    # how frequent the listener is called
    listen_rate=1/10,
    debug=False
)
qc.loop()