Code Challenge 54 – Python Clipboard History

By on 9 October 2018

It’s not that I’m so smart, it’s just that I stay with problems longer. – A. Einstein

Hey Pythonistas,

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 Challenge

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.

PyBites Community

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.

  • PyBites is here to challenge you because becoming a better Pythonista requires practice, a lot of it. For any feedback, issues or ideas use GH Issues, tweet us or ping us on our Slack.


>>> from pybites import Bob, Julian

Keep Calm and Code in Python!

Want a career as a Python Developer but not sure where to start?