semvec/pypi-packages huggingface dataset:
whitespace-normalizer 2025.9.14911
import re   def compress_whitespace(text: str) -> str:     """     Collapse runs of spaces/tabs to a single space on each line, trim traili…
License: MIT License
Requires Python: >=3.9

[![PyPI version](https://badge.fury.io/py/whitespace_normalizer.svg)](https://badge.fury.io/py/whitespace_normalizer)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
[![Downloads](https://static.pepy.tech/badge/whitespace_normalizer)](https://pepy.tech/project/whitespace_normalizer)
[![LinkedIn](https://img.shields.io/badge/LinkedIn-blue)](https://www.linkedin.com/in/eugene-evstafev-716669181/)

# whitespace_normalizer

`whitespace_normalizer` is a Python package designed to clean and standardize whitespace within text. It collapses multiple spaces and tabs into single spaces on each line, trims trailing whitespace, and removes entirely blank lines.

## Installation

To install `whitespace_normalizer`, use pip:

```bash
pip install whitespace_normalizer
```

## Usage

Using `whitespace_normalizer` is straightforward. Import the `normalize_whitespace` function and pass your string to it.

```python
from whitespace_normalizer import normalize_whitespace

text_with_messy_whitespace = """
This is a   string   with
extra     spaces.

And some
trailing whitespace.   
"""

cleaned_text = normalize_whitespace(text_with_messy_whitespace)
print(cleaned_text)
```

This will output:

```
This is a string with
extra spaces.
And some
trailing whitespace.
```

## Features

- Collapses consecutive spaces and tabs into a single space per line.
- Removes trailing whitespace from each line.
- Eliminates empty lines from the text.

## Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the [issues page](https://github.com/chigwell/whitespace_normalizer/issues).

## License

`whitespace_normalizer` is licensed under the [MIT License](https://choosealicense.com/licenses/mit/).

## Author

**Eugene Evstafev**
- LinkedIn: [![LinkedIn](https://img.shields.io/badge/LinkedIn-blue)](https://www.linkedin.com/in/eugene-evstafev-716669181/)

## Repository

[https://github.com/chigwell/whitespace_normalizer](https://github.com/chigwell/whitespace_normalizer)
zwsp-linker 2025.9.1498
# init.py import re   def safelink_zwsp(text: str) -> str:     """     Insert zero-width spaces into URLs to prevent auto-linking and allow…
License: MIT License
Requires Python: >=3.9

[![PyPI version](https://badge.fury.io/py/zwsp_linker.svg)](https://badge.fury.io/py/zwsp_linker)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
[![Downloads](https://static.pepy.tech/badge/zwsp_linker)](https://pepy.tech/project/zwsp_linker)
[![LinkedIn](https://img.shields.io/badge/LinkedIn-blue)](https://www.linkedin.com/in/eugene-evstafev-716669181/)

# zwsp_linker

`zwsp_linker` is a Python package designed to insert zero-width spaces into URLs within text. This is particularly useful for preventing automatic hyperlinking in markdown or other text rendering environments, while still allowing users to easily copy and paste the complete URL.

## Installation

To install `zwsp_linker`, use pip:

```bash
pip install zwsp_linker
```

## Usage

Using `zwsp_linker` is straightforward. Import the `safelink_zwsp` function and pass your text to it.

```python
from zwsp_linker import safelink_zwsp

text_with_urls = "Check out this link: http://example.com and another one https://anothersite.org."
modified_text = safelink_zwsp(text_with_urls)

print(modified_text)
# Expected output (the zero-width space is invisible):
# Check out this link: http://​example.com and another one https://​anothersite.org.
```

## How it works

The `safelink_zwsp` function uses regular expressions to find common URL schemes (like `http://` or `https://`) and inserts a zero-width space character (U+200B) immediately after the scheme. This subtle modification disrupts the automatic hyperlinking behavior of many renderers without affecting the visual appearance or the ability to copy the URL.

## Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the [issues page](https://github.com/chigwell/zwsp_linker/issues).

## License

`zwsp_linker` is licensed under the [MIT License](https://choosealicense.com/licenses/mit/).

## Author

Eugene Evstafev <hi@eugene.plus> - [LinkedIn](https://www.linkedin.com/in/eugene-evstafev-716669181/)

## Repository

The project is hosted on GitHub: [https://github.com/chigwell/zwsp_linker](https://github.com/chigwell/zwsp_linker)
emoji-getter 2025.9.1494
import re   def emoji_extract(text: str) -> str:     """     Return a string that contains only emoji characters from text.     Heuristic c…
License: MIT License
Requires Python: >=3.9

[![PyPI version](https://badge.fury.io/py/emoji_getter.svg)](https://badge.fury.io/py/emoji_getter)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
[![Downloads](https://static.pepy.tech/badge/emoji_getter)](https://pepy.tech/project/emoji_getter)
[![LinkedIn](https://img.shields.io/badge/LinkedIn-blue)](https://www.linkedin.com/in/eugene-evstafev-716669181/)

# emoji_getter

`emoji_getter` is a Python package designed to extract emoji characters from a given text string. It uses a regular expression to identify and collect common emoji patterns.

## Installation

To install `emoji_getter`, use pip:

```bash
pip install emoji_getter
```

## Usage

Using `emoji_getter` is straightforward. Here's an example:

```python
from emoji_getter import emoji_extract

text_with_emojis = "Hello world! 👋 This is a test with some emojis: 😊👍🚀."
emojis = emoji_extract(text_with_emojis)
print(emojis)
```

This will output:

```
👋😊👍🚀
```

## Features

- Extracts emoji characters from text using a predefined regex.
- Returns a string containing only the found emojis.

## Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the [issues page](https://github.com/chigwell/emoji_getter/issues).

## License

`emoji_getter` is licensed under the [MIT License](https://choosealicense.com/licenses/mit/).

## Author

- Eugene Evstafev <hi@eugene.plus>

**Repository:** [https://github.com/chigwell/emoji_getter](https://github.com/chigwell/emoji_getter)