semvec/pypi-packages huggingface dataset:
smart_code 0.5.0
Static analysis tool for Python code optimization suggestions
Requires Python: >=3.8

# smart_code

Current version: **0.5.0**

smart_code is a static analysis tool that detects inefficient Python code patterns (AST-based) and provides optimization suggestions. It covers Pandas/NumPy anti-patterns, algorithmic inefficiencies, and common Python pitfalls.

## Features

- **AST-Based Analysis**: Accurately detects code patterns without executing code.
- **Rich Pattern Library**: Covers a wide range of anti-patterns from Pandas usage to algorithmic mistakes.
- **Click-to-Navigate Output**: Terminal output is formatted as `file:line: message`, allowing you to jump directly to the code in modern IDEs (like VS Code or PyCharm).
- **Multi-language Support**: Suggestions can be displayed in English or Chinese.
- **Codemod Refactoring**: Optionally rewrite code in-place using built-in transformations.


## Usage

### Command-Line Interface

Analyze one or more Python files:
```bash
smart_code path/to/your_script.py [another_file.py ...]
```

To receive suggestions in Chinese, use the `--lang zh` flag:
```bash
smart_code path/to/your_script.py --lang en
```

To automatically rewrite files with codemods while still printing the detected issues, add the `--codemod` flag:
```bash
smart_code --codemod your_script.py
```

### Python API

You can also use `smart_code` programmatically in your own scripts.

```python
from smart_code.analyzer import CodeAnalyzer
from smart_code.suggest import format_issue

# Initialize the analyzer in a specific language ('zh' or 'en')
analyzer = CodeAnalyzer(lang='en')

issues = analyzer.analyze_file("script.py")

for issue in issues:
    # Format the output for printing
    formatted_message = format_issue(issue, lang='en')
    print(f"script.py:{issue['lineno']}: {formatted_message}")

# The raw issue dictionary is also available
# print(issues)
```
wincontd 2.2.0
Lightweight Windows Container Runtime CLI

# wincontd – Lightweight Windows Container CLI

A lightweight alternative to Docker Desktop for Windows. No WSL2 required.

## ✨ Features

- Runs native Windows containers
- No WSL2 or Docker Desktop needed
- Supports Docker CLI via `nerdctl`
- Easy install & activation

## 🚀 Usage

```powershell
pip install wincontd
wincontd install
wincontd start
wincontd activate
docker run mcr.microsoft.com/windows/nanoserver:ltsc2022 echo "Hello from Windows container!"