Wgconfig Versions Save

parsing and writing WireGuard configuration files (comment preserving)

v1.0.1

3 months ago

v1.0.1

  • More helpful exception output in case WireGuard tools are not installed but needed

v1.0.0

  • Add method for flexibly returning the attributes and values of the interface section
  • Add method for flexibly returning the peers and optionally the peers' data
  • Rework documentation in README.md
  • Add a Jupityer Notebook as additional documentation

v0.3.0

1 year ago

Added

  • Add method to just retrieve the data of a single peer
  • Add the capability to disable and enable peers (mainly contributed by "subs1stem")

Fixed

  • Tests no longer change internal data structures

Changed

  • Refactored tests to reduce code duplication

v0.2.3

1 year ago

Fault tolerant handling of blank lines in "del_attr"; improved README formatting.

v0.2.2

3 years ago

Support for older Python versions; now 2.7+ is supported; thanks to Marc (https://github.com/marcfiu) for this

v0.2.1

3 years ago

Initialize file with comment before interface section is handled properly again (regression)

v0.2.0

3 years ago
  • Added internal "_rawdata" section attribute.
  • Properly handle comments at begin and end of sections in line indices (this changes behavior of attributes "_index_firstline" and "_index_firstline" in these cases)
  • Truncate WireGuard config files before writing changes.

v0.1.4

3 years ago
  • Added simple module wrapping wg tool.
  • Formatting improvements.
  • README corrections.

v0.1.3

3 years ago

v0.1.2

3 years ago