Image for post
Image for post
Photo by Sigmund on Unsplash

This tutorial will discuss Docker and then build a simple task management system in Django and postgres database and deploy it to Docker in an Ubuntu 16 server.

What is Docker

Docker is a software containerization platform in which different applications plus their libraries and dependencies run in separate containers. Containerisation has the following benefits:

* It lowers the overall costs of ownership. * It is easy to maintain and easy to scale systems since containers are lightweight. * Containerization brings about isolation and therefore minimizes overdependence since processes run in different containers. * Proper utilization of RAM- Containers occupy only the space…

An introduction to Pygal

Image for post
Image for post
Photo by Luke Chesser on Unsplash

Scalable Vector Graphics (SVG) is an image format that defines vector-based graphics in XML format. In this tutorial, you’ll look at how to get started with Pygal, a Python SVG graph-plotting library. You’ll also learn how to draw histograms using the Pygal library.

Introduction to Pygal

There are many libraries in Python available for charts (Matplotlib and seaborn being a couple of examples). Even though most of these libraries aren’t that complex, most Python-charting developers require a simple, easy-to-use library that can quickly build Python applications.

The Pygal library offers multiple charting options beyond what’s available in other charting libraries. It includes a…

Better alert handling for better programming

Image for post
Image for post
Photo by Chris Ried on Unsplash

What’s a Python Exception?

This tutorial will introduce you to exceptions and how to handle exceptions in Flask. By the end of this tutorial, you’ll be able to create custom exceptions for your code.

Run the program, and enter a string instead of a number as the input. If you run the program, it’ll work as long as the input is an integer. If you input a string instead of a number, you’ll get a ValueError, as shown below.

Please enter a number between 1 and 10: fur Traceback (most recent call last): File “main.py”, line 9, in <module> number = int(input(‘Please enter…

The no-nonsense, minimalist web framework for Python developers

Image for post
Image for post
Photo by Viktor Jakovlev on Unsplash

Falcon is a light-weight Python web API framework for building high-performance microservices, app backends, and higher-level frameworks. This tutorial will give an introduction to Falcon, its major features, and how to install Falcon. We’ll also build a simple RESTful API with Falcon.

Advantages of Falcon Compared to Other Frameworks

According to the documentation, some of the features of Falcon that make it superior to other Python frameworks include:

Speed Falcon requests work several times faster than most other Python frameworks. Additionally, Falcon works well when combined with Cython, giving it an extra speed boost; it also works well with PyPy.

Flexibility — Falcon leaves a lot…

Image for post
Image for post

Deep learning is a machine learning methodology that studies networks with many layers. In this tutorial, you will build a neural network with Keras.

Objectives

  1. Introduction to Keras
  2. The relationship between Tensor flow, Keras, and Theano
  3. Advantages of using Keras and how it makes everything easy
  4. Train a neural network with Keras

Prerequisites

Before going forward, you should have some knowledge of the following technologies

  • Machine learning
  • Python

Requirements

The following libraries are required, so ensure that you have them installed:

  • TensorFlow
  • Keras

Installing Keras

To install Keras, use the pip package as follows:

Introduction to Keras

Keras is a high-level Neural network. It makes…

How to properly use datetime in your Python code

Image for post
Image for post
python

datetime is an essential aspect of any program in Python. Python provides the datetime module that helps manipulate date and time and represents it in a way users can understand.

datetime has various components. The datetime module consists of the following object types:

  • date — holds the date
  • time — holds the time
  • datetime — holds both date and time

How to get current date and time

As you have seen above, the Python datetime module can do this. Import the datetime class from the datetime module, then use it to create a datetime object, as shown below. …

Esther Vaati

Software developer and writer . vaatiesther.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store