How to convert file content into PDF document using Python

Introduction I am going to show you how to read file and write to a PDF document using Python 3. The file content may be in any format and it depends on you how you are going to parse it. I am going to show you how to read text file and write into PDF file. I am also going…

How to convert HTML Content into PDF Document using Python

Introduction In my previous tutorial I had shown how to create PDF document using Python 3 but, here we will see how to convert HTML content into PDF document. Sometimes it may be good idea to directly write HTML content into PDF file to print the texts mixing with different styles. In this example I am going to write Italic…

How to create a PDF File using Python

Introduction In this tutorial I will show you how to write to pdf file using Python 3. I will also create header, footer along with body of the text in the generated pdf file. I will also decorate such text with color and style. I am going to use fpdf library to create pdf file. In order to work with…

Create Header and Footer in Word Document using Python

Introduction In this guide I will tell you how to create header and footer in word document using Python 3. We will finally create docx file. Sometime you want to write some text in header and footer of word file to enhance the readability of viewers. Headers and footers are linked to a section; this allows each section to have…

How to send attachments with email using Python

Introduction We have seen various examples on sending text email, RFC 822 standard email, HTML email but here we will see how to send attachments with email using Python 3. Attachments may be any type of files such as image, pdf, text etc. We will send email message over TLS and SSL ports using Gmail SMTP Server. We are going…

How to send an HTML email using Python

Introduction This tutorial will show you how to send an HTML email using Python 3. In our previous example we have seen how to send text message using Python 3 email library. Another variant of sending text message is using RFC 822 standard. In simple text email you don’t have option to decorate your message using styles or you cannot…

How to use RFC 822 for sending email in Python

Introduction Here we will create an example to send text message using RFC 822 in Python 3 programming language. We have seen how to send simple text email using gmail SMTP server in Python programming language. In this example we will also send the text message using RFC 822 standard, because RFC 822 standard does not support special encoding for…

How to send a simple email using Python

Introduction In this tutorial we will see how to send a simple email using Python 3. Simple email means we will send a text message using Gmail SMTP server. You may find useful other tutorials on sending emails with different formats. We will connect to both TLS and SSL ports over Gmail SMTP server. We will use here email package…

AJAX Based Login Logout Using Flask MySQL

Login Logout App I will create an example to show you how to build jQuery AJAX based login logout using Python Flask MySQL. Flask is a light-weight framework for building rapid web application whose data are stored into MySQL database server. I will use HTML, AJAX technique using jQuery technology to call the REST API for login and logout endpoints….

jQuery AJAX based Registration System using Python Flask MySQL

Introduction This guide will walk you through how to build jQuery AJAX based registration system using Python Flask MySQL. In this example I am going to build REST API that will be called from front-end technologies – jQuery, HTML including AJAX technique. I will determine registration process based on various http status codes such as 200 – success, 400 –…