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.
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…
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.
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…
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…
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.
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…
Deep learning is a machine learning methodology that studies networks with many layers. In this tutorial, you will build a neural network with Keras.
Before going forward, you should have some knowledge of the following technologies
The following libraries are required, so ensure that you have them installed:
To install Keras, use the pip package as follows:
Keras is a high-level Neural network. It makes…
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
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. …