Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Copy + Paste in Python.

branch: master

Merge pull request #15 from thusoy/master

Make CLI work cross-platform
latest commit 3661179e71
Kenneth Reitz authored March 03, 2014
Octocat-spinner-32 xerox Make CLI cross platform February 28, 2014
Octocat-spinner-32 .gitignore 2012 January 12, 2012
Octocat-spinner-32 LICENSE 2012 January 12, 2012
Octocat-spinner-32 for pypi. September 09, 2010
Octocat-spinner-32 README.rst Added cli for xerox August 22, 2013
Octocat-spinner-32 Replace tabs -> spaces in February 28, 2014
Octocat-spinner-32 Unit-tests. September 09, 2010

Xerox: Copy + Paste for Python

Xerox is a copy + paste module for python. It's aim is simple: to be as incredibly simple as possible.

Supported platforms are currently OS X, Linux, and Windows.

If you can make it simpler, please fork.


Usage is as follows:

xerox.copy(u'some string')

And to paste:

>>> xerox.paste()
u'some string'

And, that's it.

Command Line

To copy:

xerox some string


echo some string | xerox

To paste:

>>> xerox
some string


To install Xerox, simply:

$ pip install xerox

Or, if you must:

$ easy_install xerox

Note: If you are installing xerox on Windows, you will also need to install the pywin32 module.

Legal Stuff

MIT License.

(c) 2012 Kenneth Reitz.

Something went wrong with that request. Please try again.