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.2.tar.gz (8.8 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.2-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for punsctl-0.2.2.tar.gz
Algorithm Hash digest
SHA256 d454a063415047668813bdd5d754c89ab3f0527c9402dd95e9ed1d63de436dc1
MD5 ab81197962a7bea88f79d75c3f1f6d39
BLAKE2b-256 8c62bb28430961b2f58c2afd7941249cad1f776ad7ab15ece990396352ec7910

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for punsctl-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b3f3a31de06d80a3827074b2aa73283085cc8388c32c82ce792b7ffe33325071
MD5 c0e56eb07f6210da0ecb067707f24ac2
BLAKE2b-256 9e837600b6b19ae78e6b438d553d735e58f622b50608698b7ba615e4a72256fe

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