Python for Automation
Script your admin tasks, automate the network and use APIs. From syntax to production scripts.
- Master Python syntax and data structures
- Handle files, data and APIs
- Automate system and network tasks
- Structure a robust script
- Replace repetitive tasks (renaming, file processing, reports) with reliable scripts
- Query any REST API and use the returned data without a developer
- Automate network monitoring or config generation from your own internal tools
- Read and modify Python code in production, a differentiating skill for an infrastructure profile
The programme
Day 1 - Fundamentals
- Native types, variables, control flow, functions
- Modules, packages and import management
- Data structures: lists, dicts, sets, tuples
- Workshop: basic utility scripts
Day 2 - Files, OOP & environments
- Files, exceptions and logging
- Object-oriented programming: classes, inheritance, dataclasses
- Virtual environments, pip and pyproject.toml
- Workshop: CLI tool with Click or argparse
Day 3 - APIs, data & tests
- HTTP requests and JSON with requests and httpx
- Consuming REST APIs (NetBox, GitLab, AWS boto3)
- Parsing CSV/YAML/TOML and data processing
- Testing with pytest and mocking
- Workshop: complete REST API client with tests
Day 4 - Network & infrastructure automation
- Network automation: Netmiko, NAPALM, pynetbox
- Interacting with cloud APIs (boto3, azure-sdk)
- Paramiko/Fabric: remote execution over SSH
- Jinja2 config generation and Ansible deployment
- Final workshop: complete infrastructure automation script
Who is this for
Administrators, ops, network engineers and technical profiles who want to automate.
Prerequisites
- Basic logic (an advantage)
- No Python experience required
Format
Frequently asked questions
Is the course eligible for OPCO or CPF funding?
No. Sphinx-Digital is not Qualiopi certified and is not listed on Mon Compte Formation. The course is invoiced directly to the company or the individual, with no external funding.
What is the difference between the public (inter-company) and in-company formats?
In the public format, you join a session with participants from other companies (3 to 10 people). In-company, we run a session dedicated to your team, on your site or remotely, with content adapted to your context. In-company pricing is available on quote.
Remote or on-site: what are the practical differences?
Content and labs are identical. Remotely, labs run on cloud environments accessible from a browser, with nothing to install. On-site, you provide the workstations; labs can run in the cloud or locally depending on your infrastructure.
How many participants per session?
3 to 10 participants at most. This deliberate limit ensures everyone can ask questions, adapt the exercises to their context and get a detailed answer.
What is the evening format?
The evening format spreads the same course over 4 sessions of 3.5 hours (14 hours in total), in the evening from 6:30 pm to 10:00 pm. Same content, same labs, same price, so you can build skills without taking days off.
How does payment work?
Courses are invoiced on quote, by bank transfer. Payment in instalments is possible. We issue a training agreement for companies that want their training department to cover the cost.
Interested in this course?
Join the next session or request a tailored in-company session.
What participants say
Not sure this course fits your context?
A 20-minute call to take stock before you enrol, with no sales pitch.