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

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

codecov License: ISC

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
    -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.0.tar.gz (7.3 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.0-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: punsctl-0.2.0.tar.gz
  • Upload date:
  • Size: 7.3 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.2.0.tar.gz
Algorithm Hash digest
SHA256 1b059ac119eca27ff8c1659a7760b0525f8aeea0f34332f5897c3665b111da26
MD5 d96499613a159658e22bc4e7a6350f9c
BLAKE2b-256 639fb87fcb0859e5ed1bc2889ade955d878f40510974a681310a46eb7226ea06

See more details on using hashes here.

File details

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

File metadata

  • Download URL: punsctl-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 12.7 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a6579cf633a9ea07ed890bb4c487006cb28ccb386e1f503278d0e06c42761de9
MD5 a6986fa66c096719634e4a542dc67945
BLAKE2b-256 61277f446296dc106e3a8bfdad00bd01d05787f55c86937c765700c766c149ab

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