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.2.0.tar.gz (49.3 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.2.0-py3-none-any.whl (34.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: keepalived_config-0.2.0.tar.gz
  • Upload date:
  • Size: 49.3 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.2.0.tar.gz
Algorithm Hash digest
SHA256 ba3107e7cca44bff914c8fc6340ddf9f8013d9d89cc2065aa0ebf6b348c0cb7b
MD5 8354ee34b9a04a7f5f0b02e1dd67aaa3
BLAKE2b-256 daebb3fec06971cbe143b4ac9bb45a902b0ecc00125c39253d1be9da136d3121

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for keepalived_config-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ed0683b926d4103a6df6fa5cc29664b751111eadfbc272d378d3336e121b6a50
MD5 3fdf6f19e53a4cc9f5e8bb212e3a7848
BLAKE2b-256 63829a60c83a82e803fb8e9b9e31439dff338b43fc81614d54d76f1f18c242b7

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