Python Modules Tutorials - AskPython (2024)

Modules is one of the best feature of Python. Except some core modules, you can install what you need and keep your Python setup smooth.

Set Up Content Security Policy using Flask Talisman

Content Security Policy (CSP) is an extra layer of security for web applications that secures the application from malicious attacks. CSP instructs the browser on what resources are allowed to load on a specific webpage. Usually, the website administrator configures a CSP by adding a special header to the server’s response for a webpage, then […]

Set Up Content Security Policy using Flask Talisman Read More »

NumPy and Linear Regression: Efficient Python Techniques for Large Datasets

Linear Regression is a statistical technique that models the relationship between a dependent variable and one or more independent variables. In Python programming language, Numpy gives us a powerful arsenal for multiple operations, making this library an excellent choice for performing millions of simple linear regressions with one exogenous variable. This article tells us about

NumPy and Linear Regression: Efficient Python Techniques for Large Datasets Read More »

Prevent Cross-Site Request Forgery (CORS) Attacks using Flask WTForms

Cross-Site Request Forgery (CORS) is a vulnerability that allows someone to exploit and take advantage of a user’s logged-in session on a trusted website to make unauthorized requests to a different website that the user trusts. WTForms is a Flask extension that integrates CSRF protection by default to prevent CORS attacks. In this article, we

Prevent Cross-Site Request Forgery (CORS) Attacks using Flask WTForms Read More »

How To Configure Logging In Python?

Logging is important for recording the operational data of applications and providing transparency during runtime. This article guides you through the detailed steps of configuring logging in Python, using the built-in ‘logging’ module to ensure accurate and effective logging practices. Loggingis implementedby considering various features such as logging levels, handlers, log message formats, and filters.The

How To Configure Logging In Python? Read More »

How to Deploy Flask Apps on Vultr using Nginx and Gunicorn

Flask is a Python framework for building web applications. With Flask, developers can easily define routes, handle HTTP requests and responses, and render dynamic content using Jinja2 templates. It also supports extensions allowing developers to integrate features like database access, form handling, and user authentication. Gunicorn stands for “Green Unicorn”, it is a Web Server

How to Deploy Flask Apps on Vultr using Nginx and Gunicorn Read More »

Running a Flask Application with Python3: A Step-by-Step Guide

Flask is a lightweight web framework of Python used to build, develop, and deploy lightweight web applications with little code requirements. It can also be easily integrated with other Python libraries to develop amazing applications for the web. For example, we can use the Flask library with the Python requests library to post content using

Running a Flask Application with Python3: A Step-by-Step Guide Read More »

10 PyJanitor’s Miscellaneous Functions for Enhancing Data Cleaning

In the previous post, we reviewed some of the basic data-cleaning functions available in PyJanitor. This post aims to understand some of the miscellaneous functions offered by the data-cleaning clean API. For starters, PyJanitor is a data cleaning and processing API inspired by the R package’s Janitor and built on top of the Pandas library

10 PyJanitor’s Miscellaneous Functions for Enhancing Data Cleaning Read More »

Sending JSON Data to a Flask Using Requests in Python

Imagine you are working on creating a Flask application and you need to send or post JSON data to the application. In this tutorial, we are going to learn how to send JSON data to the Flask application using requests. But before that, we need to understand the basics of the Flask, requests libraries, and

Sending JSON Data to a Flask Using Requests in Python Read More »

Understanding the Difference Between ‘self’ and ‘ctx’ in PyTorch

The ‘self’ is a keyword used in object-oriented programming to refer to the instance of a class. It acts as a placeholder for the instance itself, providing access to the attributes and methods defined within the class. When a method is called on an instance, ‘self’ allows the method to access and manipulate the instance’s

Understanding the Difference Between ‘self’ and ‘ctx’ in PyTorch Read More »

Detecting Anomalies with Pycaret: A Step-by-Step Guide

The applications of machine learning are growing rapidly and undoubtedly, are making business, education, and marketing easier and hassle-free. One such application of machine learning is anomaly detection. Anomaly detection is the process of identifying unusual patterns or behaviors in data that deviate significantly from the norm. It has wide-ranging applications, from detecting fraudulent transactions

Detecting Anomalies with Pycaret: A Step-by-Step Guide Read More »

Python Modules Tutorials - AskPython (2024)

References

Top Articles
Latest Posts
Recommended Articles
Article information

Author: Msgr. Refugio Daniel

Last Updated:

Views: 5693

Rating: 4.3 / 5 (74 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Msgr. Refugio Daniel

Birthday: 1999-09-15

Address: 8416 Beatty Center, Derekfort, VA 72092-0500

Phone: +6838967160603

Job: Mining Executive

Hobby: Woodworking, Knitting, Fishing, Coffee roasting, Kayaking, Horseback riding, Kite flying

Introduction: My name is Msgr. Refugio Daniel, I am a fine, precious, encouraging, calm, glamorous, vivacious, friendly person who loves writing and wants to share my knowledge and understanding with you.