AI Generative Art Specialist
An AI Generative Art Specialist bridges creative vision with technical AI tooling to produce novel visual content, transforming pr…
Skill Guide
Scripting for automation using Python basics is the practice of writing simple, imperative Python programs to automate repetitive, rule-based tasks, replacing manual execution with reliable, scheduled code.
Scenario
You are given a plain-text server log file (`server.log`) containing entries with timestamps, IP addresses, and error codes (e.g., `ERROR`, `WARN`). Your task is to create a script that parses this file and generates a summary report.
Scenario
Create a script that runs on both Windows and Linux to check critical system metrics (CPU load, memory usage, disk space) and alerts via email if any metric exceeds a defined threshold.
Scenario
Develop an automation suite that monitors a specific application process (e.g., `nginx`). If the process fails, the script must attempt to restart it, log the event, and if the restart fails after N attempts, execute a fallback procedure (e.g., switching to a backup instance) and notify the on-call team.
Python is the runtime. VS Code/PyCharm provide intelligent code completion and debugging. Git is essential for version control of scripts. Docker allows creating reproducible environments for script dependencies.
`subprocess` is the gateway to shell commands. `os/sys` handle file paths and arguments. `psutil` monitors system resources. `requests` interacts with web APIs. `paramiko` automates remote server tasks via SSH. `pyyaml/toml` parse configuration files.
`pytest` is the standard for writing tests to ensure script reliability. `mypy` adds static type checking to catch errors early. `black` and `flake8` enforce consistent code style and quality, critical for maintainable automation.
1 career found
Try a different search term.