semvec/pypi-packages huggingface dataset:
polishboiyt-utils 1.0
Tools for people (like me) to make their lives easier.
Requires Python: >=3.9

# polishboiyt-utils

A library that makes your lives less miserable by adding useful stuff that took me longer than I thought.

To install, use `pip install polishboiyt-utils`.

## Like?
Text stuff!

stdout (Standard Output) stuff (basically `print()` but with more features)!

## Examples

### Text
Creating a Text() object with a string
```python
from polishboiyt_utils import Text

text = Text("Your text goes here")
```
Creating a Text() object with a file
```python
from polishboiyt_utils import Text

text = Text(file="example.txt")

# example.txt:
# Your file contents go here
```
Reversing text
```python
from polishboiyt_utils import Text

text = Text("Hello, World!")
print(text.reverse())
# Outputs "!dlroW ,olleH"
```
Altering text case.
```python
from polishboiyt_utils import Text

text = Text("Hello, World!")
print(text.alter_case())
# Outputs "hElLo, WoRlD!"
```
Shuffling the text
```python
from polishboiyt_utils import Text

text = Text("Hello, World!")

print(text.shuffle())
# Outputs something like "!rleHodl oW," (random every time!)
```
Removing duplicate spaces
```python
from polishboiyt_utils import Text

text = Text("Example text with    spaces.")
print(text.trim_spaces())
# Outputs "Example text with spaces."
```
Checking if the text is a palindrome
```python
from polishboiyt_utils import Text

palindrome = Text("racecar")
print(palindrome.is_palindrome())
# Outputs True
not_palindrome = Text("hello")
print(not_palindrome.is_palindrome())
# Outputs False
```
Removing HTML tags ("`<code><p>Example</p></code>`")
```python
from polishboiyt_utils import Text

html = Text("<p>Hello, World!</p>")
print(html.remove_html())
# Outputs "Hello, World!"
```
### stdout
Typewriting text.
```python
from polishboiyt_utils import stdout
stdout.typewrite("Your text goes here", interval=0.075)
```
Logging text
```python
from polishboiyt_utils import stdout
stdout.log(stdout.LogTypes.ERR, "Hello, World!")
```
Blinking text
```python
from polishboiyt_utils import stdout
stdout.blink_text("Hello, World!", 5, 0.5)
```
Creating a progress bar
```python
from polishboiyt_utils import stdout
maximum = 100
items = range(maximum)
total_items = len(items)

stdout.progress_bar(items, total_items, progress_interval=0.2)
# Do actions after..
print("Complete!")
```

# Adding more soon. (when i feel like it)
davidsousa 0.3.0
Biblioteca para envio de e-mails com suporte a HTML e prioridade (Experimental). (Gmail)
Requires Python: >=3.6
Keywords: email gmail smtp sending

# davidsousa

## Biblioteca para envio de e-mails com suporte a HTML e prioridade (Experimental). (Gmail)

### Instalação

```

pip install davidsousa


```

### Uso .py

```

from davidsousa import enviar_email

nome_remetente = "Seu Nome"
remetente = "seu_email@gmail.com"
senha = "sua_senha"
destinatario = "destinatario@example.com"
assunto = "Assunto do E-mail"
corpo = "<h1>Este é o assunto do e-mail</h1><p>Este é o corpo do e-mail em HTML.</p>"


# Enviar e-mail com corpo em HTML e marcado como importante
enviar_email(nome_remetente, remetente, senha, destinatario, assunto, corpo, importante=True, html=True)



```
spinex-clustering 0.0.1
An advanced clustering algorithm with multi-level analysis capabilities
Requires Python: >=3.7

# File: README.md
# SPINEX Clustering

SPINEX (Similarity-based Predictions and Explainable Neighbors Exploration) Clustering is an advanced clustering algorithm that combines multiple similarity measures with multi-level analysis capabilities.

## Features

- Multiple similarity methods (correlation, spearman, kernel, cosine)
- Multi-level clustering capabilities
- Parallel processing support
- Explainable results with similarity and neighbor analysis
- Automatic threshold determination
- PCA dimensionality reduction option
- Comprehensive evaluation metrics

## Installation

```bash
pip install spinex-clustering
```

## Quick Start

```python
from spinex_clustering import SPINEX_Clustering
import numpy as np

# Create sample data
X = np.random.randn(100, 10)

# Initialize and fit the clustering model
model = SPINEX_Clustering(
    threshold='auto',
    use_multi_level=True,
    enable_similarity_analysis=True
)

# Get cluster labels
labels = model.fit_predict(X)

# Print first few labels to verify it worked
print("First few cluster labels:", labels[:10])
```

## Documentation

For detailed documentation and examples, visit [documentation link].

## License

This project is licensed under the MIT License - see the LICENSE file for details.
comtacts 0.1.0
A tool to remember and detect communication ports using hardware identifiers
Requires Python: >=3.10

![COMtacts](./assets/logo.png)

This is a tool to remember and detect communication ports using hardware identifiers.

## Usage

### Add a contact

Lets assume you've plugged in a USB device and you know it is currently at port "COM3". We will use COMtacts to remember this hardware so next time you plug it in, we can find it even if its not at "COM3".

```bash
comtacts add --name "My USB Device" --port "COM3"
```

To overwrite an existing contact:

```bash
comtacts add --name "My USB Device" --port "COM3" --overwrite
```

or if you're in python already:

```python
from comtacts import add_port
add_port(name="My USB Device", port="COM3", overwrite=False) # or overwrite=True, up to you
```

### Get the port of a contact

```bash
comtacts get --name "My USB Device"
```

or if you're in python already:

```python
from comtacts import get_port
get_port(name="My USB Device")
```

Typical usage would be to let your Python script automatically find the port of a device.

```python
from serial import Serial
from comtacts import get_port

ser = Serial(
    port = get_port(name="My USB Device"),
    baudrate = 9600,
    timeout = 1
)
```

### List all contacts

```bash
comtacts all
```

or if you're in python already:

```python
from comtacts import all_contacts
all_contacts()
```

### See where contacts are stored

```bash
comtacts where
```

### Advanced usage -- finding a contact using hardware identifiers

Under the hood, COMtacts uses `serial.tools.list_ports.comports()` to find serial ports. `list_ports.comports()` returns a list of `serial.tools.list_ports.ListPortInfo` objects, which have attributes that can be used to identify a device. If you know the values of these attributes for your device, you can use them to find the port. See the [documentation](<[function](https://pyserial.readthedocs.io/en/latest/tools.html)>) on these functions to see which attributes are available.

For example, if you know the manufacturer, vid, and pid of your device, you can use the `manufacturer`, `vid`, and `pid` attributes to find the port:

```python
from comtacts import get_port_with_attributes
get_port_with_attributes(manufacturer="My Manufacturer", vid="0403", pid="6001")
```

## Making contacts available to all python environments

By default, COMtacts saves contacts _inside its package directory_. This was done such that contacts are specific to a python environment -- most of my use cases are specific to a certain application. If you would like to make contacts available to all python environments, you can set the `COMTACTS_DIR` environment variable to the directory where you would like to save contacts.