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.4.tar.gz (34.4 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.4-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for punsctl-0.2.4.tar.gz
Algorithm Hash digest
SHA256 f41787cd8ea79d2613def6207dab760cc49d3fe25cab9b3ffe06c3d82311286d
MD5 fd7a94751270df4ca7c82a9cd4ebdf4b
BLAKE2b-256 8abb35b71386654a898dd6704c67a7b679f30d2ccd1c952a2f388964e51cf203

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for punsctl-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 88c6020e7cfd25edb8f229834601f806733ea385513354c5ad7fa3b84b1f3276
MD5 558a613e585a79702789908bf0453e17
BLAKE2b-256 a854abbc2a3f2f571b9e21e290ee1463d6df07d22a6e6fad902cdda47365ec08

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