Metadata-Version: 2.4
Name: omx-sdk
Version: 0.1.1
Summary: Python SDK for Oxinion Marketing Exchange
Project-URL: Homepage, https://github.com/oxinion/omx-sdk
Project-URL: Repository, https://github.com/oxinion/omx-sdk.git
Project-URL: Documentation, https://github.com/oxinion/omx-sdk#readme
Project-URL: Bug Tracker, https://github.com/oxinion/omx-sdk/issues
Author-email: Oxinion <support@oxinion.com>
License: MIT License
        
        Copyright (c) 2025 Oxinion
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: email,exchange,geotrigger,marketing,omx,oxinion,sdk,webhook
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.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
Requires-Python: >=3.9
Requires-Dist: httpx>=0.25.0
Requires-Dist: pydantic>=2.0.0
Requires-Dist: typing-extensions>=4.5.0; python_version < '3.11'
Provides-Extra: dev
Requires-Dist: black; extra == 'dev'
Requires-Dist: mypy; extra == 'dev'
Requires-Dist: openapi-python-client; extra == 'dev'
Requires-Dist: pytest-asyncio; extra == 'dev'
Requires-Dist: pytest-cov; extra == 'dev'
Requires-Dist: pytest>=7.0; extra == 'dev'
Requires-Dist: ruff; extra == 'dev'
Provides-Extra: docs
Requires-Dist: sphinx; extra == 'docs'
Requires-Dist: sphinx-rtd-theme; extra == 'docs'
Description-Content-Type: text/markdown

# OMX SDK

Python SDK for Oxinion Marketing Exchange (OMX) - A comprehensive toolkit for geotrigger marketing, email campaigns, and webhook management.

## Installation

```bash
pip install omx-sdk
```

## Quick Start

```python
import asyncio
import os
from omx_sdk import OMXClient

async def main():
    # Initialize client
    client = OMXClient(
        api_key=os.getenv("OMX_API_KEY"),
        secret_key=os.getenv("OMX_SECRET_KEY"),
    )

    # Authenticate
    await client.authenticate()

    # Create a geotrigger
    geotrigger = await client.geotriggers.create(
        name="Coffee Shop Downtown",
        latitude=40.7128,
        longitude=-74.0060,
        radius=100
    )

    # Send email
    email_result = await client.email.send(
        to=["user@example.com"],
        subject="Welcome to OMX!",
        content="<h1>Hello from OMX SDK</h1>"
    )

    # Create webhook
    webhook = await client.webhooks.create(
        url="https://your-app.com/webhooks/omx",
        events=["geotrigger.entered", "email.sent"]
    )

    # Clean up
    await client.close()

if __name__ == "__main__":
    asyncio.run(main())
```

## Features

- 🌍 **Geotrigger Management** - Create and manage location-based triggers
- 📧 **Email Campaigns** - Send targeted email communications
- 🔗 **Webhook Integration** - Real-time event notifications
- 🔐 **Secure Authentication** - API key and secret management
- ⚡ **Async Support** - Built with asyncio for high performance

## Configuration

Set your credentials as environment variables:

```bash
export OMX_API_KEY="your_api_key"
export OMX_SECRET_KEY="your_secret_key"
```

## Documentation

For detailed documentation and API reference, visit: https://github.com/oxinion/omx-sdk

## License

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

## Support

- 📧 Email: support@oxinion.com
- 🐛 Issues: https://github.com/oxinion/omx-sdk/issues
- 📖 Documentation: https://github.com/oxinion/omx-sdk#readme
