Skip to main content

Like Handoff, but in Python

Project description

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.

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

py_handoff-0.0.6b5.tar.gz (22.9 kB view details)

Uploaded Source

File details

Details for the file py_handoff-0.0.6b5.tar.gz.

File metadata

  • Download URL: py_handoff-0.0.6b5.tar.gz
  • Upload date:
  • Size: 22.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0.post20210125 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

File hashes

Hashes for py_handoff-0.0.6b5.tar.gz
Algorithm Hash digest
SHA256 e19bc5284da6b7bcca9568aa9e3482e9acb2d408347ea01a85b947bddd3db029
MD5 0532502b5595e74af7c06a1678f1be82
BLAKE2b-256 4b23ccb14a917aef2578b441b4cdac7c3c202861fcc5a2daf1d269b57eb5476a

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