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.2.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.2-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: punsctl-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 026522a1d5872dd427ef6bff6c2693ac2197e5e9521bf33e86951f787e90e8a2
MD5 d6bac10e9c6e42890f98da95f5ad00be
BLAKE2b-256 c32a7e460a48b78805ee3c53386baf46a97edba81723c146a9955c9550cb85f2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: punsctl-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 10.2 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9415f3d74d578a62083e17047d36598231a6222d5f3317853cb9939422a9f9c9
MD5 0217bd937f97cceb1ff8917903401464
BLAKE2b-256 090c6df8f384fefe4261ed3ba3b9c63b7d6a3ce2e48e73a0470622d213820d5e

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