Shouldn't need anything by the default python install. But in case it does this program uses os, sys, subprocess, and argparse.
Which would just be a simple pip install <package-name>
-l or --list is to list all your vm's other than that its just `python copypasta.py vm name 'the string you want to send surrounded by single quotes'
python copypasta.py uwu11 'https://www.google.com/'
or
python copypasta.py -l
# KVM virsh send-key example (Control-Alt-Delete and more) Things like;
--holdtime 1000
holds the key down for a hot minute and
KEY_LEFTCRTL
are also valid. This link also has more notes about what hexadecimal value press what keys.
I'm lazy as shit. I didn't want to do all the work to set up a spice server just to be able to copy and paste some stuff sometimes. That's also why I used python, no offense but its a pretty lazy programming language but also convenient when I don't wanna open an IDE to program things and stuff.
This is a lazy way to copy and paste text into a QEMU/Libvirt VM.