Tagged articles
6 articles
Page 1 of 1
MaGe Linux Operations
MaGe Linux Operations
Nov 9, 2018 · Operations

Python Tool for Automating Multi-Server Commands and rsync-Style File Sync

This article introduces a Python 3.5 script that streamlines the management of dozens of servers by enabling batch remote command execution, multithreaded file upload/download with an rsync-like mechanism, strict or non-strict modes, and cross-platform support for both Linux and Windows, all driven by docopt and paramiko.

ParamikoServer Automationcross‑platform
0 likes · 6 min read
Python Tool for Automating Multi-Server Commands and rsync-Style File Sync
MaGe Linux Operations
MaGe Linux Operations
May 28, 2017 · Backend Development

Build a Python CLI to Fetch 12306 Train Tickets in Seconds

This tutorial walks you through creating a Python command‑line tool named “tickets” that, using virtualenv, docopt, and prettytable, retrieves real‑time train ticket information from China’s 12306 service by specifying departure, destination, and date, and displays the results in a formatted table.

CLIdocoptprettytable
0 likes · 3 min read
Build a Python CLI to Fetch 12306 Train Tickets in Seconds