File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Lettermint Python SDK
22
3+ [ ![ PyPI Version] ( https://img.shields.io/pypi/v/lettermint?style=flat-square )] ( https://pypi.org/project/lettermint/ )
4+ [ ![ PyPI Downloads] ( https://img.shields.io/pypi/dm/lettermint?style=flat-square )] ( https://pypi.org/project/lettermint/ )
5+ [ ![ Python Version] ( https://img.shields.io/pypi/pyversions/lettermint?style=flat-square )] ( https://pypi.org/project/lettermint/ )
6+ [ ![ GitHub Tests] ( https://img.shields.io/github/actions/workflow/status/lettermint/lettermint-python/ci.yml?branch=main&label=tests&style=flat-square )] ( https://github.com/lettermint/lettermint-python/actions?query=workflow%3ACI+branch%3Amain )
7+ [ ![ License] ( https://img.shields.io/github/license/lettermint/lettermint-python?style=flat-square )] ( https://github.com/lettermint/lettermint-python/blob/main/LICENSE )
8+
39Official Python SDK for the [ Lettermint] ( https://lettermint.co ) email API.
410
511## Installation
Original file line number Diff line number Diff line change 44import hmac
55import json
66import time
7+ from typing import Optional , Tuple
78
89import pytest
910
1718
1819
1920def generate_valid_signature (
20- payload : str , secret : str , timestamp : int | None = None
21- ) -> tuple [str , int ]:
21+ payload : str , secret : str , timestamp : Optional [ int ] = None
22+ ) -> Tuple [str , int ]:
2223 """Generate a valid signature for testing."""
2324 ts = timestamp or int (time .time ())
2425 signed_content = f"{ ts } .{ payload } "
You can’t perform that action at this time.
0 commit comments