Metadata-Version: 2.4
Name: sevk
Version: 1.0.0
Summary: Python SDK for Sevk API
Author-email: Sevk <dev@sevk.io>
License: MIT
Project-URL: Homepage, https://sevk.io
Project-URL: Documentation, https://docs.sevk.io
Project-URL: Repository, https://github.com/sevk-io/sevk-python
Keywords: sevk,email,api,sdk
Classifier: Development Status :: 5 - Production/Stable
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
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: httpx>=0.24.0
Requires-Dist: pygments>=2.15.0
Provides-Extra: dev
Requires-Dist: pytest>=7.0.0; extra == "dev"
Requires-Dist: pytest-asyncio>=0.21.0; extra == "dev"
Requires-Dist: python-dotenv>=1.0.0; extra == "dev"

<p align="center">
  <img src="https://sevk.io/logo.png" alt="Sevk" width="120" />
</p>

<h1 align="center">Sevk Python SDK</h1>

<p align="center">
  Official Python SDK for <a href="https://sevk.io">Sevk</a> email platform.
</p>

<p align="center">
  <a href="https://docs.sevk.io">Documentation</a> •
  <a href="https://sevk.io">Website</a>
</p>

## Installation

```bash
pip install sevk
```

## Send Email

```python
from sevk import Sevk

sevk = Sevk('your-api-key')

sevk.emails.send(
    to='recipient@example.com',
    from_='hello@yourdomain.com',
    subject='Hello from Sevk!',
    html='<h1>Welcome!</h1>'
)
```

## Send Email with Markup

```python
from sevk import Sevk
from sevk.markup import render

sevk = Sevk('your-api-key')

html = render('''
  <section padding="40px 20px" background-color="#f8f9fa">
    <container max-width="600px">
      <heading level="1" color="#1a1a1a">Welcome!</heading>
      <paragraph color="#666666">Thanks for signing up.</paragraph>
      <button href="https://example.com" background-color="#5227FF" color="#ffffff" padding="12px 24px">
        Get Started
      </button>
    </container>
  </section>
''')

sevk.emails.send(
    to='recipient@example.com',
    from_='hello@yourdomain.com',
    subject='Welcome!',
    html=html
)
```

## Documentation

For full documentation, visit [docs.sevk.io](https://docs.sevk.io)

## License

MIT
