All languages

Python for DevOps

You're viewing a free preview. Sign in free to read every script.

Why this exists An inventory of servers, the lines of a log, the resources in a cloud account, the keys of a config file: nearly everything a DevOps script processes is a collection of records . Python's built in lists,…

Python for DevOps: Lists, Dicts, Sets, Comprehensions, Counter and the Copy Trap

Model inventories and log data with Python's built-in collections: sorting with keys, comprehensions, dictionaries with defaults, Counter and defaultdict, set arithmetic for drift, named tuples, groupby's sorting requirement, and why assignment does not copy.

Sign in free to read this script, along with the rest of the library.

Sign in free