Kyaah abstract away cognitive over-head of sending SMTP mail, together with other mailing operations things like, mail with file, tokens etc.
Project description
Kyaah
Kyaah abstract away cognitive over-head of sending SMTP, POP3, and IMAP mail, together with other mailing operations things like, mail with file, tokens etc.
Installation & Usage
First, you are recommended to create a virtual environment python -m venv venv
and then activate it source venv/bin/activate
, next install the library using:
pip install kyaah
Wait for the installation to finish, basically the library was uploaded using sdist
(Source Distribution) and bdist_wheel
(Built Distribution).
After that, simply import the library and set payload, which include sender
, receiver
, subject
, body
, and password
and lastly call the send
method and pass the payload
as a keyword just like the sample below:
import kyaah
payload = dict(
sender = "sender@gmail.com",
receiver = ["receiver@gmail.com"],
subject = "Hellow world!",
body = "Lorem ipsum dolor sit amet adipisicing elit, rerum voluptate ipsum volupt.",
password = "*********",
)
kyaah.send(credentials=payload)
Note The password to use, is app password, take note that if you use your traditional mail password that you use to login, it won't give access to!
Useful links
- Documentations: https://kyaah.readthedocs.io
- Repository: https://github.com/usmanmusa1920/kyaah
- PYPI Release: https://pypi.org/project/kyaah
Change Log
0.1.17 (22/september/2024)
-
0.1.17 Release
Improve api design
-
0.1.16 Release
- Fixed api(s) for retrieving sender credentials from environment variable
- Include the
aiosmtpd
library as kyaah dependency for testing mail locally - Revised local smtp server. Since
The asyncore module is deprecated and will be removed in Python 3.12. The recommended replacement is asyncio import asyncore
by implementing cli command for starting local SMTP server
-
0.1.15 Release
- Update CHANGELOG version of release (mistake of previous release v0.1.14 i.e
(*/august/2024)
to(21/july/2024)
)
- Update CHANGELOG version of release (mistake of previous release v0.1.14 i.e
-
0.1.14 Release
- Changed naming convention of functions in
camelCase
tosnake_case
. Also making sure all other class are inPascalCase
- Implemented a single
send
function for all general sending mail operations (plain, file, image, & page), which replace previous ones:local_mail
,send_mail
,send_images
,send_files
, andsend_page
- Implemented a single
fetch
function for fetching mail (POP & IMAP), which replace previous ones:fetch_mail_POP
, andfetch_mail_IMAP
- Internal arrangement suggestion/guess of mail server
- Fixed mail with page, to ensure it send content of the page not the page itself
- Changed naming convention of functions in
-
0.1.13 Release
- Add character style print (text & logging style)
- Add POP and IMAP
- Improve files naming slices
- Include email link (with expiration age)
- Changed the a required module of 'pstyle' to 'rgbpy'
-
0.1.12 Release
Docs
- 0.1.11 Release
Docs
- 0.1.10 Release
OS compatibility
-
0.1.9 Release
-
0.1.8 Release
This release mostly is for adding more documentations.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for kyaah-0.1.17-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 470a5cbcd1229dd730381b5d43bd1e7ad6c0dd1d7657b08f72c69303b3486bd2 |
|
MD5 | 7b0260a93406c31a7cffb2c3df82826e |
|
BLAKE2b-256 | 6cd57a2862ab45f7099be417f6c24e10d09e342a540506dfadb53fbc27dba88d |