Skip to main content

systemd configuration file access

Project description

Classes for Accessing the systemd Configuration Files

A collection of classes for accessing the systemd configuration files.

Only tested with Python 3.6 on Debian 9.5.

Installation

pip install sysdfiles

Documentation

Usage

from sysdfiles import NetworkFile

network = NetworkFile('/etc/systemd/network/lan.network')
print(network.match_name)
print(network.match_mac_address)
network.network_dhcp = ['8.8.8.8', '8.8.4.4']
network.network_dhcp_server = True
network.dhcp_server_emit_dns = True
network.dhcp_server_dns = '192.168.0.1'
network.route_metric = 10
network.save()

Copyright and License

Copyright © 2018 Shawn Baker using the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sysdfiles-0.2.0.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sysdfiles-0.2.0-py3-none-any.whl (21.6 kB view details)

Uploaded Python 3

File details

Details for the file sysdfiles-0.2.0.tar.gz.

File metadata

  • Download URL: sysdfiles-0.2.0.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

File hashes

Hashes for sysdfiles-0.2.0.tar.gz
Algorithm Hash digest
SHA256 1b526adbb532523d15bdf8ed42e90780fdaa70341c1892963de762f867c4c8b4
MD5 04c8b84f79080b288ab2bc9dce54b12d
BLAKE2b-256 7a3fea4ab9b3695e550950d6a8baf0dbccd99bc6502adc1461121274034bd425

See more details on using hashes here.

File details

Details for the file sysdfiles-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: sysdfiles-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 21.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

File hashes

Hashes for sysdfiles-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5b044ca7df2a069f5cce3cf7ec115a82df0bd5a539f762537efcda692c5cd705
MD5 a107050a788fa27ed3bc1a428dde74e7
BLAKE2b-256 64a0423bfbfe2a56ed0915a90eb582f61ade2439cacdf6d4821975f60ffb6305

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page