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

codecov License: ISC

PyPI - Python Version PyPI - Implementation PyPI - Wheel

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.1.tar.gz (6.0 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.1-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: punsctl-0.1.1.tar.gz
  • Upload date:
  • Size: 6.0 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.1.tar.gz
Algorithm Hash digest
SHA256 575f956d3422d706c293761ad7ad59a48e3eecb4086159716c1067bffc95a8d5
MD5 c3340a2d7e81cabfacfbccf692493563
BLAKE2b-256 cdc1425712fdf45b22eb50c44279603556b48cc94c4999a476a5d7e6a515c325

See more details on using hashes here.

File details

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

File metadata

  • Download URL: punsctl-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.1 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ec8e571f1b375aa892d68aa40303bad383fd9f760c8a4a849d2edec66761d4ab
MD5 d48583667b547601332dc49e3725afec
BLAKE2b-256 6dfbbf078d1d5c9df471d97a9cde663e1dfb083839926067a051e9d38ee59019

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