Name | bmailer JSON |
Version |
0.1.1
JSON |
| download |
home_page | None |
Summary | Asynchronously send emails via SMTP |
upload_time | 2025-08-13 17:49:23 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.10 |
license | None |
keywords |
bmailer
smtp
async
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# BMailer
[](https://pypi.python.org/pypi/bmailer)
[](https://pypi.python.org/pypi/bmailer)
[](https://pypi.python.org/pypi/bmailer)
[](https://github.com/duytanisme/bmailer/actions)
[](https://codecov.io/gh/duytanisme/bmailer)
BMailer is an asynchronous email sender built with Python, designed to send bulk emails efficiently using SMTP. It supports templating for email bodies and allows for concurrent sending of multiple emails.
## Example Usage
```python
import asyncio
from bmailer import AsyncMailer
from bmailer.models import EmailPayload
from bmailer.templates import render_template
async def main():
sender = AsyncMailer(
host="smtp.gmail.com",
port=587,
username="email@email.com",
password="app_password", # If using Gmail, use an App Password
)
template = "Hello {name},\nYour order #{order_id} has been shipped."
emails = [
EmailPayload(
subject="Order Update",
recipient="target@email.com",
body=render_template(template, name="Recipient", order_id=123),
),
]
await sender.send_bulk(emails, concurrency=5)
if __name__ == "__main__":
asyncio.run(main())
```
## Installation
```bash
pip install bmailer
```
## Contribution
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.
```bash
git clone https://github.com/duytanisme/bmailer.git
cd bmailer
uv sync
```
Raw data
{
"_id": null,
"home_page": null,
"name": "bmailer",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": "bmailer, smtp, async",
"author": null,
"author_email": "duytanisme <duytanisme02@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/5e/02/da32bef9f4642800083800124a260ed3dea272f75ad94255c693c811c6b8/bmailer-0.1.1.tar.gz",
"platform": null,
"description": "# BMailer\n\n[](https://pypi.python.org/pypi/bmailer)\n[](https://pypi.python.org/pypi/bmailer)\n[](https://pypi.python.org/pypi/bmailer)\n[](https://github.com/duytanisme/bmailer/actions)\n[](https://codecov.io/gh/duytanisme/bmailer)\n\nBMailer is an asynchronous email sender built with Python, designed to send bulk emails efficiently using SMTP. It supports templating for email bodies and allows for concurrent sending of multiple emails.\n\n## Example Usage\n\n```python\nimport asyncio\n\nfrom bmailer import AsyncMailer\nfrom bmailer.models import EmailPayload\nfrom bmailer.templates import render_template\n\n\nasync def main():\n sender = AsyncMailer(\n host=\"smtp.gmail.com\",\n port=587,\n username=\"email@email.com\",\n password=\"app_password\", # If using Gmail, use an App Password\n )\n\n template = \"Hello {name},\\nYour order #{order_id} has been shipped.\"\n emails = [\n EmailPayload(\n subject=\"Order Update\",\n recipient=\"target@email.com\",\n body=render_template(template, name=\"Recipient\", order_id=123),\n ),\n ]\n\n await sender.send_bulk(emails, concurrency=5)\n\n\nif __name__ == \"__main__\":\n asyncio.run(main())\n```\n\n## Installation\n\n```bash\npip install bmailer\n```\n\n## Contribution\n\nContributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.\n\n```bash\ngit clone https://github.com/duytanisme/bmailer.git\ncd bmailer\nuv sync\n```\n",
"bugtrack_url": null,
"license": null,
"summary": "Asynchronously send emails via SMTP",
"version": "0.1.1",
"project_urls": null,
"split_keywords": [
"bmailer",
" smtp",
" async"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "e3e1d321eecfd1eee9352b371faaeaebcc02071133fb03d460c5cc9d27ea2503",
"md5": "f46b6a7af744d2821107d106fe7ce74b",
"sha256": "b87ca8d6c5954a9a8c66efa06a8bd515986934dfeca26c1e7c346c8f4c85f02e"
},
"downloads": -1,
"filename": "bmailer-0.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "f46b6a7af744d2821107d106fe7ce74b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 7689,
"upload_time": "2025-08-13T17:49:21",
"upload_time_iso_8601": "2025-08-13T17:49:21.613598Z",
"url": "https://files.pythonhosted.org/packages/e3/e1/d321eecfd1eee9352b371faaeaebcc02071133fb03d460c5cc9d27ea2503/bmailer-0.1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "5e02da32bef9f4642800083800124a260ed3dea272f75ad94255c693c811c6b8",
"md5": "727e0a4cb33f16087352370aa0694396",
"sha256": "e6a0b13437a002b22d245ee073ec1120ac1be047ae0a964fee82cab6f276e428"
},
"downloads": -1,
"filename": "bmailer-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "727e0a4cb33f16087352370aa0694396",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 28069,
"upload_time": "2025-08-13T17:49:23",
"upload_time_iso_8601": "2025-08-13T17:49:23.076041Z",
"url": "https://files.pythonhosted.org/packages/5e/02/da32bef9f4642800083800124a260ed3dea272f75ad94255c693c811c6b8/bmailer-0.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-08-13 17:49:23",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "bmailer"
}