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

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.1.tar.gz (45.1 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.1-py3-none-any.whl (32.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: keepalived_config-0.2.1.tar.gz
  • Upload date:
  • Size: 45.1 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.1.tar.gz
Algorithm Hash digest
SHA256 b08a2f090d52381f7a902de2e0d03431e06714a27539b7748529dcb87e4a2a60
MD5 656036d281f2673644589b7f97b5b9d2
BLAKE2b-256 ce78320ec409685dfb1f67e65c6c3bfe8c67e5fcd5b99489a4b73424ddc0806e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for keepalived_config-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a70850ecac0ce314ec638598efb2f697be3a4883d0bb77107be85dda3718b977
MD5 0e0310ca35c55c14695b8f2b91cd4e92
BLAKE2b-256 1c3319f433c5005b57433d87a609809cf770ce274ac1ca6f135edc6fc3ea2f54

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