Skip to main content

POSIX User's Namespace Control

Project description

punsctl - POSIX User's Namespace Control

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

codecov License: ISC

The punsctl utility allows users to manage multiple namespaces (or profiles) for various tool configurations within a single POSIX user account. This enables users to maintain separate configurations for tools like ~/.ssh, ~/.gitconfig, ~/.gnupg, ~/.config, ~/.config/nvim, and others, all under the same user account. With punsctl, users can easily create, delete, activate, or deactivate namespaces without requiring additional system permissions, providing a flexible way to manage different environments or workflows.

Installation

pipx 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
    -x <namespace>      Delete namespace
    -a <namespace>      Activate namespace
    -d                  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 -x <namespace>

Delete namespace in non-default root path

punsctl -p <root_path> -x <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 -d

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.2.5.tar.gz (33.7 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.2.5-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: punsctl-0.2.5.tar.gz
  • Upload date:
  • Size: 33.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.7

File hashes

Hashes for punsctl-0.2.5.tar.gz
Algorithm Hash digest
SHA256 d619ac0b8751d3703380f7dce70c4a05a638f72d7e0244502f3cc6476b77623c
MD5 4213f1d7805089e994d35cbdee6bbccf
BLAKE2b-256 279b18807bd4208ab01e8721609ffe6fbd0a3023ffd4cc9824a0a5584aef7c46

See more details on using hashes here.

File details

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

File metadata

  • Download URL: punsctl-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 12.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.7

File hashes

Hashes for punsctl-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 8e14c16630d9e3efdbfd5711a9477482aa37543dd5fdf5d548374bb458e3dab5
MD5 280e4054be9c6f33430689970bfa7c4a
BLAKE2b-256 8e08b596b4209518abb42804d813d21ab268fadaea6437dfad447ae0f860a524

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