PEP 8 Guidelines: Essential Tips for Clean Python Code

The PEP 8 guidelines are an essential aspect of writing clean and readable Python code. Developed in 2001 by Guido van Rossum, Barry Warsaw, and Nick Coghlan, these guidelines focus on enhancing the readability and consistency of Python code for all programmers. πŸ’‘ PEP 8, which stands for Python Enhancement Proposal 8, has significantly contributed … Read more

How I Created a Face-Detection App Using the Flask Framework

Advancement in technology has witnessed the application of artificial intelligence to detect and recognize human faces. πŸ‘©πŸ‘©β€πŸ¦²πŸ‘¨β€πŸ¦° This is accomplished using OpenCV, a Python library for computer vision and image processing. In the previous tutorials, we use OpenCV to process images and turn them into pencil drawings and cartoons. We will learn how to use … Read more

How to Embed A Live Stock Chart in Your WordPress Blog Given a Ticker

I was just working on a website for financial data analysis and wanted to embed a real demo live trading chart on the company that was being analyzed (YUMM – don’t research it – not worth it). πŸ˜‚ This article shares my experience with TradingView. Embedding a live stock chart on your website or blog … Read more

Python – How to Create a Category in WordPress if it Doesn’t Already Exist?

To create a new category in WordPress using Python, you can use the WordPress REST API. Here’s a basic function that checks if a category already exists and creates it if it doesn’t: In this code, replace ‘http://your-site-url’, ‘your-username’, and ‘your-application-password’ with your WordPress site URL, your WordPress username, and the application password you generated. … Read more

How to Publish a WordPress Post using Python?

You can automate publishing a post on WordPress using Python by using the WordPress REST API. Here is a basic outline of how you could accomplish this: Replace ‘http://your-site-url’, ‘your-username’, and ‘your-application-password’ with your WordPress site URL, your WordPress username, and the application password you generated. ⚑ Warning: Basic Auth sends the username and password … Read more

How I Created a Blog Application Using Django – Part 4

In this fourth part series of our project tutorial on creating a blog application using the Django framework, we will learn how to integrate a rich text editor into our blog application. If this is your first time attempting this project, you will benefit greatly if you start from the beginning all through the previous … Read more

Smart Contract to Store a Sentence on ETH

The following article is based on Adam’s CharmingData channel and GitHub repository. β™₯️ In this tutorial, we will create, test, and deploy a smart contract called SimpleStorage. This contract will allow your users to create their own sentence and store it on the blockchain. It will also allow users to retrieve the last sentence stored … Read more