Are you happy with your logging solution? Would you help us out by taking a 30-second survey? Click here

Python

My Python Examples

Subscribe to updates I use Python


Statistics on Python

Number of watchers on Github 5020
Number of open issues 54
Average time to close an issue 6 months
Main language Python
Average time to merge a PR 8 days
Open pull requests 61+
Closed pull requests 18+
Last commit over 1 year ago
Repo Created almost 8 years ago
Repo Last Updated over 1 year ago
Size 1.24 MB
Homepage http://www.thegee...
Organization / Authorgeekcomputers
Contributors7
Page Updated
Do you use Python? Leave a review!
View open issues (54)
View Python activity
View on github
Fresh, new opensource launches 🚀🚀🚀
Trendy new open source projects in your inbox! View examples

Subscribe to our mailing list

Evaluating Python for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

My Python Examples.

Here is some more detailed information about the scripts I have written. I do not consider myself a programmer; I create these little programs as experiments to have a play with the language, or to solve a problem for myself. I would gladly accept pointers from others to improve the code and make it more efficient, or simplify the code. If you would like to make any comments then please feel free to email me at craig@geekcomputers.co.uk.

In the scripts the comments etc are lined up correctly when they are viewed in Notepad++. This is what I use to code Python scripts.

  • batch_file_rename.py - This will batch rename a group of files in a given directory, once you pass the current and new extensions.

  • create_dir_if_not_there.py - Checks to see if a directory exists in the users home directory, if not then create it.

  • Fast Youtube Downloader - Downloads youtube videos fastly with parallel threads using aria2c

  • Google Image Downloader - Query the specific term and retrieve the images from google image database.

  • dir_test.py - Tests to see if the directory testdir exists, if not it will create the directory for you.

  • env_check.py - This script will check to see if all of the environment variables I require are set.

  • fileinfo.py - Show file information for a given file.

  • folder_size.py - This will scan the current directory and all subdirectories and display the size.

  • logs.py - This script will search for all *.log files in the given directory, zip them using the program you specify and then date stamp them.

  • move_files_over_x_days.py - This will move all the files from the source directory that are over 240 days old to the destination directory.

  • nslookup_check.py - This very simple script opens the file server_list.txt and then does an nslookup for each one to check the DNS entry.

  • osinfo.py - Displays some information about the OS on which you are running this script.

  • ping_servers.py - This script depending on the arguments supplied, will ping the servers associated with that application group.

  • ping_subnet.py - After supplying the first 3 octets it will scan the final range for available addresses.

  • powerdown_startup.py - This goes through the server list and pings the machine, if it's up it will load the putty session, if it's not it will notify you.

  • puttylogs.py - This zips up all the logs in the given directory.

  • script_count.py - This scans my scripts directory and gives a count of the different types of scripts.

  • script_listing.py - This will list all the files in the given directory, it will also go through all the subdirectories as well.

  • testlines.py - This very simple script opens a file and prints out 100 lines of whatever is the set for the line variable.

  • tweeter.py - This script allows you to tweet text or a picture from the terminal.

  • serial_scanner.py contains a method called ListAvailablePorts which returns a list with the names of the serial ports that are in use in our computer, this method works only on Linux and Windows (can be extended for mac osx). If no port is found, an empty list is returned.

  • get_youtube_view.py - This is very simple python script to get more views for your youtube videos. Sometimes I use it for repeating my favorite songs by this script.

  • CountMillionCharacter.py And CountMillionCharacter2.0.py - This Script is used for 1.counting character script 2.count how much characters are present on any text based file.

  • xkcd_downloader.py - Downloads the latest XKCD comic and places them in a new folder comics.

  • timymodule.py - A great alternative to Pythons 'timeit' module and easier to use.

  • calculator.py - Uses Python's eval() function to implement a calculator.

  • Google_News.py - Uses BeautifulSoup to provide Latest News Headline along with news link.

  • cricket_live_score - Uses BeautifulSoup to provide live cricket score.

  • youtube.py - Takes input a song name and fetches the youtube url of best matching song and plays it.

