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, 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
Note: If you are installing xerox on Windows, you will also need to install the pywin32 module.
Legal Stuff
MIT License.
(c) 2016 Kenneth Reitz.
Metadata
Release files for xerox 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| xerox-0.4.1.tar.gz | 4.6 kB | Without provenance | Details for xerox-0.4.1.tar.gz |
Release files / xerox-0.4.1.tar.gz
| Download URL | xerox-0.4.1.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1b598ed4ba017374f02e9cef983febdd19dba79a5301856fdba985c490b14325
|
|
BLAKE2b-256 checksum How to use checksums |
a8f248a3fb98b128e77e0c1e15a80c71d397c1ac1a4ed6db00e3e7307f767f93
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for xerox 0.4.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.