Home » Python (page 2)

Python

Python NumPy Array Tutorial

NumPy is a Python Library/ module which is used for scientific calculations in Python programming. In this tutorial, you will learn how to perform many operations on NumPy arrays such as adding, removing, sorting, and manipulating elements in many ways. NumPy provides a multidimensional array object and other derived arrays such as masked arrays or masked multidimensional arrays. Why using ...

Read More »

OPA for HTTP Authorization

Open Policy Agent[1] is a promising, light weight and very generic policy engine to govern authorization is any type of domain. I found this comparion[2] very attractive in evaluating OPA for a project I am currently working on, where they demonstrate how OPA can cater same functionality defined in RBAC, RBAC with Seperation of Duty, ABAC and XACML.   Here are ...

Read More »

PyQt5 Drawing Tutorial (Painting APIs)

In this tutorial, we will learn how to draw vector graphics in PyQt5. In Python, the PyQt5 module is the easiest module you can use for drawing purposes as you will see. Before getting started, let’s create a window using PyQt5 where we will be drawing our graphics. Create a PyQt5 window To create the window, import the following modules: ...

Read More »

Python SQLite3 Tutorial (Database Programming)

In this tutorial, we will work with SQLite3 database programmatically using Python. SQLite in general, is a server-less database that can be used within almost all programming languages including Python. Server-less means there is no need to install a separate server to work with SQLite so you can connect directly with the database. SQLite is a lightweight database that can ...

Read More »

Kivy Tutorial – Build Desktop GUI Apps Using Python

In previous tutorials, you saw how to build GUI applications using Tkinter and PyQt5, in this tutorial, we will continue building desktop GUI applications but this time using Kivy. Kivy is an open source Python library which is used to create applications on Windows, Linux, MacOS, Android and iOS. You will learn how to play with the Kivy buttons, labels, ...

Read More »

Python Operators: Arithmetic, Comparison, Logical and more

Operators refer to special symbols in Python that carry out arithmetic or logical computation. An operand is generally a variable or a value on which we operate. 1. Python Operators There different types of python operators and we will discuss some of them below. Python Arithmetic Operator Python Comparison Operator Python Logical Operator Python Identity Operator Python Bitwise Operator Python ...

Read More »

Using Python to Make Art With Math

Math can be intimidating. Depending on the teacher and how it is taught, it can be an infuriating combination of inscrutable and boring. But, there’s a beauty to math—a symmetry to the intelligence and logic behind numbers. I love math, and I want other people to love it too. One neat way to make math more approachable and show its beauty ...

Read More »

Boto3 – Amazon S3 As Python Object Store

Use Amazon Simple Storage Service(S3) as an object store to manage Python data structures. 1.Introduction Amazon S3 is extensively used as a file storage system to store and share files across the internet.  Amazon S3 can be used to store any type of objects, it is a simple key value store.  It can be used to store objects created in ...

Read More »

PyQt5 tutorial – Python GUI programming examples

In a previous tutorial, we talked about the Tkinter module and we saw how to build GUI apps using it. In this tutorial, we will continue building graphical interfaces in Python and this time we will use PyQt5. PyQt5 is one of the most used modules in building GUI apps in Python and that’s due to its simplicity as you ...

Read More »