ctrldaemon-0.2
توضیحات
Service command wrapper for Python.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | ctrldaemon-0.2 |
| نام | ctrldaemon |
| نسخه کتابخانه | 0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Yohan Graterol |
| ایمیل نویسنده | yograterol@fedoraproject.org |
| آدرس صفحه اصلی | http://www.yograterol.me |
| آدرس اینترنتی | https://pypi.org/project/ctrldaemon/ |
| مجوز | BSD License |
python-ctrldaemon
=================
*Service command wrapper for Python.*
Usage
-------------------------------
**Create object**
```python
from ctrldaemon import ControlDaemon
obj = ControlDaemon("service") # Example "httpd" (Apache)
```
**Start service**
```python
from ctrldaemon import ControlDaemon
obj = ControlDaemon("service") # Example "httpd" (Apache)
obj.start()
```
**Stop service**
```python
from ctrldaemon import ControlDaemon
obj = ControlDaemon("service") # Example "httpd" (Apache)
obj.stop()
```
**Restart service**
```python
from ctrldaemon import ControlDaemon
obj = ControlDaemon("service") # Example "httpd" (Apache)
obj.restart()
```
**Memory**
```python
from ctrldaemon import ControlDaemon
obj = ControlDaemon("service") # Example "httpd" (Apache)
obj.get_memory_usage()
```
نحوه نصب
نصب پکیج whl ctrldaemon-0.2:
pip install ctrldaemon-0.2.whl
نصب پکیج tar.gz ctrldaemon-0.2:
pip install ctrldaemon-0.2.tar.gz