Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
python-mkp
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Package registry
Container Registry
Operate
Terraform modules
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
checkmk
python-mkp
Commits
d14005c1
Commit
d14005c1
authored
9 years ago
by
tom-mi
Browse files
Options
Downloads
Patches
Plain Diff
Update README
parent
26a8261c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+38
-0
38 additions, 0 deletions
README.md
with
38 additions
and
0 deletions
README.md
+
38
−
0
View file @
d14005c1
# python-mkp
[

](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.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment