semvec/pypi-packages huggingface dataset:
spacemouse-sdk 0.1.1
A Python SDK for spacemouse functionality
Requires Python: >=3.8
Keywords: spacemouse, input, device, sdk, 3d-mouse

# Spacemouse SDK

A Python SDK for spacemouse functionality.

## Installation

You can install the package from PyPI:

```bash
pip install spacemouse-sdk
```

Or install from source:

```bash
git clone https://github.com/simonfall/spacemouse-sdk.git
cd spacemouse-sdk
pip install -e .
```

## Usage

```python
import spacemouse_sdk

# Example usage
client = spacemouse_sdk.SpacemouseClient()
client.connect()
```

## Development

### Setup Development Environment

1. Clone the repository:
```bash
git clone https://github.com/simonfall/spacemouse-sdk.git
cd spacemouse-sdk
```

2. Create a virtual environment:
```bash
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
```

3. Install development dependencies:
```bash
pip install -e ".[dev]"
```

### Running Tests

```bash
pytest
```

### Code Formatting

```bash
black src tests
isort src tests
```

### Type Checking

```bash
mypy src
```

## Contributing

1. Fork the repository
2. Create a feature branch (`git checkout -b feature/amazing-feature`)
3. Commit your changes (`git commit -m 'Add some amazing feature'`)
4. Push to the branch (`git push origin feature/amazing-feature`)
5. Open a Pull Request

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## Changelog

See [CHANGELOG.md](CHANGELOG.md) for a list of changes.
sqlfluff-pyspark 0.1.1
Checks and fixes SQL code for PySpark SQL using SQLFluff.
Requires Python: >=3.10

# sqlfluff-pyspark

Lint and optionally fix SQL embedded in `spark.sql(...)` calls using [SQLFluff](https://github.com/sqlfluff/sqlfluff).

## Installation

```bash
pip install sqlfluff-pyspark
```

## Command Line Usage

```bash
# Lint spark.sql strings
sqlfluff-pyspark path/to/file.py another_file.py

# Apply fixes (writes changes back to the files)
sqlfluff-pyspark --fix path/to/file.py
```

Exit codes:
- 0: Success / no actionable snippets / no violations
- 1: Lint violations found (printed to stderr) or fixes applied and re-lint failed
- >1: Unexpected error from sqlfluff invocation

## Pre-commit Hook Integration

This project provides pre-commit hooks so you can automatically lint (and optionally fix) `spark.sql` strings before committing.

Add the following to your `.pre-commit-config.yaml`:

```yaml
repos:
  - repo: https://github.com/danieltom/sqlfluff-pyspark
    rev: v0.1.0  # or the latest tag
    hooks:
      - id: sqlfluff-pyspark-lint
      # Optional fix hook (will modify files). Normally run separately or in CI.
      # - id: sqlfluff-pyspark-fix
```

Then install:

```bash
pre-commit install
```

### Choosing lint vs fix hook

Use the lint hook locally to keep commits clean. Run the fix hook manually:

```bash
pre-commit run sqlfluff-pyspark-fix --all-files
```

or directly:

```bash
sqlfluff-pyspark --fix your_script.py
```

## How It Works

1. Parses Python source with `ast` to find calls to `spark.sql(...)`.
2. Extracts string literals (skips f-strings and non-constant expressions).
3. Writes each snippet to a temp SQL file and calls `sqlfluff` on them.
4. Translates violation line numbers back to original file positions.
5. For fixes, rewrites the original string literals preserving style (indent, quoting) when possible.

Inline directive `sqlfluff:` anywhere in the literal will skip linting/fixing for that snippet.

## Limitations / Notes

- F-strings are skipped (dynamic content).
- Concatenated string literals are supported (`"SELECT" + " 1"`).
- Multi-line snippets are normalized with indentation preserved.
- Only supports `.py` files passed explicitly; it does not auto-discover.

## Development

```bash
pip install -e .[dev]
pytest -vv
```

## Versioning

The hook `rev` should match a published tag. If using main, be aware of potential breaking changes.

## License

MIT
pytelecomm 2.0.0
Exploration of telecommunication theory in Python.
Requires Python: >=3.8

[![Hatch project](https://img.shields.io/badge/%F0%9F%A5%9A-Hatch-4051b5.svg)](https://github.com/capn-freako/pytelecomm)

# PyTeleComm

Exploration of telecommunications theory in Python.
loam 0.9.0
Light configuration manager
Requires Python: >=3.10

[![PyPI - Version](https://img.shields.io/pypi/v/loam)](https://pypi.org/project/loam/)

loam
====

The main goal of loam is to offer a light and simple interface to manage the
configuration of your own Python application. It avoids you the burden of
writing the code to build the command line argument parser and/or a
configuration file parser in a self-consistent way.
imgcmprs 0.1.2
Fast, safe CLI to compress JPEG & PNG, lossless/lossy, batch or single images.
Requires Python: >=3.7

# imgcmprs

**imgcmprs** is a fast and safe command-line tool to efficiently compress JPEG and PNG images—supporting both lossless and lossy modes, for single files or entire directories.

## 🚀 Features

- **Lossless & Lossy Compression:** Supports both lossless and lossy compression for JPEG and PNG images.
- **Batch & In-Place Modes:** Process many files at once or compress in-place.
- **Recursive Directory Processing:** Optionally traverse and compress entire directory trees.
- **CLI Simplicity:** Intuitive command-line interface with helpful flags.
- **Safe by Design:** Original files are always preserved unless you choose to delete them post-compression.

## 📦 Installation

**Python 3.7+ is required.**

Install from PyPI:
```bash
pip install imgcmprs
```

Install from source (in editable or user-local mode):
```bash
pip install -e .
# Or
pip install --user .
```

## 🤝 Contributing

We welcome all contributions! To get started:

1. **Fork** this repository on GitHub.
2. **Clone** your fork and create a feature branch.
3. Implement your changes, write clear commit messages, and add tests if possible.
4. Open a pull request with a thorough description of what you've changed.

For bug reports or feature requests, please [open an issue](https://github.com/jackgawe/imgcmprs/issues).

Thank you for making **imgcmprs** better!
  
— Made with ❤️ by Eyad Mohammed, from Egypt