mirror of
https://github.com/pklaus/mdpython.git
synced 2024-03-10 02:32:38 +03:00
Releasing it under the GPL3 or later & Readme added
This commit is contained in:
31
README.md
Normal file
31
README.md
Normal file
@@ -0,0 +1,31 @@
|
||||
### mdpython
|
||||
|
||||
**mdpython** is a Python toolkit for software raids created using `mdadm`.
|
||||
It is meant to provide an interface to the status output of `/proc/mdstat`.
|
||||
Python-bindings for the status output of `mdadm` may be added later on.
|
||||
|
||||
In addition, mdpython provides a small web server written using
|
||||
[bottle.py](http://bottlepy.org) that provides status information of the
|
||||
software raids running on the system.
|
||||
|
||||
### License
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
### Author
|
||||
|
||||
The author of this project is Philipp Klaus <philipp.klaus@gmail.com>.
|
||||
`mdstat.py` contained in this project was originally written by Alexey Zotov
|
||||
for [softraid-monitor](http://code.google.com/p/softraid-monitor/).
|
||||
|
||||
10
mdstat.py
10
mdstat.py
@@ -1,14 +1,14 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# mdstat.py
|
||||
# mdstat.py - A Python wrapper for /proc/mdstat
|
||||
#
|
||||
# Copyright 2011 Alexey Zotov <alexey.zotov@gmail.com>
|
||||
# Copyright 2014 Philipp Klaus <philipp.klaus@gmail.com>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
@@ -17,9 +17,7 @@
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
||||
# MA 02110-1301, USA.
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
# mdstat.py is originally from code.google.com/p/softraid-monitor :
|
||||
# http://code.google.com/p/softraid-monitor/source/browse/contents/code/mdstat.py
|
||||
|
||||
17
server.py
17
server.py
@@ -1,5 +1,22 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
# server.py - An application serving the software raid status as web page
|
||||
#
|
||||
# Copyright 2014 Philipp Klaus <philipp.klaus@gmail.com>
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import mdstat
|
||||
from bottle import route, run, view
|
||||
import socket
|
||||
|
||||
Reference in New Issue
Block a user