Found 7 results

Install Python from Source

Python is one of the most used programming language and in this tutorial we will show you how to install Python from source on a CentOS 7 operating system. We can safely say that Python, conceived in the late 1980s by Guido van Rossum, comes these days preinstalled on most Linux distributions. If it is not there by default then we can always install it, for example on CentOS we can get Python using yum utility but as we know that will not be the latest Python version available. We may have a new project that requires to be built […]

Category: General | Published: 09/04/2019 | Updated: 28/05/2019

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

AWS Lambda Function to Stop and Start EC2 Instances

AWS Lambda Function to Stop and Start EC2 Instances based on Tags is our next tutorial where we will guide you, step by step, how to save money on AWS monthly bill just by using a simple AWS Lambda Function backed up by a Python script. Nowadays most of the modern companies relies on many cloud technologies from various cloud providers like AWS for pretty much any environments and tiers that we can think of like production, QA, staging, development and so on but everything comes at a price. We can reduce our monthly AWS bill and also, indirectly, becoming […]

Category: AWS | Published: 21/08/2019 | Updated: 24/09/2019

Setup AWS CLI on CentOS 7

Setting up AWS CLI on CentOS 7 is quite straight forward, no need for advanced knowledge or a huge amount of time in order to install this. AWS CLI is a very powerful toolset that helps you to manage all your AWS resources by using the Command Line Interface API calls instead of the well known classic Web Console. AWS CLI can be used and implemented in various projects like Automation, Cost Control, Security Audit etc. giving you the power to manipulate and query all AWS resources in a more granular manner. In this very short tutorial we will guide […]

Category: General | Published: 09/04/2019 | Updated: 26/08/2019

 

  • 1
  • 2