Skip to content
This repository

HTTPS clone URL

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 MANIFEST.in Setup.py for pypi. September 09, 2010
Octocat-spinner-32 README.rst Added cli for xerox August 22, 2013
Octocat-spinner-32 setup.py Replace tabs -> spaces in setup.py February 28, 2014
Octocat-spinner-32 test_xerox.py Unit-tests. September 09, 2010
README.rst

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

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

or:

echo some string | xerox

To paste:

>>> xerox
some string

Installation

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.