Socket
Socket
Sign inDemoInstall

pyworks-mailer

Package Overview
Dependencies
0
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    pyworks-mailer

PyWork Mailer provide fast way to use SMTP mail and the most email templates.


Maintainers
1

Readme

Pyworks Mailer

PyWork Mailer provide fast way to use SMTP mail and the most email templates.

Features

  • Setup SMTP mail easily.
  • Most popular mail templates for Register, Forgot password, Daily, Weekly news, Payment, Place Order..etc.
  • Compress mail before send.

... and more

TODO

  • Auto load configuration form .env file.
  • Auto load all templates file.
  • Minify mail template HTML.
  • Support Gmail mail.
  • Support Amazon SES mail.
  • Support Yandex mail.

Requies

  • Python 3.7+
  • Virtualenv
  • Pytest

Development

Create virtual environment

virtualenv -p python3.7 venv
source venv/bin/activate

Install Python dependencies:

pip install pytest
pip install wheel

Test package locally

To run tests for project run this command:

# Use Makefile
make test

# Use pytest package in virtualenv
python -m pytest

# or
# pytest --pyargs <your_package_name>
pytest --pyargs mailer

Results

====================== test session starts ==============================
platform linux -- Python 3.7.9, pytest-6.2.2, py-1.10.0, pluggy-0.13.1
rootdir: *********/pyworks-mailer, configfile: pytest.ini
collected 2 items          

tests/test_config.py .                                              [ 50%]
tests/test_send_mail.py .                                           [100%]

======================= 2 passed in 3.18s ================================

Packaging project

Create Source Distributions

Create a source distribution for publish to PyPI:

python setup.py sdist

Create Wheels

Create a wheel for project.

python3 -m pip install wheel

Keywords

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc