Metadata-Version: 2.4
Name: pyloopmessage
Version: 0.1.0
Summary: Python client for the LoopMessage iMessage API
Author-email: Balaji Rama <balajirw10@gmail.com>
License: MIT
Keywords: imessage,api,messaging,loopmessage
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
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 :: Communications
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: httpx>=0.24.0
Requires-Dist: pydantic>=2.0.0
Requires-Dist: typing-extensions>=4.0.0
Provides-Extra: dev
Requires-Dist: pytest>=7.0.0; extra == "dev"
Requires-Dist: pytest-asyncio>=0.21.0; extra == "dev"
Requires-Dist: pytest-httpx>=0.21.0; extra == "dev"
Requires-Dist: black>=23.0.0; extra == "dev"
Requires-Dist: ruff>=0.1.0; extra == "dev"
Requires-Dist: mypy>=1.0.0; extra == "dev"
Requires-Dist: pre-commit>=3.0.0; extra == "dev"
Dynamic: license-file

# PyLoopMessage

A modern Python client for the LoopMessage iMessage API.

## Features

- ✨ Full support for LoopMessage REST API
- 🔒 Type-safe with comprehensive type hints
- 📱 Send messages, reactions, and audio messages
- 👥 Support for group messaging
- 📞 Webhook handling for real-time events
- 🧪 Async/await support
- 🛡️ Built-in error handling and retries

## Installation

```bash
pip install pyloopmessage
```

## Quick Start

```python
from pyloopmessage import LoopMessageClient

# Initialize the client
client = LoopMessageClient(
    authorization_key="your_auth_key",
    secret_key="your_secret_key"
)

# Send a message
response = await client.send_message(
    recipient="+1234567890",
    text="Hello from PyLoopMessage!",
    sender_name="YourSenderName"
)

print(f"Message sent with ID: {response.message_id}")
```

## API Support

### Sending Messages
- ✅ Send text messages to individuals
- ✅ Send messages to groups
- ✅ Send audio messages
- ✅ Send reactions
- ✅ Message effects (slam, loud, gentle, etc.)
- ✅ Attachments support
- ✅ Reply-to functionality

### Message Status
- ✅ Check message status
- ✅ Webhook event handling
- ✅ Real-time status updates

### Advanced Features
- ✅ Typing indicators
- ✅ Read status
- ✅ Sandbox mode
- ✅ Error handling with detailed error codes

## Documentation

For detailed documentation and examples, visit our [GitHub repository](https://github.com/yourusername/pyloopmessage).

## License

MIT License - see LICENSE file for details.
