However, I also have periods where a form of writer’s block kicks in and wonder, “What else could I use Python for?”. As if by magic, Lee Vaughan has answered with “Real World Python” which contains examples of real-world problems being answered by Python and then expands on the solutions with fun challenge projects and further reading.
Category: Python
Caching Requests (Python)
Python's Requests module is a great way for interacting with data over the internet, however when designing/building a Python program that uses Requests that can mean lots (and lots) of Request calls to test a function. This is not too great if you are testing over a poor internet connection, or on limited bandwidth or … Continue reading Caching Requests (Python)
UK Covid-19 / Coronavirus Data (Python)
The UK recently lowered the alert level for Covid-19 / Coronavirus pandemic, with the UK at level 3 (at time of writing this blog, 24th June 2020) and there has been discussion in the media about R levels differing at local levels and of the possibility of local lock downs. On the 23rd June 2020 … Continue reading UK Covid-19 / Coronavirus Data (Python)
Trying To Write More Pythonic With PEP-8 (Python)
The Python language has a list of Python Enhancement Proposals (PEPs) that have been suggested as ways to improve Python. In this blog post I am going to look briefly at PEP-8. The Index Of PEPs Python.org keeps a list of all the PEPs at: https://www.python.org/dev/peps/ once a PEP has been assigned a PEP number, … Continue reading Trying To Write More Pythonic With PEP-8 (Python)
AttributeError: partially initialized module has no attribute…(Python)
Less of a blog post and more of a reminder to myself that when Python says: AttributeError: partially initialized module 'MODULE_NAME' has no attribute 'ATTRIBUTE_NAME' (most likely due to a circular import) It is normally because I have named my Python file the same as the module I am importing and caused a circular reference. … Continue reading AttributeError: partially initialized module has no attribute…(Python)
Python and nmap: Controlling The Output (Python)
In my previous post I looked at the ways of using nmap and Python to scan hosts, and in this post I am going to look at outputting the results. But first a public service announcement: DO NOT USE THE BELOW INFORMATION TO ATTACK, MONITOR OR BREAK INTO ANY COMPUTER / NETWORK / DEVICE THAT … Continue reading Python and nmap: Controlling The Output (Python)
Python and nmap: Scanning For Hosts (Python)
nmap is a powerful software tool that can be used to scan a network for hosts, see what ports they have open and even try to identify what operating system the hosts have running. I previously created a basic port scanner in Python, but in this blog post I am going to look at using … Continue reading Python and nmap: Scanning For Hosts (Python)
Sense Hat Pictures (Raspberry Pi)
After making rainbow displays on the sense hat my son realised that the Raspberry Pi sense hat's LED display could be used to output art including a creeper from Minecraft. Note: This is inspired by https://magpi.raspberrypi.org/articles/make-a-sense-hat-rainbow-display-for-your-window The sense hat has an 8x8 display of individual LEDs which can be programmed to display individual colours. For this … Continue reading Sense Hat Pictures (Raspberry Pi)
Python and Bluetooth – Part 1: Scanning For Devices And Services (Python)
"Track and Trace" has got some attention in recent times here in the UK as the Covid-19 (Coronavirus) lockdown level looks to be relaxed. Part of the "Track and Trace" program is a mobile application that uses low energy bluetooth beaconing to see what other devices running the application have been close by. This has … Continue reading Python and Bluetooth – Part 1: Scanning For Devices And Services (Python)
AutoTweeting WebLinks (Python)
I will hold my hands up here and admit, I am not great at advertising my website on social media. When posting a new blog post it auto generates a link on some social media sites for me, but I rarely ever repost links especially for my older blog posts. Today I am hoping to … Continue reading AutoTweeting WebLinks (Python)
You must be logged in to post a comment.