Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

systemdunitparser

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

systemdunitparser

Parser to read and create unit files for systemd

  • 0.3
  • PyPI
  • Socket score

Maintainers
2

SystemdUnitParser

SystemdUnitParser is an extension to Python's configparser.RawConfigParser to properly parse systemd unit files

Usage

from SystemdUnitParser import SystemdUnitParser

config = SystemdUnitParser()
config.read('sample.service') # or any other systemd unit file

print(config.sections()) # get all sections of the unit file
print(config.options('Unit')) # get all options in a section
print(config.get('Unit', 'Description')) # get the actual value of an action

Contributing

  • create a fork
  • create a new branch from origin/master
  • do your patches
  • run pytest
  • push your changes to your fork and create a PR

License

This module is licensed under GPL-3.0-or-later

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc