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: 17 days 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 (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-04-20T18:07:34.000Z (about 2 years ago)
- Last Synced: 2025-06-16T23:03:47.319Z (29 days 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
[](https://pypi.org/project/pysetns/)
[](https://pypi.org/project/pysetns/)
[](https://github.com/baskiton/pysetns/blob/main/LICENSE)[](https://github.com/baskiton/pysetns/actions/workflows/build.yml)
[](https://github.com/baskiton/pysetns/actions/workflows/pypi-upload.yml)
[][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