• Stars
    star
    229
  • Rank 173,701 (Top 4 %)
  • Language
    Python
  • License
    MIT License
  • Created about 14 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Copy + Paste in Python.

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.

Note: On X11 systems, Xerox requires Xclip, which can be found through your system package manager (e.g. apt-get install xclip) or at https://github.com/astrand/xclip

Legal Stuff

MIT License.

(c) 2016 Kenneth Reitz.

More Repositories

1

pyandoc

Python wrapper for Pandocβ€”the universal document converter.
Python
212
star
2

reportik

Neural Abstractive News Article Summarization Using Sequence-to-Sequence Models
Python
4
star
3

RubeGoldbergSoftware

Triggers for Rube Goldberg machines. Not actively maintained.
Python
3
star
4

flexapp

An alternative client for the FlexTime product by TeachMore.
HTML
3
star
5

adityarathod.github.io

Source code of my website.
CSS
3
star
6

zetaboard

A leaderboard for Zetamac
TypeScript
3
star
7

travyl

Leveraging LLMs to curate tailored travel itineraries for airline customers. Winner of American Airlines challenge @ TAMUhack 2023.
TypeScript
3
star
8

texas-grid-load-tracker

A web dashboard that collected and displayed available grid power over the 2021 Texas power crisis.
TypeScript
2
star
9

hide-linkedin-feed

Hides the LinkedIn feed to reduce job-seeking anxiety
JavaScript
2
star
10

dancevak

vishvak got moves
TypeScript
2
star
11

GetSomeZen

Electron app that advises you using the AdviceSlip API.
JavaScript
2
star
12

snowflakey

a tiny go library to implement snowflake addressing
Go
2
star
13

eyealert

Realtime attentiveness analytics for critical environments. Winner of Lockheed & Children's Health challenges @ HackDFW 2022.
TypeScript
2
star
14

deeplearning

Course notes and code for the 6.S191 course by MIT.
1
star
15

flexapi

An API for the FlexTime product by TeachMore
JavaScript
1
star
16

mushroom-decision-tree

A decision tree classifier built from scratch to classify mushrooms based on the UCI Mushroom dataset.
Python
1
star
17

cdm-parser

A parser for public chargemaster data provided by hospitals.
Python
1
star
18

notes

A repository of notes taken throughout my undergraduate career
HTML
1
star
19

triaged

ML-powered medical triage tool. Submitted to HackMIT 2020.
TypeScript
1
star
20

virtual-ta

Rasa-based Virtual TA app designed to support algorithms courses
Python
1
star
21

FruitClassifier

A reimplementation of a fruit classifier in TensorFlow 2.0 based on the Fruit360 paper + dataset
Python
1
star
22

dotfiles

Public mirror of my dotfiles.
Shell
1
star