Skip to main content

Convert Kea DHCP leases to JSON format

Project description

Kea Leases to JSON

A Python tool to convert ISC Kea DHCP leases files to JSON format.
Supports both IPv4 and IPv6 leases. Includes a directory watcher for real-time conversion.

Features

  • Converts Kea leases CSV files to JSON
  • Handles both IPv4 and IPv6 addresses
  • Watches a directory for changes and updates the JSON output automatically
  • Command-line interface

Installation

You can install the latest release from PyPI:

pip install kea-leases-to-json

Or, to install from source:

git clone https://github.com/yourusername/kea-leases-to-json.git
cd kea-leases-to-json
pip install .

Usage

After installation, you can use the command-line tool:

kea-leases-to-json --source /path/to/kea/leases/dir --target /path/to/output.json

Options

  • --source (required): Directory containing Kea lease CSV files
  • --target (required): Output JSON file path
  • --log-level: Logging level (default: INFO)

Example

kea-leases-to-json --source ./leases --target ./leases.json --log-level DEBUG

License

This project is licensed under the GNU GPL v3.

Contributing

Pull requests

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

kea_leases_to_json-0.1.0.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

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

kea_leases_to_json-0.1.0-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kea_leases_to_json-0.1.0.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for kea_leases_to_json-0.1.0.tar.gz
Algorithm Hash digest
SHA256 84505ec0f01de58100f97324c55567f6441bd1a5d46986a646b30704c42a9100
MD5 2a382ab60fa8db56871cdf9d078f7e25
BLAKE2b-256 ac04186e36c890f78d45cb1ff648183fc88da0f2c0f6392bdfa80845b5a00eda

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kea_leases_to_json-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9a85e6108b0adc6aa84b3013105a99a62e45b11ce119a6295072f065ba8853d4
MD5 357b40adbadd84d0a92e505379801112
BLAKE2b-256 8e014aee047807ad8cf97b541bb8773d25997830e4ff9a9ee9f6c6e5e742789a

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