Skip to content
Snippets Groups Projects
Commit d14005c1 authored by tom-mi's avatar tom-mi
Browse files

Update README

parent 26a8261c
No related branches found
No related tags found
No related merge requests found
# python-mkp
[![Build Status](https://travis-ci.org/tom-mi/python-mkp.svg?branch=master)](https://travis-ci.org/tom-mi/python-mkp)
Pack or unpack [Check_MK](https://mathias-kettner.de/check_mk.html) mkp files.
## Installation
pip install mkp
## Usage
### Extract mkp package
import mkp
package = mkp.load_file('foo-1.0.mkp')
print(package.info)
package.extract_files('path/to/somewhere')
### Pack files to mkp package
import mkp
info = {
'author': 'tom-mi',
'description': 'Test the system',
'download_url': 'http://example.com/',
'files': mkp.find_files('path/to/files'),
'name': 'test',
'title': 'Test',
'version': '1.0',
'version.min_required': '1.2.3',
}
mkp.pack_to_file(info, 'path/to/files', 'test-1.0.mkp')
## License
This software is licensed under GPLv2.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment