Skip to main content

No project description provided

Project description

keepalived-config

Python API for configuration files for linux keepalived package.

Features

  • Parse a keepalived configuration from file or string
  • Modify the config object and any parameter inside
  • Save back the (modified) config to another (or the same) file
  • Comments in the config file are supported and can also be added via the python API
  • empty lines in the config file, can be kept and are represented as empty config parameters
  • ansible module that supports modification of parameters and also blocks in the configuration with full idempotency

TODO

  • Support for included config files

Development

Setup

To setup your dev environment, you have 2 options:

  1. local: execute the command main.sh setup. This will install a virtual python environment and install the required packages.
  2. container: Use the provided devcontainer, where everything is already installed (no need to run the setup command)

Tests

Units tests are to be developed for all public modules and methods and placed inside the tests directory. They can be executed via the command main.sh test

Packaging

The source build and wheel distrubtions can be generated via the command main.sh build. The package can then be uploaded to PyPi via the command main.sh upload.

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

keepalived_config-0.1.0.tar.gz (48.5 kB view details)

Uploaded Source

Built Distribution

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

keepalived_config-0.1.0-py3-none-any.whl (34.4 kB view details)

Uploaded Python 3

File details

Details for the file keepalived_config-0.1.0.tar.gz.

File metadata

  • Download URL: keepalived_config-0.1.0.tar.gz
  • Upload date:
  • Size: 48.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for keepalived_config-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9403743096a11c0c9a56b6196418136ca6c883d6a7e2ad173ed4a3be5fbee46b
MD5 6642244e235cfb0ee9d0298eec9fe10a
BLAKE2b-256 dc12716d36d96c1ed7d1a1a89d0d53834d0311d19aac43f84f77ffc5050dd760

See more details on using hashes here.

File details

Details for the file keepalived_config-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for keepalived_config-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a991eca7e02ddfea3082ebbb4d40e7dda176c8a0230d9e104e349626b1f32f4d
MD5 fd64f6e250106d706b48bf42d329a1b7
BLAKE2b-256 c4015e0e315c4cd8a3f8160c89e891e8d808e24a5d03237a23067a7a9091a8a7

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