Skip to main content

Uses pyautogui.write() to simulate pasting

Project description

dont-fuck-with-paste

Annoying login window that doesn't allow you to paste your 128-char long password?
dfwp to the rescue!

dfwp uses pyautogui.write() to simulate pasting.

https://github.com/user-attachments/assets/3bbf4ec0-981d-42ed-ae7b-f17d9c664d12

Demo: using dfwp to deal with trading software's unpastable login text fields.

Installation

Requires Python>=3.10, <4.0.

pipx

This is the recommended installation method.

$ pipx install dont-fuck-with-paste

pip

$ pip install dont-fuck-with-paste

Usage

On the Command Line

Either dfwp or dont-fuck-with-paste works.

$ dfwp -h

usage: dfwp [-h] [-t TEXT] [-S] [-V]

Uses pyautogui.write() to simulate pasting

options:
  -h, --help            show this help message and exit
  -t TEXT, --text TEXT  Text to simulate pasting, uses copied text if not provided (default: None)
  -S, --no-strip        Do not strip leading/trailing whitespace (default: False)
  -V, --version         show program's version number and exit

Invoking dfwp without A Terminal

You can install the tool using pipx install dont-fuck-with-paste and use software like Alfred / Keyboard Maestro / Raycast to invoke the simulated pasting by running dfwp or ~/.local/bin/dfwp with a keyboard shortcut or keyword.

Develop

$ git clone https://github.com/tddschn/dont-fuck-with-paste.git
$ cd dont-fuck-with-paste
$ poetry install

Credits

The naming was inspired by a browser extension with a similar name.

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

dont_fuck_with_paste-0.1.4.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dont_fuck_with_paste-0.1.4-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file dont_fuck_with_paste-0.1.4.tar.gz.

File metadata

  • Download URL: dont_fuck_with_paste-0.1.4.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.4 Darwin/23.4.0

File hashes

Hashes for dont_fuck_with_paste-0.1.4.tar.gz
Algorithm Hash digest
SHA256 736b4b7f63195b0101f22e83b9f2ec5315b0d32872cafeb0c28f824185bd5ac6
MD5 5ef89e4ab02a7cceb68761cc77e9e48f
BLAKE2b-256 19ff85992745d47213417bb73525eb02f842900e482da653c080b2aea08c43d5

See more details on using hashes here.

File details

Details for the file dont_fuck_with_paste-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for dont_fuck_with_paste-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ddf43e5ccb5adedad3b09484277f8780d6b91cf7b1d989089efe93feefe6b470
MD5 8e7e4f4f2a45a2894fb72992dd618de8
BLAKE2b-256 99aef7f6a563f3c98b301ba8a7fa98c325c60c9b2ebe57c09f8751605a12c3c9

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