Python open issues Ask a question     (View All Issues)
  • about 3 years Help?
  • over 3 years Porting to python 3.5.
  • over 3 years Shebangs?
  • over 3 years osinfo.py simplification
  • over 3 years What happens if Recycle Bin is not located on the C drive?
  • over 3 years can not excute this script
  • about 4 years Invalid PEP8 scripts
  • about 4 years [not an issue] See inside, @geekcomputers!
  • over 4 years Written a python script to map device with specific host adapter...
Python open pull requests (View All Pulls)
  • Added Usage Message
  • Fixing some snippets in rename.py
  • add 1 unittest to the project
  • Various Improvements
  • Python 3 and PyCharm compatible
  • Update password_cracker.py
  • Align comments for better visibility
  • Adding some more utility python script
  • Update testlines.py
  • PEP8 Fixes
  • hey
  • Modified nslookup and create_directory
  • start local server
  • Update README.md
  • V1
  • fix 1 bug
  • A simple script to invoke webcam on your pc
  • Added Exception Handling and User Inputs
  • indent expected in create_dir_if_not_there.py
  • Added movie_details and Jee_result
  • update new script
  • Fix whitespace
  • Update osinfo,py
  • added integer variable
  • Update to folder_size.py
  • Create variation1.py for the original Count Million Characters
  • updated comment for this application
  • Update count
  • Fix readme
  • fix indentetion mistake
  • Added title to Readme.md file
  • fix pep8 error
  • Disculpa, estamos probando
  • Multiple file support and print Statement
  • tiny visual update
  • tiny visual update
  • Visual Update
  • Update daily_checks.py
  • Update serial_scanner.py
  • Update script_listing.py
  • Update merge.py
  • Fixed lack of output
  • Using Python3 Syntax
  • Added PEP 8 formatting and some minor fixes
  • A dice rolling simulation script
  • Refactor code to uphold DRY principle.
  • Refactor hard-coded values to allow flexibility.
  • Let's run some tests!
  • Update Organise.py
  • Create factors.py
  • Print message when sides set to 6
  • Update serial_scanner.py
  • Added a comment
  • removed headers from youtube.py
  • Small Updates
  • Change the range of user input.
  • How to use FTP in python & PORT SCANNER IN PYTHON
  • Minor Fixes + New Script "PassGen" + python3.x support updates + enhancements
  • Latest Update_ for all varsions of interpreters
  • Create Palindrome_Checker.py
  • Refactoring Organise.py
Python questions on Stackoverflow (View All Questions)
  • 'Setup Python App' feature on cPanel shared hosting
  • Python - slow matrix performance
  • Having trouble starting the game in python. The game never starts and the error below shows up
  • Semicolon alternative in python
  • Python Django webpage works manually but domain gives 404 error on shared host
  • Improving a method for a spatially aware median filter for point clouds in Python
  • Python programming error re: reading from files
  • Python: With Scrapy Script- Is this the best way to scrape urls from forums?
  • Python return? vs no return?
  • How do I access a vendored library from a module in Python Google App Engine?
  • Python: UDP Proxy Multithreading
  • Python function call, how to pass in multiple function parameters as a single variable string?
  • ansible python virtualenv setup
  • Need to embed `-` character into arguments in python argparse
  • Boost, Python: Linker error with Visual Studio 2015
  • Unable to insert values to mysql using python
  • Python & Selenium Click and "TypeError: string indices must be integers"
  • python: Dictionary, file and functions
  • Can I have a Python script listen on a message queue continuously or do I have to loop?
  • Jinja python for loop syntax
  • System Tray Menu in Python 3
  • unsupported operand type(s) for /: 'Turtle' and 'float' (using Python 3.5)
  • Check type existence in Python module
  • How to use arrays/lists and loops in Python
  • A python crawler not work for asyncio
  • how to return image in python file?
  • How to run a function/thread in a different terminal window in python?
  • python unsupported operand type error int or str
  • How to get specific table data from a table row using python and BeautifulSoup4
  • Python PIL size Image.new too big
Python list of languages used
Other projects in Python