# swapsys - a linux cmd line utility to manage swap space
[![Swapsys PyPi Package Upload](https://github.com/rbashish/swapsys/actions/workflows/pypi-publish.yml/badge.svg)](https://github.com/rbashish/swapsys/actions/workflows/pypi-publish.yml)
![PyPI Version](https://img.shields.io/pypi/v/swapsys?style=plastic)
![Libraries.io SourceRank](https://img.shields.io/librariesio/sourcerank/pypi/swapsys?style=plastic)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/swapsys?style=plastic)
![PyPI - Wheel](https://img.shields.io/pypi/wheel/swapsys?style=plastic)
![GitHub issues](https://img.shields.io/github/issues-raw/rbashish/swapsys?style=plastic)
![PyPI - License](https://img.shields.io/pypi/l/swapsys?style=plastic)
![PyPI - Downloads](https://img.shields.io/pypi/dm/swapsys?style=plastic)
Description
-----
This package provides a command-line interface to manage swap space to a Linux system.
It prompts the user for the desired swap size in GB and then adds the swap space using the dd and mkswap commands. After the swap space has been added, it updates `/etc/fstab` to make the swap permanent.
It also has an options of removing, increasing and decreasing the memory size.
Download & Install
-----
```
pip install swapsys
```
```
sudo pip install swapsys
```
`Note:` Please note that some operating systems might be equipped with the python3 and pip3 commands instead of python and pip.
Usage
----
```
swapsys
```
`Note:` Make sure you provide full path of swapsys (`which swapsys` to get the path) with sudo or run with root user as updating /etc/fstab requires root permission.
Screenshot
----
### Downloading the package:
![pypi-swapsys.png](https://raw.githubusercontent.com/rbashish/swapsys/main/image/pip-install-swapsys.png)
### Run the utility
![pypi-swapsys.png](https://raw.githubusercontent.com/rbashish/swapsys/main/image/swapsys-logo.png)
Feedback/Issue
----
Have a feedback, feature request, known bug, please report it at this [issue page](https://github.com/rbashish/swapsys/issues)
Raw data
{
"_id": null,
"home_page": null,
"name": "swapsys",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": "swap, add swap, swap space, linux swap, swap memory",
"author": null,
"author_email": "rb ashish <dev@rbashish.tech>",
"download_url": "https://files.pythonhosted.org/packages/8b/e0/3731b9fcf9dd0285543df63c06981d44cebc1f57acdfeeaf1ae9330fbe22/swapsys-1.0.1.tar.gz",
"platform": null,
"description": "# swapsys - a linux cmd line utility to manage swap space\n\n[![Swapsys PyPi Package Upload](https://github.com/rbashish/swapsys/actions/workflows/pypi-publish.yml/badge.svg)](https://github.com/rbashish/swapsys/actions/workflows/pypi-publish.yml)\n\n![PyPI Version](https://img.shields.io/pypi/v/swapsys?style=plastic)\n![Libraries.io SourceRank](https://img.shields.io/librariesio/sourcerank/pypi/swapsys?style=plastic)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/swapsys?style=plastic)\n![PyPI - Wheel](https://img.shields.io/pypi/wheel/swapsys?style=plastic)\n\n![GitHub issues](https://img.shields.io/github/issues-raw/rbashish/swapsys?style=plastic)\n![PyPI - License](https://img.shields.io/pypi/l/swapsys?style=plastic)\n![PyPI - Downloads](https://img.shields.io/pypi/dm/swapsys?style=plastic)\n\n\nDescription\n-----\nThis package provides a command-line interface to manage swap space to a Linux system.\n\nIt prompts the user for the desired swap size in GB and then adds the swap space using the dd and mkswap commands. After the swap space has been added, it updates `/etc/fstab` to make the swap permanent.\nIt also has an options of removing, increasing and decreasing the memory size.\n\nDownload & Install\n-----\n```\npip install swapsys\n```\n```\nsudo pip install swapsys\n```\n\n`Note:` Please note that some operating systems might be equipped with the python3 and pip3 commands instead of python and pip. \n\nUsage\n----\n```\nswapsys\n```\n`Note:` Make sure you provide full path of swapsys (`which swapsys` to get the path) with sudo or run with root user as updating /etc/fstab requires root permission.\n\nScreenshot\n----\n### Downloading the package:\n![pypi-swapsys.png](https://raw.githubusercontent.com/rbashish/swapsys/main/image/pip-install-swapsys.png)\n\n### Run the utility \n![pypi-swapsys.png](https://raw.githubusercontent.com/rbashish/swapsys/main/image/swapsys-logo.png)\n\nFeedback/Issue\n----\nHave a feedback, feature request, known bug, please report it at this [issue page](https://github.com/rbashish/swapsys/issues)\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A Python package to add and manage swap space to a Linux system",
"version": "1.0.1",
"project_urls": {
"Changelog": "https://github.com/rbashish/swapsys/blob/main/CHANGELOG.md",
"Dev Site": "https://rbashish.tech",
"Homepage": "https://github.com/rbashish/swapsys",
"Issue Tracker": "https://github.com/rbashish/swapsys/issues"
},
"split_keywords": [
"swap",
" add swap",
" swap space",
" linux swap",
" swap memory"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "1457528aed94db27a4e2178226e20434a74a68e9d73a4868b5252caa12d2eb38",
"md5": "962062375f6204e74e6361b7e886dddb",
"sha256": "e8ccbf9ed0879a9e1cb12181b5749a2c27767bd2ab700b6ed411badfcc10f112"
},
"downloads": -1,
"filename": "swapsys-1.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "962062375f6204e74e6361b7e886dddb",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 4462,
"upload_time": "2024-10-20T18:51:18",
"upload_time_iso_8601": "2024-10-20T18:51:18.928033Z",
"url": "https://files.pythonhosted.org/packages/14/57/528aed94db27a4e2178226e20434a74a68e9d73a4868b5252caa12d2eb38/swapsys-1.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "8be03731b9fcf9dd0285543df63c06981d44cebc1f57acdfeeaf1ae9330fbe22",
"md5": "3036ee8ae9c4e5cb1bffa2291c4ac173",
"sha256": "ad0a4ade0e1ed3bb879e6ffa1c28d7e81d8ec8975e61efa7ac7b729185e518fd"
},
"downloads": -1,
"filename": "swapsys-1.0.1.tar.gz",
"has_sig": false,
"md5_digest": "3036ee8ae9c4e5cb1bffa2291c4ac173",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 16666502,
"upload_time": "2024-10-20T18:51:20",
"upload_time_iso_8601": "2024-10-20T18:51:20.938006Z",
"url": "https://files.pythonhosted.org/packages/8b/e0/3731b9fcf9dd0285543df63c06981d44cebc1f57acdfeeaf1ae9330fbe22/swapsys-1.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-20 18:51:20",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "rbashish",
"github_project": "swapsys",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "swapsys"
}