Name | mailtm-sdk JSON |
Version |
0.1.3
JSON |
| download |
home_page | https://halfstackpgr.github.io/Mail.tm/ |
Summary | Mail.tm Stack Development Kit, designed to enhance your experience with the renowned temporary email service, mail.tm |
upload_time | 2024-11-09 12:52:58 |
maintainer | Parth Mishra |
docs_url | None |
author | Parth Mishra |
requires_python | None |
license | None |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
![SDK Banner](https://github.com/halfstackpgr/Mail.tm/assets/118044992/67e3a10a-f7d4-44bc-ae11-cd70ad6ee0d3)
<div align="center">
<h1>Mail.tm</h1>
<text>Stack Development Kit (Python)</br></text>
<img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v1.json" alt="Ruff">
<img src="https://github.com/halfstackpgr/Mail.tm/actions/workflows/python-publish.yml/badge.svg" alt="Passing Package">
<img src="https://img.shields.io/badge/python-Strict-checking?style=plastic&logo=python&label=Type-Checking&labelColor=yellow" alt="Static Badge">
</div>
## Installation
```ps1
pip install mailtm-sdk
```
> [!TIP]
> Without the documentation it is almost worthless to even start to operate with the library, kindly refer to the [**documentation**](https://halfstackpgr.github.io/Mail.tm/).
## Introduction
Welcome to the Mail.tm Stack Development Kit, designed to enhance your experience with the renowned temporary email service, [Mail.tm](http://mail.tm). Here's why you'll find it indispensable:
1. **Enhanced Integration:** This kit streamlines interactions with Mail.tm's API, empowering you to seamlessly integrate its features into your applications. Whether you're automating email workflows or incorporating temporary email capabilities, this SDK has you covered.
2. **Comprehensive Documentation:** Methods are constructed using the documentation, available [here](http://docs.mail.tm).
3. **Adherence to Terms:** Rest assured, this SDK complies fully with Mail.tm's terms of usage, ensuring a seamless and secure experience for both developers and users. By respecting Mail.tm's conditions, we prioritize the integrity and reliability of the service by this kit.
4. **Assurance of safety** This repository prioritizes your safety. With frequent updates to dependencies, we ensure that no vulnerable dependencies compromise your security. Count on us for a secure and reliable experience.
Experience the power and convenience of Mail.tm with our Stack Development Kit – your gateway to efficient and reliable temporary email solutions.
## Key Features:
1. **Versatility at its Core:** Recognizing the diverse needs of users, we've packed this library to cater to various requirements. Whether you're seeking basic data fetching capabilities or integration with sophisticated bots, we've got you covered with two distinct clients and client-less data fetchers.
- `xclient.AsyncMail`: Utilize this client for asynchronous interactions with the API, leveraging a session for seamless communication. Ideal for asynchronous workflows requiring speed and efficiency.
- `client.SyncMail`: Opt for this client for synchronous requests to the API, ensuring simplicity and reliability with each interaction. Perfect for synchronous operations demanding consistency.
- `get` or `xget`: Explore these client-less data fetchers and helpers for streamlined operations without the need for session management.
- `xget`: Facilitates asynchronous operations, enhancing performance and responsiveness.
- `get`: Supports synchronous operations, prioritizing simplicity and ease of use.
2. **Type-Safety:**
We prioritize strict type-checking throughout the entire codebase of the SDK. You can trust that no type-related errors will interrupt your workflow, ensuring a smooth and error-free experience.
3. **Enhanced Speed:**
Unlike traditional data validation libraries or Python's built-in `json` module, we leverage [msgspec](https://github.com/jcrist/msgspec) for accelerated data delivery within the codebase. Experience faster performance and streamlined data handling.
## Stellar Feature:
> [!NOTE]
> This script sets up a [**pooling-based**](https://docs.python.org/3/library/multiprocessing.html) server that checks the API every second for new events. When a difference is detected, the corresponding event is dispatched, allowing you to respond dynamically to incoming messages.
In addition to the core SDK functionalities, this package offers an additional layer of scripts designed to handle clients in an event-driven manner, reminiscent of frameworks like `discord.py` or `hikari`. With this SDK, you gain access to a client that dispatches events seamlessly.
Here's a sample usage scenario:
```python
from mailtm.server.events import NewMessage
from mailtm.core.methods import ServerAuth
from mailtm.server.srv import MailServer
# Initialize MailServer with authentication details
server = MailServer(
server_auth=ServerAuth(
account_id="...", # Your account ID.
account_token="...", # Your account token.
)
)
# Define an event handler for new messages
@server.on_new_message
async def event(event: NewMessage):
print(event.new_message.text)
# Start the event loop
server.run()
```
This would initiate the event-runner which would start to pool, and a server is then initiated.
### End
Raw data
{
"_id": null,
"home_page": "https://halfstackpgr.github.io/Mail.tm/",
"name": "mailtm-sdk",
"maintainer": "Parth Mishra",
"docs_url": null,
"requires_python": null,
"maintainer_email": "halfstackpgr@gmail.com",
"keywords": null,
"author": "Parth Mishra",
"author_email": "halfstackpgr@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/2e/a9/cab07e3c3ee95d49f888777dee2cadf3bc61d3b1aa8b79992d43caac71fe/mailtm_sdk-0.1.3.tar.gz",
"platform": null,
"description": "![SDK Banner](https://github.com/halfstackpgr/Mail.tm/assets/118044992/67e3a10a-f7d4-44bc-ae11-cd70ad6ee0d3)\n\n\n<div align=\"center\">\n <h1>Mail.tm</h1>\n <text>Stack Development Kit (Python)</br></text>\n <img src=\"https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v1.json\" alt=\"Ruff\">\n <img src=\"https://github.com/halfstackpgr/Mail.tm/actions/workflows/python-publish.yml/badge.svg\" alt=\"Passing Package\">\n <img src=\"https://img.shields.io/badge/python-Strict-checking?style=plastic&logo=python&label=Type-Checking&labelColor=yellow\" alt=\"Static Badge\">\n</div>\n\n## Installation\n```ps1\npip install mailtm-sdk\n```\n\n> [!TIP]\n> Without the documentation it is almost worthless to even start to operate with the library, kindly refer to the [**documentation**](https://halfstackpgr.github.io/Mail.tm/).\n\n## Introduction\n\nWelcome to the Mail.tm Stack Development Kit, designed to enhance your experience with the renowned temporary email service, [Mail.tm](http://mail.tm). Here's why you'll find it indispensable:\n\n1. **Enhanced Integration:** This kit streamlines interactions with Mail.tm's API, empowering you to seamlessly integrate its features into your applications. Whether you're automating email workflows or incorporating temporary email capabilities, this SDK has you covered.\n\n2. **Comprehensive Documentation:** Methods are constructed using the documentation, available [here](http://docs.mail.tm).\n \n3. **Adherence to Terms:** Rest assured, this SDK complies fully with Mail.tm's terms of usage, ensuring a seamless and secure experience for both developers and users. By respecting Mail.tm's conditions, we prioritize the integrity and reliability of the service by this kit.\n\n4. **Assurance of safety** This repository prioritizes your safety. With frequent updates to dependencies, we ensure that no vulnerable dependencies compromise your security. Count on us for a secure and reliable experience.\n\nExperience the power and convenience of Mail.tm with our Stack Development Kit \u2013 your gateway to efficient and reliable temporary email solutions.\n\n## Key Features:\n\n1. **Versatility at its Core:** Recognizing the diverse needs of users, we've packed this library to cater to various requirements. Whether you're seeking basic data fetching capabilities or integration with sophisticated bots, we've got you covered with two distinct clients and client-less data fetchers.\n\n - `xclient.AsyncMail`: Utilize this client for asynchronous interactions with the API, leveraging a session for seamless communication. Ideal for asynchronous workflows requiring speed and efficiency.\n\n - `client.SyncMail`: Opt for this client for synchronous requests to the API, ensuring simplicity and reliability with each interaction. Perfect for synchronous operations demanding consistency.\n\n - `get` or `xget`: Explore these client-less data fetchers and helpers for streamlined operations without the need for session management. \n\n - `xget`: Facilitates asynchronous operations, enhancing performance and responsiveness.\n \n - `get`: Supports synchronous operations, prioritizing simplicity and ease of use.\n\n2. **Type-Safety:** \n\n We prioritize strict type-checking throughout the entire codebase of the SDK. You can trust that no type-related errors will interrupt your workflow, ensuring a smooth and error-free experience.\n\n3. **Enhanced Speed:**\n\n Unlike traditional data validation libraries or Python's built-in `json` module, we leverage [msgspec](https://github.com/jcrist/msgspec) for accelerated data delivery within the codebase. Experience faster performance and streamlined data handling.\n\n## Stellar Feature:\n\n> [!NOTE]\n> This script sets up a [**pooling-based**](https://docs.python.org/3/library/multiprocessing.html) server that checks the API every second for new events. When a difference is detected, the corresponding event is dispatched, allowing you to respond dynamically to incoming messages.\n\nIn addition to the core SDK functionalities, this package offers an additional layer of scripts designed to handle clients in an event-driven manner, reminiscent of frameworks like `discord.py` or `hikari`. With this SDK, you gain access to a client that dispatches events seamlessly.\n\nHere's a sample usage scenario:\n\n```python\nfrom mailtm.server.events import NewMessage\nfrom mailtm.core.methods import ServerAuth\nfrom mailtm.server.srv import MailServer\n\n# Initialize MailServer with authentication details\nserver = MailServer(\n server_auth=ServerAuth(\n account_id=\"...\", # Your account ID.\n account_token=\"...\", # Your account token.\n )\n)\n\n# Define an event handler for new messages\n@server.on_new_message \nasync def event(event: NewMessage):\n print(event.new_message.text)\n\n# Start the event loop\nserver.run()\n```\nThis would initiate the event-runner which would start to pool, and a server is then initiated.\n\n### End\n\n",
"bugtrack_url": null,
"license": null,
"summary": "Mail.tm Stack Development Kit, designed to enhance your experience with the renowned temporary email service, mail.tm",
"version": "0.1.3",
"project_urls": {
"Homepage": "https://halfstackpgr.github.io/Mail.tm/"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "7741f52b85cdd13e39ccd3b6d9d58d61c69f97e1a3674a7958acbfe6fb99cd2d",
"md5": "3ed5f07e2fd2747d2f9d3e2fcf9c3c1e",
"sha256": "01bacdcf2209cc69b3772ece0f57f345af1033a3fc47bbd5f56cbe531603e252"
},
"downloads": -1,
"filename": "mailtm_sdk-0.1.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "3ed5f07e2fd2747d2f9d3e2fcf9c3c1e",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 43316,
"upload_time": "2024-11-09T12:52:56",
"upload_time_iso_8601": "2024-11-09T12:52:56.311164Z",
"url": "https://files.pythonhosted.org/packages/77/41/f52b85cdd13e39ccd3b6d9d58d61c69f97e1a3674a7958acbfe6fb99cd2d/mailtm_sdk-0.1.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "2ea9cab07e3c3ee95d49f888777dee2cadf3bc61d3b1aa8b79992d43caac71fe",
"md5": "d6c96681fb0feaa063eb08bf42ed1c19",
"sha256": "9146a1b5b427f0b6c76e4ae16ed2f73932ee737c46812fa7fd0d1124de1889ae"
},
"downloads": -1,
"filename": "mailtm_sdk-0.1.3.tar.gz",
"has_sig": false,
"md5_digest": "d6c96681fb0feaa063eb08bf42ed1c19",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 36956,
"upload_time": "2024-11-09T12:52:58",
"upload_time_iso_8601": "2024-11-09T12:52:58.030894Z",
"url": "https://files.pythonhosted.org/packages/2e/a9/cab07e3c3ee95d49f888777dee2cadf3bc61d3b1aa8b79992d43caac71fe/mailtm_sdk-0.1.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-09 12:52:58",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "mailtm-sdk"
}