It's not that I'm so smart, it's just that I stay with problems longer. - A. Einstein
It's time for another code challenge! This week we're asking you to create your own Clipboard History Tool in Python.
This is something that we've been wanting to do for a while so we're looking forward to seeing what you come up with!
The idea here is to capture whatever the user copies to the clipboard (think CTRL C) and "store" it in some way such that the user can see the history of everything they've copied for later reference.
A great starting point would be to look at the
pyperclipmodule for Python.
This can be as simple or as complex as you like. If all you manage to do is get the basics down, that's fine!
Consider creating a GUI!
How will you store text copied to the clipboard? Persistent storage or will the history be wiped every time the script is stopped and started?
How far back will your historical data go?
If you need help getting ready with Github, see our new instruction video.
A few more things before we take off:
Do you want to discuss this challenge and share your Pythonic journey with other passionate Pythonistas? Confirm your email on our platform then request access to our Slack via settings.
>>> from pybites import Bob, Julian Keep Calm and Code in Python!
See an error in this post? Please submit a pull request on Github.