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
pyperclip module 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!
Do you want to get 250+ concise and applicable Python tips in an ebook that will cost you less than 10 bucks (future updates included), check it out here.
"The discussions are succinct yet thorough enough to give you a solid grasp of the particular problem. I just wish I would have had this book when I started learning Python." - Daniel H
"Bob and Julian are the masters at aggregating these small snippets of code that can really make certain aspects of coding easier." - Jesse B
"This is now my favourite first Python go-to reference." - Anthony L
"Do you ever go on one of those cooking websites for a recipe and have to scroll for what feels like an eternity to get to the ingredients and the 4 steps the recipe actually takes? This is the opposite of that." - Sergio S