Metadata-Version: 2.4
Name: selectic-py
Version: 0.1.0
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
License-File: LICENSE
Requires-Python: >=3.8
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM

# selectic-py

Python bindings for the `selectic` Rust library, providing cross-platform access to user selections.

## Installation

```bash
pip install selectic
```

Or install from source:

```bash
git clone https://github.com/zibo-chen/selectic-py.git
cd selectic-py
pip install -e .
```

## Requirements

- Python 3.7+
- Rust compiler (for installation from source)
- [setuptools-rust](https://github.com/PyO3/setuptools-rust) (for installation from source)

## Usage

### Getting the Current Selection

```python
import selectic_py

try:
    # Get the currently selected text
    text = selectic_py.get_text()
    print(f"Selected text: {text}")
except Exception as e:
    print(f"Error getting text: {e}")
```

## License

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

