Skip to main content

Simple Copy + Paste in Python.

Project description

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, X11 (Linux, BSD, etc.), 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'

On Linux you can optionally also copy into the X selection clipboard for middle-click-paste capability:

xerox.copy(u'Some string', xsel=True)

And you can choose to paste from the X selection rather than the system clipboard:

xerox.paste(xsel=True)

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xerox-0.4.0.tar.gz (4.6 kB view details)

Uploaded Source

File details

Details for the file xerox-0.4.0.tar.gz.

File metadata

  • Download URL: xerox-0.4.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for xerox-0.4.0.tar.gz
Algorithm Hash digest
SHA256 fe604b6073ccda42044892b786a7afcb61c08cbf6091ff16541b511d82f39523
MD5 589354296f411766656a32d3cd12d61d
BLAKE2b-256 6c094eb4ebc083d77e71f4e159ffd5947eb3b136a3165b0ba24b5587405b18c0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page