# screen.py
## Description
A light-weight library for easy interaction between Python and GNU screen.
This library allows you create, find and kill screen sessions programmatically from Python, as well as send (string) commands to these sessions. You can use this to start other software inside a screen session from a Python script, like this:
```python
import screens
# Start a new session and give it something to do
session = screens.ScreenSession('myName')
session.send_command('echo hello')
# Kill a screen session with a particular name
session = screens.get_session_with_name('testSession')
session.kill()
# Print all the id of all sessions
for session in screens.get_all_sessions():
print(session.id)
```
## Installation
```
pip install --upgrade screens.py
```
Raw data
{
"_id": null,
"home_page": "https://github.com/romanin-rf/pyscreen",
"name": "screens.py",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "GNU screen,screens",
"author": "Romanin",
"author_email": "semina054@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/9b/cf/646f2b6cac5ecfbe3fcd3c9d79afa053436547a0c49b1fb95be7639ecec2/screens.py-0.4.5.tar.gz",
"platform": null,
"description": "# screen.py\n## Description\nA light-weight library for easy interaction between Python and GNU screen.\n\nThis library allows you create, find and kill screen sessions programmatically from Python, as well as send (string) commands to these sessions. You can use this to start other software inside a screen session from a Python script, like this:\n```python\nimport screens\n\n# Start a new session and give it something to do \nsession = screens.ScreenSession('myName')\nsession.send_command('echo hello')\n\n# Kill a screen session with a particular name\nsession = screens.get_session_with_name('testSession')\nsession.kill()\n\n# Print all the id of all sessions\nfor session in screens.get_all_sessions():\n print(session.id)\n```\n## Installation\n```\npip install --upgrade screens.py\n```\n\n\n",
"bugtrack_url": null,
"license": "",
"summary": "A light-weight library for easy interaction between Python and GNU screen.",
"version": "0.4.5",
"split_keywords": [
"gnu screen",
"screens"
],
"urls": [
{
"comment_text": "",
"digests": {
"md5": "73c5fd66ad09e9cd31fb20639f2203ed",
"sha256": "aa3ce1ef1c950350c0fbe09d8bd38179d9a155e4ea2dee1444bb70809b303e59"
},
"downloads": -1,
"filename": "screens.py-0.4.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "73c5fd66ad09e9cd31fb20639f2203ed",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 15541,
"upload_time": "2022-12-18T10:02:32",
"upload_time_iso_8601": "2022-12-18T10:02:32.945342Z",
"url": "https://files.pythonhosted.org/packages/0f/5e/2e1a35d6dcca0264801586c2898c5480bdbfb1051f9b308cb1b541ccfc92/screens.py-0.4.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"md5": "3758fda788193cd2646471c0eacb0f43",
"sha256": "0c30845fa95cf0da2b3b8b5109ebfe6487a03fd0db52a74c248732cdbd8e24f5"
},
"downloads": -1,
"filename": "screens.py-0.4.5.tar.gz",
"has_sig": false,
"md5_digest": "3758fda788193cd2646471c0eacb0f43",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 14920,
"upload_time": "2022-12-18T10:02:35",
"upload_time_iso_8601": "2022-12-18T10:02:35.328498Z",
"url": "https://files.pythonhosted.org/packages/9b/cf/646f2b6cac5ecfbe3fcd3c9d79afa053436547a0c49b1fb95be7639ecec2/screens.py-0.4.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-12-18 10:02:35",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "romanin-rf",
"github_project": "pyscreen",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "screens.py"
}