Skip to main content

Function easing life :)

Project description

pynut - Laurent Tupin

It provides various functions to simplify the users life.

Installation

You can install the package from PyPI:

python -m pip install pynut-Email

The package is supported on Python 3.7 and above.

How to use

You can call a function as this example:

$ ----------------------------------------------------
>>> from pyNutTools import nutDate
>>> nutDate.today()

This is the libraries I am using with the package

$ ----------------------------------------------------
>>> exchangelib==4.7.2

Documentation

Temporary documentation for nutEmail :

DESIGN PATTERN: BUILDER for OUTLOOK / EXCHANGELIB
Allow you to manage all relating to Emails with few lines of code

from pyNut import nutEmail as email

1. Send an email with OUTLOOK

o_builder_emailSend =   email.c_Outlook_send(**dic_param)
o_otlk_Director =       email.c_otlk_Director(o_builder_emailSend)
o_otlk_Director.SendMail()
bl_success = o_otlk_Director._builder.bl_success
    OR
bl_success = email.fBl_SendMail_desPatt(**dic_param)

WHERE 

dic_param = dict(bl_draft = True, l_pathAttach=['path1_fileToEnclose'], str_message = 'Hello',
                 str_from='', str_to='', str_cc='', str_bcc='',str_subject='Subject')    

2. Download files from Received Email on Outlook

o_builder_emailDwld =   email.c_Outlook_dwld(**dic_param)
inst_Director =    email.c_otlk_Director(o_builder_emailDwld)
inst_Director.Download_fMail()

WHERE 

dic_param = dict(str_outAcctName = 'laurent@gmail.com', str_inbox = 'Inbox', l_folders = [],
                 str_subject = 'Sujet', str_to = '', str_cc = '', str_folder = 'PathForSaveFile',
                 str_File_startW = 'file_', str_File_endW = '_01.csv')

3. Download files from Received Email with Excahngelib (not on Outlook)

o_builder_emailDwld = 	email.c_Webmail_dwld(**dic_param)
inst_Director =  	    email.c_otlk_Director(o_builder_emailDwld)
inst_Director.Download_fMail()

WHERE 

dic_param = dict(str_outAcctName = 'laurent@gmail.com', str_pwd = '*****', str_inbox = 'Inbox', l_folders = [],
                 str_subject = 'Sujet', str_to = '', str_cc = '', str_folder = 'PathForSaveFile',
                 str_File_startW = 'file_', str_File_endW = '_01.csv')

END

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pynut-Email-2.1.4.tar.gz (23.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pynut_Email-2.1.4-py3-none-any.whl (21.5 kB view details)

Uploaded Python 3

File details

Details for the file pynut-Email-2.1.4.tar.gz.

File metadata

  • Download URL: pynut-Email-2.1.4.tar.gz
  • Upload date:
  • Size: 23.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.9

File hashes

Hashes for pynut-Email-2.1.4.tar.gz
Algorithm Hash digest
SHA256 0f80ce7fa7987375a76aa5c738b5f84a0e32e987f940358f69cbffd38b59971a
MD5 7fc0a9b7c3f2d8b75a44742f7e8fb531
BLAKE2b-256 7ad2f5d542c8a1c1bff523fee6fffb771f5f4d0f721fca1a641790197a11a6ad

See more details on using hashes here.

File details

Details for the file pynut_Email-2.1.4-py3-none-any.whl.

File metadata

  • Download URL: pynut_Email-2.1.4-py3-none-any.whl
  • Upload date:
  • Size: 21.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.9

File hashes

Hashes for pynut_Email-2.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 57476218e8fe8ac9f860f1e16c787ae9dd7d0f13a10e5747436526430090f7e1
MD5 8ae18368bc264cdb9e3bb304078a0bbf
BLAKE2b-256 854b4873a159a7458d720145424f0b525955e1c470eb057f3160c85445e00b4e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page