Skip to content

tekore/Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python

Python Automation

Various Python automation scripts

Table of Contents

Usage

  • Clone the repo:
$ git clone https://github.com/tekore/Python
  • Run the script
$ python3 ./<SCRIPT>

Showcase

Nagios-automation.py

Notable libraries used:

  • Subprocess

Used to spawn SSH processes, redirect standard out to variables and redirect standard in to pseudo-terminals.

  • Pty

Used to spawn pseudo-terminals as to allow subprocess standard in to be written to.

  • Threading

Used to spawn processes on seperate threads as deamons, limit the number of threads active at a time with 'Semaphore' and temporarily lock data sets to prevent race conditions with 'Lock'.

  • Queue

Used to enable thread safe queueing of tasks.

ova-downloader.py

Notable libraries used:

  • socket Used to get the host IP.

  • requests User the communicate with API's and download required files.

  • http.server Used to host files on a simple webserver.

Maintainers

@Tekore

About

Python automation scripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published