semvec/pypi-packages huggingface dataset:
PyWindowsCMD 1.3.8
A Python library to simplify working with Windows command-line utilities like `netstat`, `shutdown`, and `taskkill`, providing structured output and a convenient interface.

# PyWindowsCMD: Simplify Windows Command-Line Interactions

PyWindowsCMD is a Python library designed to streamline working with common Windows command-line tools. It provides convenient functions and parameter handling for commands like `netstat`, `shutdown`, and `taskkill`, abstracting away the complexities of constructing and executing these commands directly.


## Key Features

*   **Simplified Command Execution:** Construct and execute Windows commands with intuitive function calls and parameter management.
*   **Structured Output Parsing:** Process the output of commands like `netstat` into easy-to-use Pandas DataFrames.
*   **Cross-Compatibility:** Designed to work seamlessly across various Windows versions.
*   **Clear Documentation and Examples:** Well-documented code and usage examples to get you started quickly.


## Installation

* **With pip:**
    ```bash
    pip install PyWindowsCMD
    ```

* **With git:**
    ```bash
    pip install git+https://github.com/oddshellnick/PyWindowsCMD.git
    ```


## Current Functionality

*   **netstat:** Retrieve system network statistics, including active connections, routing tables, and interface information. Parse the returned data directly into Pandas DataFrames. Conveniently find free ports on localhost.
*   **shutdown:** Initiate shutdowns and restarts of local or remote Windows systems with various options (forceful shutdown, reason logging, timeout period, etc.).
*   **taskkill:** Terminate processes based on various criteria such as image name or process ID.


## Usage Examples

**taskkill:**

```python
from PyWindowsCMD.taskkill.parameters import ImageName
from PyWindowsCMD.taskkill import taskkill_windows

# Forcefully kill all notepad.exe processes
taskkill_windows("/F", selectors=ImageName("notepad.exe"))
```

**netstat:**

```python
from PyWindowsCMD.netstat import get_netstat_connections_data

# Get all active TCP connections
connections = get_netstat_connections_data(protocol="TCP")
```

**shutdown:**

```python
from PyWindowsCMD.shutdown.parameters import ShutdownReason, ShutdownReasonType, ShutdownType
from PyWindowsCMD.shutdown import shutdown_windows

# Restart the local machine after 60 seconds, logging the reason
shutdown_windows(ShutdownType.restart, time_out_period=60, shutdown_reason=ShutdownReason(ShutdownReasonType.planned, 4, 2))
```


More comprehensive usage examples and detailed documentation can be found within the project's source code docstrings.


## Future Notes

PyWindowsCMD is an ongoing project and will be expanded to support more Windows commands in the future. We welcome contributions from the community. Feel free to suggest new commands to be added or submit pull requests with your own implementations.
cat-readme 0.1.1
A command-line tool to display markdown files with rich formatting.
Requires Python: >=3.6

# cat-readme

A command-line tool to display markdown files with rich formatting.

## Installation

```bash
pip install cat-readme
```

## Usage

```bash
cat-readme [README_FILE]
```

### Arguments
- `README_FILE`: Path to the markdown file you want to display

## Features
- Rich text formatting in the terminal
- Supports standard markdown syntax
- Simple and intuitive command-line interface
ceonstock 0.2.7
Add your description here
Requires Python: >=3.11

# cstock_python
Must function with python 3.11 to be compatible with Hou and other apps

[![Python application](https://github.com/Ceonsamea/cstock_python/actions/workflows/python-app.yml/badge.svg?branch=main)](https://github.com/Ceonsamea/cstock_python/actions/workflows/python-app.yml)
bs-log-decorator 0.1.0
Um decorador de logging flexível para Python
Requires Python: >=3.7

# log-decorator

Um decorador de logging flexível e poderoso para Python, construído sobre o Loguru.

Criado por [Bruno Sardou](https://github.com/bruno-sardou)

## Características

- Decorador de funções para logging automático
- Filtragem hierárquica de níveis de log
- Exibição colorida no console
- Criação automática de diretórios de log
- Registro em arquivo e console simultaneamente
- Informações de contexto (usuário, arquivo)
- Uso flexível (com ou sem parênteses)

## Instalação

```bash
pip install log-decorator
```

Ou com Poetry:

```bash
poetry add log-decorator
```

## Uso Básico

```python
from log_decorator import log_decorator

# Uso básico (nível INFO padrão)
@log_decorator
def soma(a, b):
    return a + b

# Especificando um nível
@log_decorator(level="DEBUG")
def multiplica(a, b):
    return a * b

# Função que gera erro
@log_decorator(level="ERROR")
def divide(a, b):
    return a / b

# Usando as funções
soma(5, 3)       # Registra chamada e resultado no nível INFO
multiplica(4, 2)  # Registra chamada e resultado no nível DEBUG
divide(10, 0)     # Registra erro no nível ERROR
```

## Níveis Disponíveis

- TRACE (5)
- DEBUG (10)
- INFO (20)
- SUCCESS (25)
- WARNING (30)
- ERROR (40)
- CRITICAL (50)

## Saída de Log

No console (colorido):
```
INFO | Executando 'soma' com args=(5, 3), kwargs={}
SUCCESS | Resultado de 'soma': 8
```

No arquivo de log (pasta `logs/` no diretório do projeto):
```
2025-03-01T14:23:45.123456 | INFO | Executando 'soma' com args=(5, 3), kwargs={} | Usuário: joao | Arquivo: exemplo.py
2025-03-01T14:23:45.123498 | SUCCESS | Resultado de 'soma': 8 | Usuário: joao | Arquivo: exemplo.py
```

## Licença

MIT