Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/baskiton/pysetns
Python wrapper for setns Linux syscall
https://github.com/baskiton/pysetns
linux linux-app linux-kernel namespace python python3 setns syscall
Last synced: about 2 months ago
JSON representation
Python wrapper for setns Linux syscall
- Host: GitHub
- URL: https://github.com/baskiton/pysetns
- Owner: baskiton
- License: mit
- Created: 2021-09-25T17:24:10.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-20T18:07:34.000Z (over 1 year ago)
- Last Synced: 2024-10-13T08:22:47.162Z (3 months ago)
- Topics: linux, linux-app, linux-kernel, namespace, python, python3, setns, syscall
- Language: Python
- Homepage: https://pysetns.readthedocs.io
- Size: 35.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pysetns
[![pypi](https://img.shields.io/pypi/v/pysetns?logo=python&logoColor=white)](https://pypi.org/project/pysetns/)
[![downloads](https://img.shields.io/pypi/dm/pysetns?logo=python&logoColor=white)](https://pypi.org/project/pysetns/)
[![license](https://img.shields.io/pypi/l/pysetns?logo=open-source-initiative&logoColor=white)](https://github.com/baskiton/pysetns/blob/main/LICENSE)[![build](https://img.shields.io/github/actions/workflow/status/baskiton/pysetns/build.yml?logo=github)](https://github.com/baskiton/pysetns/actions/workflows/build.yml)
[![upload](https://img.shields.io/github/actions/workflow/status/baskiton/pysetns/pypi-upload.yml?label=upload&logo=github)](https://github.com/baskiton/pysetns/actions/workflows/pypi-upload.yml)
[![docs](https://img.shields.io/readthedocs/pysetns?logo=readthedocs&logoColor=white)][documentation]`pysetns` - is a Python wrapper for the Linux `setns` system call. \
See the [manpage][man_setns] for an introduction to `setns` and namespaces.To detail see the [documentation][documentation]
### IMPORTANT!
`setns` required execution from **ROOT**!## Requirements
* Linux 3.0+
* Python 3## Installing
### Using PIP
```sh
$ pip install pysetns
```### From sources
```sh
$ git clone https://github.com/baskiton/pysetns.git
$ cd pysetns
$ python setup.py install
```## Usage
See [examples][examples][man_setns]: https://man7.org/linux/man-pages/man2/setns.2.html
[examples]: https://github.com/baskiton/pysetns/blob/main/examples
[documentation]: https://pysetns.readthedocs.io