asweigart / pyperclip

Python module for cross-platform clipboard functions.
https://pypi.python.org/pypi/pyperclip
BSD 3-Clause "New" or "Revised" License
1.68k stars 198 forks source link

Access the Mac clipboard directly with the cocoa api #209

Open asweigart opened 3 years ago

asweigart commented 3 years ago

Instead of going through the command line program, access it directly through the API. This is an example program: https://developer.apple.com/library/archive/samplecode/ClipboardViewer/Introduction/Intro.html#//apple_ref/doc/uid/DTS40008825-Intro-DontLinkElementID_2

jaraco commented 2 years ago

The richxerox project and by extension jaraco.clipboard utilize pyobjc to communicate with the APIs directly.