MSTC-DA-IICT / OpenScripts

Python scripts to make your lives less complicated!!! Maintained by MSTC DAIICT.
MIT License
3 stars 5 forks source link

Script for send batch emails added #6

Closed Ronak-Jethava closed 2 years ago

Ronak-Jethava commented 2 years ago

Scripts for send batch emails is added in new folder Send Batch Emails.

Solves #5

DevChoganwala commented 2 years ago

Great work with the scripts @Ronak-Jethava , could you please make the following changes:

  1. Rename the folder to 'send_batch_emails'.
  2. Add a requirements.txt containing packages required to run the script

Thanks.

Ronak-Jethava commented 2 years ago

@DevChoganwala I did the above two required changes.

DevChoganwala commented 2 years ago

Hey @Ronak-Jethava , requirements.txt does not need to be manually written, it needs to be generated using pip so that script users can directly install packages required using pip.

If you're not working on a virtual environment, make a new virtual environment (in the folder of script) using:

  1. pip install virtualenv
  2. virtualenv -p <path_to_python> <name_of_env> (This will create a folder with name , make sure to exclude that when committing)
  3. source <name_of_env>/bin/activate
  4. Install all the packages required for the script using pip install <package_name>

To generate requirements.txt :

  1. pip freeze --local > requirements.txt

This will save a requirements.txt file in your folder. Please make sure to also exclude virtual environment folder when committing.

Thanks!

DevChoganwala commented 2 years ago

LGTM! Thanks :)