Metadata-Version: 2.3
Name: gmail_smtplib_micro
Version: 0.1.2
Summary: A wrapper for sending emails via gmail
Author: Samuel Shiels
License-File: LICENSE
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Other Environment
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Utilities
Requires-Python: >=3.11.5
Description-Content-Type: text/markdown

# python_snail

Provides a wrapper class for smtplib to handle GMail usage

Set up a configuration file and pass through email data

```python
from gmail_smtplib_micro import GmailSMTPLib

g = GmailSMTPLib("pysnail.conf")
g.send_file("file.email","example@example.com")
```

Can also be invoked with a provided email object

```python
from gmail_smtplib_micro import GmailSMTPLib, Email

subject = "The string of the subject"
body = "This is the body of the email\nIncluding line breaks"

e = Email(subject, body)

g = GmailSMTPLib("pysnail.conf")
g.send_object(e,"example@example.com")
```

Examples of the configuration and email file can be shown via:
```python
from gmail_smtplib_micro import ExampleEmail, ExampleConfiguration

print(ExampleEmail().show())
print(ExampleConfiguration().show())
```
