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
https://github.com/ShawnBaker/sysdfiles/wiki
Usage
import sysdfiles
network = NetworkFile('/etc/systemd/network/lan.network')
print(network.match_mac_address)
print(network.link_mac_address)
network.network_dhcp = ['8.8.8.8', '8.8.4.4']
network.route_metric = 10
network.network_dhcp_server = True
network.dhcp_server_emit_dns = True
network.dhcp_server_dns = '192.168.0.1'
network.save()
Copyright and License
Copyright © 2018 Shawn Baker using the MIT License.
Project details
Release history Release notifications | RSS feed
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.1.0.tar.gz
(13.2 kB
view hashes)
Built Distribution
sysdfiles-0.1.0-py3-none-any.whl
(18.1 kB
view hashes)
Close
Hashes for sysdfiles-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e20d37dbc5376d9534f9f68c9143120b7270f33c1d55da6c41c62039fdc1d9d8 |
|
MD5 | aaf577af6305a784603f047a926e898f |
|
BLAKE2b-256 | 9ba3727056f54ee2a1c31a7cd19701cc456b97e51cbcfcc14fd350feb8b38408 |