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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kea_leases_to_json-0.1.1.tar.gz.
File metadata
- Download URL: kea_leases_to_json-0.1.1.tar.gz
- Upload date:
- Size: 16.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a5cff129161e305b1d3d7d145e6e8b1cbe6ea76b4b35409dd6b5f886337b227
|
|
| MD5 |
9c073259dfc5f5fcbe9b26fc1da8963b
|
|
| BLAKE2b-256 |
088b756dad6136f8137d3dee4de7dcab9553c51ec66f4c3e1db504f0d1680ff5
|
File details
Details for the file kea_leases_to_json-0.1.1-py3-none-any.whl.
File metadata
- Download URL: kea_leases_to_json-0.1.1-py3-none-any.whl
- Upload date:
- Size: 16.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22bd8b8117f9b9b1a2075d097ae4fb964e408db68dfb684ab318e50242c393b9
|
|
| MD5 |
d6d3b57be4c4e54c4c18e8437e0567ce
|
|
| BLAKE2b-256 |
0f538a57b2dd19436012caa35a96f1e937dbbd5b407655f8a4a884d3cc56bb62
|