Metadata-Version: 2.4
Name: luna-email-sdk
Version: 0.1.0
Summary: Python Client SDK for Luna Free Email API
Home-page: https://github.com/your-username/luna-email-api
Author: Luna Global
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Requires-Dist: requests>=2.25.0
Dynamic: author
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# Luna Email SDK

Python SDK for the Luna Free Email API. This SDK provides a simple client to send and verify emails through the Luna Email Service.

## Installation

You can install the SDK from a local directory or directly from a Git repository.

### From local directory:

Navigate to the `sdk` directory and run:

```bash
pip install .
```

### From Git repository:

```bash
pip install git+https://github.com/your-username/luna-email-api.git#egg=luna-email-sdk&subdirectory=sdk
```
*(Note: You need to replace `your-username` with your actual GitHub username)*

## Usage

Here is a basic example of how to use the `LunaEmailClient`.

```python
from luna_email import LunaEmailClient

# 1. Initialize the client with your API key
api_key = "luna_live_your_secret_api_key_here"  # Replace with your actual key
client = LunaEmailClient(api_key=api_key)

# 2. Send a verification code
service_name = "My Awesome App"
user_email = "test@example.com"

print(f"Sending verification to {user_email}...")
send_result = client.send_verification(email=user_email, service_name=service_name)
print(send_result)

if send_result.get("ok"):
    # 3. Verify the code
    code = input("Please enter the verification code you received: ")
    print("Verifying code...")
    verify_result = client.verify_email(email=user_email, code=code)
    print(verify_result)
else:
    print("Failed to send verification email.")

```
