Python for Ops, developers not allowed





An engineer not only needs bash, but you yourself know. Surely there are a couple of courses on the basics of python in the bookmarks, maybe they bought a book by Mark Lutz.



In the Python for Engineers course, you will NOT solve abstract problems like: Reverse the list without using reverse (). In our practice, only what is applicable in the work, examples:



  • Write an agent that will poll the rights management system and make changes to the configuration of rights within the installed services.
  • Write a script to extract data from billing and transfer data to Prometheus. The data format is inappropriate. It is also necessary to implement the connector.
  • Generating change log from commit headers.


For all lines of code, receive detailed feedback and a code review from the speaker.

And so that the knowledge gained does not go to the table, we will fix it with a project. There will be several options for the engineer or your project to choose from. It will be cool if you want to solve a problem from your working project.



Course program:
Introductory webinar.



  • Why do OPS need python?
  • What is its beauty?
  • What tasks is Python good for?


โ„–1: Python



: Python , โ€” . ยซ ยป, Python.



  • , / / , .
  • โ€” , , switch.
  • โ€” while for, , .
  • , , .
  • .
  • : .


โ„–2: Python:



: Python โ€” . ( ) .



  • โ€” yield , Python ( else , comprehensions, etc.).
  • (frozendict, defaultdict, etc.).
  • : , , , .
  • : .
  • : . CTO , .

    , : , .

    , , CTO .


โ„–3:



: - . , Python - .



  • pip .
  • Paramiko ssh.
  • requests HTTP .
  • .
  • . Python. . ! , curl, . requests, HTTP- . , SBS (Slurm Beautiful Services). : SSH.
  • . : โ€” . Kafka. : Trello.


โ„–4:



: โ€” . . . . ? , .



  • re .
  • : separated values, json, yaml, xml.
  • : argparse.
  • : . , CEO. . , .



    , yaml, xml. . JSON .


โ„–5:



: . Python โ€” .



  • .
  • os โ€” environment variables, , .
  • subprocess .
  • : . : , .

    , - . , , .

    , , , .


โ„–6: Ansible

: Ansible โ€” , . , Python.



  • ansible.
  • : . -, - . pull push ansible. โ€” .


โ„–7: K8S Python. live-coding stream



: K8S .

Go.



โ„–8: API



: โ€” . stage .



  • REST API Flask.
  • prometheus exporter Prometheus Python Client Flask.
  • : . .

    โ€” . Prometheus. .

    . , JSON.


โ„–9: CVS DevOps



  • Gitlab.
  • pygit .
  • : change log . , . . commit conventions dev- , commit conventions โ€” merge-request merge.


โ„–10: chatops Errbot Python. live-coding stream



: Infrastructure as a Chat โ€” . ? .



.



โ„–11:



, . โ€” .



The first stream starts in June, places are limited, so welcome.



The price of the course is 30k, in installments for 4 months 7.5k.



Read the details and leave a request.



All Articles