Skip to main content

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

Project description

pyQuickCopy

version license pyversions
donate powered made

Python implementation of QuickCopy.

Hierarchy

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

Example

python

import pyquickcopy


accumulate_list = []


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()

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

pyquickcopy-0.0.1.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

pyquickcopy-0.0.1-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file pyquickcopy-0.0.1.tar.gz.

File metadata

  • Download URL: pyquickcopy-0.0.1.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.0

File hashes

Hashes for pyquickcopy-0.0.1.tar.gz
Algorithm Hash digest
SHA256 f1d7e182a1a9257c9392ee30474cc9039b4be8193a7713013cd573d8fc81815f
MD5 7a8d1789566de27fa7b10ac2a607ef61
BLAKE2b-256 c7ffc0810f5868104b41554938371b5b4112bd502d915e2a259cfe214df79bcc

See more details on using hashes here.

File details

Details for the file pyquickcopy-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: pyquickcopy-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 15.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.0

File hashes

Hashes for pyquickcopy-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3d5169edd40700a74c7a510c0e5a4d49724f7ed5356421f658c5166fc2161a98
MD5 32a36b51ce86e221d3c5283018cce4fb
BLAKE2b-256 1f3980640b2cfdd34b0ee81dade00fb656d2c4b3fe19883e393875563bdbb65c

See more details on using hashes here.

Supported by

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