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)
Category: 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)
Raspberry Pi Live Camera Webpage Feed V1 (Python / Raspberry Pi)
I've had a Raspberry Pi camera module (v1) since spring 2015, but I've rarely put it to use. With some spare time on my hands I have decided to see if I can build a camera feed on a webpage. Before I continue I should point out that if you are interested in using the … Continue reading Raspberry Pi Live Camera Webpage Feed V1 (Python / Raspberry Pi)
Brute Force Caesar Cipher V2 (Python)
Around a month ago I used Python to brute force the Caesar Cipher (I blogged about it here: https://geektechstuff.com/2019/12/22/brute-force-caesar-cipher-python/). My original solution outputted a solution for each possible cipher shift, which worked ok for small text samples but for larger texts started to take up a large portion of the terminal and my time scrolling. … Continue reading Brute Force Caesar Cipher V2 (Python)
Instant Messaging App With Vigenère Encryption (Python)
Over the last few weeks I have been looking at ciphers and encryption, which has included a Python program to brute force the Caesar cipher, Python to encrypt / decrypt with the Vigenère cipher , some Morse code and RSA Public Keys. With my recent looks into encryption, especially the look into the Vigenere Cipher, … Continue reading Instant Messaging App With Vigenère Encryption (Python)
You must be logged in to post a comment.