Metadata-Version: 2.4
Name: semantic-eq
Version: 1.0.2
Summary: Python SDK for Semantic Equivalence API - optimize prompts for semantic equivalence
Author-email: Semantic EQ Team <team@semantic-eq.com>
License: MIT
Project-URL: Homepage, https://github.com/paulcrowley/semantic-eq
Project-URL: Repository, https://github.com/paulcrowley/semantic-eq
Project-URL: Issues, https://github.com/paulcrowley/semantic-eq/issues
Keywords: semantic,equivalence,optimization,api,sdk
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Text Processing :: Linguistic
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: requests>=2.25.0
Provides-Extra: dev
Requires-Dist: pytest>=6.0; extra == "dev"
Requires-Dist: black>=21.0; extra == "dev"
Requires-Dist: flake8>=3.8; extra == "dev"

# Semantic EQ SDK

This package provides a simple Python client for the Semantic EQ API.

## Installation
```bash
pip install semantic-eq
```

## Usage
```python
from semantic_eq_sdk import SemanticEQ

# Initialize the client with your API key
client = SemanticEQ(api_key="YOUR_SEMANTIC_EQ_API_KEY")

# Optimize a prompt
original_prompt = "Your long and detailed prompt..."
result = client.optimize_prompt(original_prompt)

print("Optimized Prompt:", result.optimized_prompt)
```

## Publishing a New Version (for Maintainers)

Publishing the SDK is handled by a script that automates the entire process.

**Prerequisites:**
1.  **PyPI Account:** You need an account on [PyPI](https://pypi.org) and an API token.
2.  **Twine Configuration:** Your local machine must be configured to authenticate with PyPI. You can do this by setting the `TWINE_USERNAME` and `TWINE_PASSWORD` environment variables.

**To publish a new version:**
1.  Navigate to the SDK directory: `cd semantic_eq_sdk`
2.  Run the publishing script. You have two options:
    *   **To automatically bump the patch version** (e.g., `1.0.1` -> `1.0.2`), run the script without arguments:
        ```bash
        ./publish_sdk.sh
        ```
    *   **To specify an exact version** (e.g., for a major release like `2.0.0`), provide it as an argument:
        ```bash
        ./publish_sdk.sh 2.0.0
        ```
3.  The script will handle everything else automatically.
