Skip to main content

POSIX User's Namespace Control

Project description

The project is currently under development and is not ready for use in production.

punsctl - POSIX User's Namespace Control

PyPI Version PyPI - Python Version PyPI - Implementation PyPI - Wheel

codecov License: ISC

The punsctl utility manages multiple namespaces (user environments) for the current POSIX user. That means the user can have multiple "profiles" for the same or different tool configurations in the same user account (~/.ssh, ~/.gitconfig, ~/.gnupg, ~/.config, ~/.config/nvim, ...). The user can create, delete, activate and deactivate namespaces without additional permissions.

Installation

pip install punsctl

Usage

punsctl <options>

options:
    -h                  Help menu
    -r                  Root path                 (Default: ~/.ns)
    -s                  Symlink path              (Default: ~/)
    -l                  List namespaces
    -n <namespace>      Create namespace
    -d <namespace>      Delete namespace
    -a <namespace>      Activate namespace
    -x                  Deactivate namespaces

List all namespaces

punsctl -l

List all namespaces from the non-default root path

punsctl -p <root_path> -l

Create new namespace

punsctl -n <namespace>

Create a new namespace in the non-default root path

punsctl -p <root_path> -n <namespace>

Delete namespace

punsctl -d <namespace>

Delete namespace in non-default root path

punsctl -p <root_path> -d <namespace>

Activate namespace

punsctl -a <namespace>

Activate the namespace from the non-default root path

punsctl -p <root_path> -a <namespace>

Activate the namespace from the non-default root path and change the symlink path

punsctl -p <root_path> -s <symlink_path> -a <namespace>

Deactivate namespaces

punsctl -x

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

punsctl-0.1.4.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

punsctl-0.1.4-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file punsctl-0.1.4.tar.gz.

File metadata

  • Download URL: punsctl-0.1.4.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.8.14 Linux/5.15.0-1022-azure

File hashes

Hashes for punsctl-0.1.4.tar.gz
Algorithm Hash digest
SHA256 af507eb8d78945248382c3a6e881b6565d2c761978e219566bd309f1c48e9f4b
MD5 42e68d3d9828d570d5397cbee1d04686
BLAKE2b-256 6f35f1679d70f9fb8671266b11f771593e0ea54b0b810dc93acf793ec2f1e016

See more details on using hashes here.

File details

Details for the file punsctl-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: punsctl-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.8.14 Linux/5.15.0-1022-azure

File hashes

Hashes for punsctl-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 02b868fc91e604b5f7b745e519304262caf79fc67e894ef44ca7cdcbcc7abe4a
MD5 34f06133e0b11d61ed75e43b87d8b8fe
BLAKE2b-256 4f4b4450366ef478bc2893118670a90fc144f61687f13a2e502f5522a5947e80

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page