semvec/pypi-packages huggingface dataset:
cawspr 0.1.2
Case and word separation preserving replace
Requires Python: >=3.10,<4.0

# cawspr

Case And Word Separation Preserving Replace (CAWSPR)

## What does this do?

This script is as simple as it is stupid: You give it a list of words to
replace (e.g. `hello world`) and a list of words to replace them with (e.g.
`goodbye world`) and it will perform this replacement for various compositions
of these words that are common e.g. in programming:

- separated by spaces: `hello world` → `goodbye world`
- lowercase and separated by underscores (snake_case):
  `hello_world` → `goodbye_world`
- uppercase and separated by underscores (SCREAMING_SNAKE_CASE):
  `HELLO_WORLD` → `GOODBYE_WORLD`
- lowercase and separated by hyphens (kebab-case):
  `hello-world` → `goodbye-world`
- separated only by capitalizing the first letter of each word (CamelCase):
  `HelloWorld` → `GoodbyeWorld`
- separated only by capitalizing the first letter of each word except the first
  (lowerCamelCase):
  `helloWorld` → `goodbyeWorld`

The text in which to make these replacements must be piped into the script's
standard input and it will output the resulting modified text to standard
output.

That's it.

## Installation

```bash
pip3 install cawspr
```

## Usage

Replacing all occurrences of `hello world` and its variants in a file
`original.txt` with `goodbye world` and writing the result to `replaced.txt`:

```bash
cat original.txt | cawspr 'hello world' 'goodbye world' > replaced.txt
```

## Advertisement

Want to perform such replacements for both file contents *and* file paths in a
directory recursively? Consider
[full-apply](https://gitlab.com/smheidrich/full-apply) which works great with
cawspr!

## Similar projects and other resources

- [Softwarerecs StackExchange
  question](https://softwarerecs.stackexchange.com/q/84786/13721) in which I
  asked if anyone knows of an existing CLI tool that does this (perhaps more
  will crop up in the future)
- The answers to [this StackOverflow question] are full of links to vim plugins
  for the same purpose (but I wanted it as a CLI tool):
  - [abolish.vim](https://github.com/tpope/vim-abolish) (can do this and other
    loosely related things)
  - [SmartCase](https://www.vim.org/scripts/script.php?script_id=1359)
  - [keepcase.vim](https://www.vim.org/scripts/script.php?script_id=6)
peekplus 2.1.8
An animated GIF recorder
Requires Python: >=3.7

### Cross platform Python port of [Peek](https://github.com/phw/peek)

<br/>

# PeekPlus - an animated GIF recorder

### Simple screen recorder with an easy to use interface.

<br/>
<br/>

![Peek recording itself](https://raw.githubusercontent.com/firatkiral/peek/main/data/screenshot/peek-recording-itself.gif)

<br/>
<br/>

### install:

```console
pip install peekplus
```


### Usage:

```console
python -m peekplus
```

### Ffmpeg

Windows and mac ffmpeg binaries are included in the package. Linux users need to install ffmpeg.

<br/>
<br/>

## License
PeekPlus Copyright © 2022

Peek is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Peek is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Peek.  If not, see <https://www.gnu.org/licenses/>.