A better copy-paster
Project description
prettycopy
A beginner-friendly library for clean, format-friendly copy-pasting.
Overview
Copying and pasting text is one of the most commonly-used functionalities we have on our computers. But sometimes, there are formatting issues in the text you're copying that a simple 'paste without formatting' can't fix.
Enter prettycopy.
PrettyCopy will help you clean up the text on your clipboard before you paste it. Just copy text, run a PrettyCopy function, and you'll be able to paste it with corrections already in place!
Installation
If you already have Python, just run:
pip install prettycopy
Usage
Copy a piece of text. Run a PrettyCopy function. Now, when you paste, the text will already by corrected. That's all!
For added flexibility:
You can enter the text as an argument to the function, and PrettyCopy will automatically copy the corrected text to your clipboard. Plus, if you're using PrettyCopy functions through code, the functions return the corrected text as a string.
Functions
prettycopy.nonewlines(optional_text)
: Removes all line breaks from the text.
prettycopy.nobullets(optional_text)
: Removes all bullet symbols (•) and replaces them with line breaks.
prettycopy.bullettopar(optional_text)
: Removes all line breaks and bullet symbols (•) and replaces them with spaces, returning a single paragraph.
prettycopy.simplequote(optional_text)
: Adds quotation marks around the text.
prettycopy.quote(optional_end_punctuation, optional_text)
: Adds quotation marks around the text, ending in a punctuation mark. The default is a comma.
Example: this is a test --> prettycopy.quote() --> "this is a test,"
Example: this is a test --> prettycopy.quote('!') --> "this is a test!"
Future Functions
prettycopy.betterbullets(docID)
: If you enter the document ID of an editable Google Doc (the long string of letters and numbers in the URL), this function will copy the text in your clipboard to the end of the document, replacing all bullet symbols (•) with correctly-formatted bullet points. Still under construction.
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
File details
Details for the file prettycopy-0.1.1.tar.gz
.
File metadata
- Download URL: prettycopy-0.1.1.tar.gz
- Upload date:
- Size: 19.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c109e34d3c51acfb314f3ea1c28f779b03a2f1fca3ccc684e9917f67f8d88db |
|
MD5 | 02c01ad8a5cfb775e3d82c97a937cdaa |
|
BLAKE2b-256 | 30f2e974ddb8d657c5dec22f9f144c6c0cd2413c056b9d0c6bef5d2a983fd629 |