flask-mail-template-tester-0.3.1
توضیحات
Add ``flask template-test`` command to send template emails with data read from a test file.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | flask-mail-template-tester-0.3.1 |
| نام | flask-mail-template-tester |
| نسخه کتابخانه | 0.3.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Shawn Pacarar |
| ایمیل نویسنده | shawn@geodav.tech |
| آدرس صفحه اصلی | https://github.com/geodav-tech/flask-mail-template-tester |
| آدرس اینترنتی | https://pypi.org/project/flask-mail-template-tester/ |
| مجوز | MIT |
# Flask Mail Template Tester
This package provides a faster way to inject data into flask mail templates and send them to a recipient for testing.
# Setup
- `pip install flask-mail-template-tester`
- `pip freeze > requirements.txt`
### using environment variables (recommended)
- `export TEMPLATE_DATA_FILE="path/to/some/data.py"`
- note: the default data file is set to look at the current working directory + /templates/test_data.py. This is meant to allow you to write a script to test all your templates with one central and standard set of data.
- `export TEMPLATE_EMAIL="my-email@gmail.com"`
- `flask template-test name-of-template.html`
### using cli arguments
- `flask template-test name-of-template.html -d "path/to/some/data.py" -e "my-email@gmail.com"`
# Release notes
- requires `wheel` & `twine` to be installed globally
- versioning is handled by autosemver. see docs for that when making more than minor changes
- build package: `python3 setup.py sdist bdist_wheel`
- publish package: `twine upload dist/*`
نیازمندی
| مقدار | نام |
|---|---|
| >=0.12.2 | Flask |
| >=6.7 | click |
نحوه نصب
نصب پکیج whl flask-mail-template-tester-0.3.1:
pip install flask-mail-template-tester-0.3.1.whl
نصب پکیج tar.gz flask-mail-template-tester-0.3.1:
pip install flask-mail-template-tester-0.3.1.tar.gz