Skip to main content

py-handoff: Like Handoff, but in Python

py-handoff is an application used to share clipboard contents across your devices connected to the same LAN.

Usage

On each Windows/macOS/Linux device connected to the same LAN, run the following command:

    pip install py-handoff
    py-handoff

Now all your devices would share their clipboard.

Optional Environment Variables

PY_HANDOFF_DISCOVERY_PORT

By setting "PY_HANDOFF_DISCOVERY_PORT=<port_number: int>", you can customize the port that py-handoff used to discover other py-handoff applications in the same LAN through UDP; defaults to 5005.

PY_HANDOFF_DISCOVERY_KEY

By setting "PY_HANDOFF_DISCOVERY_KEY=<secret_key:str>", you can customize the secret key py-handoff used to encode/decode messages during the discovery phase; defaults to "D0AA67DD-C285-45A2-B7A7-F5277F613E3C".

PY_HANDOFF_CLIPBOARD_LISTENER_PORT

By setting "PY_HANDOFF_CLIPBOARD_LISTENER_PORT=<port_number: int>", you can customize the port that py-handoff used to accept clipboard contents sent by other py-handoff applications in the same LAN through TCP; defaults to 6000.

PY_HANDOFF_CLIPBOARD_SIZE_LIMIT_IN_MB

By setting "PY_HANDOFF_CLIPBOARD_SIZE_LIMIT_IN_MB=<size: int>", you can customize the maximum size of clipboard contents in MB that py-handoff would send to other py-handoff applications that have been discovered; defaults to 128 MB.

Keep in mind that all py-handoff applications can only recognize and communicate with each other if and only if they have the same PY_HANDOFF_DISCOVERY_PORT and the same PY_HANDOFF_DISCOVERY_KEY.

Metadata

Release files for py-handoff 0.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py-handoff 0.0.7
File Size Uploaded
py_handoff-0.0.7.tar.gz 23.1 kB Details

Release files / py_handoff-0.0.7.tar.gz

Download URL py_handoff-0.0.7.tar.gz
Size 23.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d5a8fd7fdd39736cf68f2e40f4ca4c130654994a9f87ded8940c796508ba9a95
BLAKE2b-256 checksum
How to use checksums
786e40e00a3c8c59b11f2e9c6aa68e4adf9eb75e3372a8122be63c606f557398
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.14.0 pkginfo/1.7.0 requests/2.26.0 setuptools/52.0.0.post20210125 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page