Python

Send email with Python and smtplib

Send email with Python and smtplib package is just another quick tutorial from Tufora where we will show you in just a few steps how easy is to use Python for sending emails from your applications. This solution uses no more than five lines of code and can be easily implemented within your Python application anytime being defined as a Python module using import statement or simply directly to your main application code. The code below has been tested using Python 3.7 but it can be easily adapted and used on older or newer versions as long the smtplib module […]

Category: Python | Published: 14/11/2018 | Updated: 22/07/2019

List users from multiple AWS accounts using Python

List users from multiple AWS accounts using Python is our next tutorial where we will learn how to access AWS APIs using Boto3 package and also how to use pprint package to list all results in a easy to read format, we heard about the term human readable too but we think is not the right way of saying it, at least not in this particular case. Please rest assured that we won’t talk or debate in this tutorial about what Cloud Hosting provider is the best or not and we will simply resume talking about how to get all […]

Category: Python | Published: 13/11/2018 | Updated: 14/11/2018

Python Try Except Statement

Python Try Except statement can help us to handle possible errors within our code, below we will explain its component and also how to use this Try Except Python statement in your code. Let’s try to understand how to use this Python statement and why is this so important in our day to day Python coding. Statement components The first block called try lets you test a block of code for any errors that may appear in your code. Second block called except will handle basically the error that may exist. The third block named finally it is optional and […]

Category: Python | Published: 12/11/2018 | Updated: 12/11/2018