In this post, I’ll be showing you how to create a command-line interface (CLI) for your Python scripts. You will be able to run those scripts from the terminal with arguments. Oftentimes, when you write a script, you need it to perform more than one action at a time. One way to provide this functionality…
All posts in Programming
How to Do Object-Oriented Programming In Python
Learn how object oriented programming is implemented in Python 3 in just a few lines of code.
How to get started with Python | Basic Programming 1
This is a beginner lesson on how to program with Python, with easy-to-follow examples and clarifications. Get started with Python here.
Interactive Plots With Bokeh And Flask
Adding interactive plots to a Flask application can be a simple process. There are several methods to accomplish this, but today I will focus on a graphical Python library called Bokeh. If you have been following my posts, I wrote an article about creating a Flask web app with a MySQL database in the background.…
Advanced Plots With Pandas and Matplotlib
Today we will explore how to build more complex plots using pandas and matplotlib. Last week, I wrote a post covering common plots that can be created with these libraries. However, I did not get a chance to go deeper into them. Therefore, you can consider this as a follow-up to that post. First, I’ll…
How to Create Plots With Pandas and Matplotlib
Learn how to do data visualization with pandas and matplotlib. With these examples, you can turn the default charts into descriptive plots.
What Are Python Type-Hints and How to Use Them?
After covering SQL databases with Python and Flask, here and here, today I wanted to introduce the concept of type-hints in Python, their use cases, as well as their pros and cons. Type-hints can be great tools to improve the readability of your code but they are not always the best solution. This post is…
Computer Vision With OpenCV: Building a Car-Counting System
In this post I’m sharing a project where I built a car-counting system using computer vision with OpenCV in Python.
How to Use SQLAlchemy and Python to Read and Write to Your Database
In today’s post, I will explain how to perform queries on an SQL database using Python. Particularly, I will cover how to query a database with SQLAlchemy, Flask-SQLAlchemy, and Pandas. If you want to start with a toy project, I recommend that you first check last week’s post about creating a Flask application with a…
Building a Simple Flask App With SQLAlchemy
I’m using SQLAlchemy and Flask to add a MySQL database to a Python crypto portfolio tracker web application.