Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sepandhaghighi/pyshutdown
📚 Python shutdown library
https://github.com/sepandhaghighi/pyshutdown
hibernate library logoff module open opensource pypi python python-3 python-shutdown-library pythonlib restart shutdown sleep unix windows
Last synced: about 2 months ago
JSON representation
📚 Python shutdown library
- Host: GitHub
- URL: https://github.com/sepandhaghighi/pyshutdown
- Owner: sepandhaghighi
- License: mit
- Created: 2016-02-19T12:21:18.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-09-10T14:26:47.000Z (over 3 years ago)
- Last Synced: 2024-06-11T17:44:14.984Z (6 months ago)
- Topics: hibernate, library, logoff, module, open, opensource, pypi, python, python-3, python-shutdown-library, pythonlib, restart, shutdown, sleep, unix, windows
- Language: Python
- Homepage:
- Size: 3.64 MB
- Stars: 31
- Watchers: 6
- Forks: 8
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pyshutdown
----------
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/sepandhaghighi/pyshutdown/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/sepandhaghighi/pyshutdown/?branch=master)
[![Build Status](https://scrutinizer-ci.com/g/sepandhaghighi/pyshutdown/badges/build.png?b=master)](https://scrutinizer-ci.com/g/sepandhaghighi/pyshutdown/build-status/master)
[![PyPI version](https://badge.fury.io/py/shutdown.svg)](https://badge.fury.io/py/shutdown)
[![license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/sepandhaghighi/pyshutdown/blob/master/LICENSE)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/478dc165527b4c2fb67a336d7c88e7cd)](https://www.codacy.com/app/sepand-haghighi/pyshutdown?utm_source=github.com&utm_medium=referral&utm_content=sepandhaghighi/pyshutdown&utm_campaign=Badge_Grade)
Python shutdown libraryVersion : V1.1
[Download](https://github.com/sepandhaghighi/pyshutdown/archive/v1.1.zip)
This version only work in windows
----------
## Installation ##
From source file :`git clone https://github.com/sepandhaghighi/pyshutdown.git`
`python setup.py install`From PyPI:
`pip install shutdown`## Usage ##
- import shutdown lib `python from shutdown import *`
- shutdown function `shutdown(time=your_time,force=False,warning_off=False)`
- restart function `restart(time=your_time,force=False)`
- hibernate function `hibernate(force=False)`
- logoff function `logoff(force=False)`
- cancel any shutdown process `cancel()`
![](http://www.shaghighi.ir/pyshutdown/shutdown.gif)