Skip to content
Shawn Baker edited this page Dec 10, 2018 · 19 revisions

This library provides access to the systemd configuration files through a set of Python classes that map to those files. The basic file types are:

  • files containing a single value:
    • hostname and machine-id
  • files containing shell-like variable assignments:
    • machine-id and os-release
  • files containing host addresses, names and aliases
    • hosts
  • .ini files that allow multiple entries with the same name
    • conf, link, network and unit files
    • automount, device, mount, path, scope, service, slice, socket, swap, target and timer files

See the Links page for more information about these files.

The class hierarchy is: