Python

How To Build a Weather App in Django — step-by-step Python tutorial on Progressive Robot

How To Build a Weather App in Django

In this article, you will build a simple Django app that displays the current weather for various cities. To get the current weather data, you will use the Open Weather Map API. You will work with a database and create a form, so the concepts used here are applicable to more complicated projects.

Read more
How To Use subprocess to Run External Programs in Python 3 — step-by-step Python tutorial on Progressive Robot

How To Use subprocess to Run External Programs in Python 3

Python 3’s subprocess module can be used to run external programs and read their outputs in your Python code. subprocess includes several classes and functions, but in this tutorial we’ll cover one of subprocess’s most useful functions: subprocess.run. We’ll review its different uses and main keyword arguments.

Read more
How To Create a URL Shortener with Django and GraphQL — step-by-step Python tutorial on Progressive Robot

How To Create a URL Shortener with Django and GraphQL

GraphQL is an API standard created and open-sourced by Facebook as an alternative to REST APIs. It exposes a single endpoint for all communication instead of multiple URLs for different resources and solves the overfetching issue by returning only the data asked for by the client. In this tutorial you will create a backend for a URL shortener with Python 3, the Django web framework, and the Graphene-Django implementation, while diving into GraphQL concepts like queries and mutations.

Read more
Python io - BytesIO, StringIO — step-by-step Python tutorial on Progressive Robot

Python io – BytesIO, StringIO

URL: https://www.progressiverobot.com/python-io-bytesio-stringio/ Python io module allows us to manage the file-related input and output operations. The advantage of using the IO module is that the classes and functions available allows us to extend the functionality to enable writing to the Unicode data. Python IO Module There are many ways in which we can use the […]

Read more
Image Processing Part 5: Arithmetic, Bitwise, and Masking — step-by-step AI And Machine Learning tutorial on Progressive Robot

Image Processing Part 5: Arithmetic, Bitwise, and Masking

In this 5th part of the image processing series, we discuss more on the Arithmetic and bitwise operations, and masking of images in Python. It is recommended that the [previous articles](/community/tutorials/image-transformation-with-python-opencv) be run through, before starting off on your masked learning adventure here. Setting up the environment The following lines of code are used in […]

Read more
CHAT