Skip to main content

add-swap-space

A Python package to add swap space to a Linux system

GitHub language count PyPI - Python Version PyPI - Wheel

GitHub issues PyPI - License PyPI - Downloads

Description

This package provides a command-line interface to add 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.

Download & Install

pip install add-swap-space

Note: If pip is unrecognized try pip3 instead.

Usage

sudo python3 -m add_swap_space

Note: Make sure you have pip install under root user as updating /etc/fstab requires root permission.

Screenshot

pypi-add-swap-space.png

Feedback/Issue

Have a feedback, feature request, known bug, please report it at this issue page

Metadata

Release files for add-swap-space 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for add-swap-space 1.1.0
File Size Uploaded Provenance
add_swap_space-1.1.0.tar.gz 3.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for add-swap-space 1.1.0
File Interpreter ABI Platform
add_swap_space-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.6 kB

Release files / add_swap_space-1.1.0.tar.gz

Download URL add_swap_space-1.1.0.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
586344236fcff07f9e41a5e5fbe6481806c6e0c6aedde4f2721d952b9f442474
BLAKE2b-256 checksum
How to use checksums
d96946a9d1965957ba8d41aac77898cdbf16f5113d9da3a745f3eb5234f06f1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Release files / add_swap_space-1.1.0-py3-none-any.whl

Download URL add_swap_space-1.1.0-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4a26be9e892049051426cd54736367d0af90c6d39b36fea6c21aa9b0f878c5cd
BLAKE2b-256 checksum
How to use checksums
2e9324c60b8f68c65431cdd2d51ed42eb851e7580ad02294e973bdadecef4f7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Security for add-swap-space 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page