I need to execute this command in Python:
curl "http://robot:<automation secret>@127.0.0.1/monitor/check_mk/webapi.py?action=edit_host" -d 'request={"attributes": {"tag_check_puppet": "check_puppet"}, "hostname":"test.test.ch"}'
Problem is i'm new to python and it needs to be dynamic, so i can adapt it with variables like the hostname and tag_check_puppet value.
Any idea how to help me?