Skip to main content

Pudo Package

This is an Python Package for running Linux commands with root permission. We can see this as an alternative to Linux sudo command without password prompt. This is very handy when you are writing python automation scripts and need to deal with root privileges. You can use this as an python module or an Linux command.

Before using the pudo, please accept the Disclaimer:

user$ sudo /usr/local/bin/pudo --accept-disclamer
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

	#1) Respect the privacy of others.
	#2) Think before you type.
	#3) With great power comes great responsibility.

PLEASE NOTE:
	Pudo Developers are not responsible for any misuse of Root Privileges

Thank You for Accepting the Disclaimer:
    It is great quality of you to respect other's privacy

Below is the code snippet for using in python automation for running commands under root privilege:

user$ python3 # or python2
>>> from pudo import pudo
>>> (ret, out) = pudo.run(('ls', '/root')) # or pudo.run('ls /root')
>>> print(ret)
0
>>> print(out)
b'Desktop\nDownloads\nPictures\nMusic\n'

Below is the cmd example for running commands under root privilege:

user$ pudo ls /root
Desktop  Downloads  Pictures  Music

Release files for pudo 1.6.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for pudo 1.6.1
File Interpreter ABI Platform
pudo-1.6.1-py3-none-any.whl Python 3 none any Details

Release files / pudo-1.6.1-py3-none-any.whl

Download URL pudo-1.6.1-py3-none-any.whl
Size 364.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
38e9e1bc83fc5009ededf9217fd8c949e0cd768c9b298a34a5cabd37793f77bc
BLAKE2b-256 checksum
How to use checksums
deed16dcc617d1f6cc5365fffe1cf60eeee6910ec44a12e838614d707011a0da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

1.6.1 This release

1 release file

1.6.0

1 release file

1.5.0

1 release file

1.4.1

1 release file

1.4.0

1 release file

1.3.2

1 release file

1.3.1

1 release file

1.3.0

1 release file

1.2.0

1 release file

1.1.0

1 release file

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page