Press ESC to close

Programming

Encrypted File Transfer via Sockets in Python

Transferring files securely is a much-needed feature in any development environment. End-to-end encryption ensures that not even the server can read the contents of the data. Sockets are commonly used for network communication but have much more use cases than just sending or receiving data. In this blog, we will see how to use TCP sockets for sending and receiving files in Python. Understanding Encrypted File Transfer via Sockets: Encrypted file transfer over sockets in Python is a method of securely sending files from one computer to another using the Python programming language. It involves creating a socket connection between…

Integrate Mako Templates with Django

The premise behind a template language is that the language is “embedded” within some other master document. It is a language that allows for the definition of placeholders that are going to be replaced later on in the design process. Templates allow for the definition of placeholders that will later be filled in and replaced with actual content. There is a wide range of capabilities that come packaged as a part of most modern, web-based templating languages. It’s possible, for instance, to loop through information and provide conditional logic within a template! Mako is one such templating language that is…

DABL – Data Analysis Baseline Library

In this blog post, we are going to see an auto-machine learning library in Python called dabl which stands for data analysis baseline library. It allows you to perform quick Exploratory data analysis and at the same time, it also allows you to build machine learning models very rapidly. So if you like pandas profiling you will like the dabl also because it works pretty much in a simple way where it requires you to minimal code to build a machine learning model along with data visualization. Prerequisites: DABL: DABL is an open-source software created by Andreas Mueller. dabl makes…

World Map in Python

If you want to create or develop any geological-based project/app or if you want to include data mapping capabilities in your project then one possible solution is to use Google Earth Engine, which is a powerful and flexible cloud-based API that lets you process massive amounts of satellite images from the comfort of the Google Cloud. And in this blog post, we will use “geemap” which is one of the best and newest libraries for Python to interact with the Google Earth Engine features in Python. What is geemap? geemap is a Python package that allows you to use Google…

System and Hardware Information in Python

Python is a general-purpose programming language that is relatively simple to learn. Python is often used for web development, data analysis, and more. For this reason, it’s important to be able to gather information about your computer and hardware. The following is a guide to system and hardware information in Python. Why do we need System and Hardware Information? There are many reasons why we might need system and hardware information in Python. For example, we might need to: This is just a small sampling of the possibilities – system and hardware information can be extremely useful in a wide…

Add Multiple Languages in Django

Internationalizing your website is a good idea but it can be a difficult process. Thankfully there are tools to help. This blog will look at how we can use gettext to add multiple languages in Django. We will cover topics such as: why you may want to internationalize and how you can use gettext to simplify the process. What is Internationalization & why you should use it? Internationalization is a mechanism of software development that enables an application to support other languages, character sets, or both. To accomplish this, an application must be able to contain locales that contain translations…

Extract EXIF Data from an Image using Python

A lot of web applications and web services these days use EXIF data in images to handle and process them accordingly. However, extracting the EXIF data from an image is not a simple task and there are a lot of formats and data sets that one needs to deal with. Here is a blog that looks at some of the widely used methods on how one can go about Extract EXIF Data from an Image using Python. What is EXIF data? EXIF data is a form of metadata that is embedded in many digital images. It contains a variety of…

Django-allauth Tutorial

Allauth allows you to enhance the functionality of your Django project by allowing access control as well as authentication services. It’s a security framework that performs authentication using Django accounts and OAuth2 authorization. In this blog, we will go through how to begin the process of building a social login with Django and google which will allow users to sign up and log in to your site using their existing google email and password and complete the Django-allauth tutorial. Here are the steps we have to follow: 1. Create a new Django project for Django-allauth Tutorial. 2. Install and configure…

Peewee ORM Tutorial in Python for Beginners

One problem people face when they attempt to use databases is that they have a hard time writing SQL queries. This makes it hard to connect to a database and perform actions on it. Peewee helps you solve this problem by being an ORM (Object Relational Mapper). Instead of writing SQL queries, Peewee uses python-like syntax to give you a better feel for writing code. This can help you write code faster and more efficiently. ORMs are an important tool for structuring data in an application and keeping an organized database. In Python, it is essential to use an ORM…

How to Configure Playbook in Ansible

In the world of DevOps, Ansible is one of the leading open-source IT automation solutions. IT automation doesn’t need to require an advanced degree. With Ansible, the largest independent provider of IT automation solutions, DevOps and IT teams are three times as productive and spend three times less time on their IT automation projects. Whether it’s cloud, hybrid, physical, or virtual, Ansible delivers simple IT automation that ends repetitive tasks and frees up DevOps teams for more strategic work. Ansible is a simple IT automation platform used by more than 100,000 organizations worldwide. It enables IT teams, to execute commands…