Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pymainprocess

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pymainprocess

Python Process Module, written in Python and Rust

  • 0.1.3
  • PyPI
  • Socket score

Maintainers
1

pymainprocess

Python Extension Module for the best System Interaction, based on Rust.

opinion

  1. Faster then Python OS and Python Subprocess Module.
  2. Great Interaction, fast Import.
  3. Runs Greate on Windows and Unix.

install

pip

.. code-block:: bash

python3 -m pip install pymainprocess

pip from git

.. code-block:: bash

python3 -m pip install git+https://github.com/pyrootcpp/pymainprocess

pip from archive

.. code-block:: bash

python3 -m pip install https://github.com/pyrootcpp/pymainprocess/archive/master.zip

for pyrootcpp APT Repo user

.. code-block:: bash

sudo apt-get install python3-pymainprocess

Import

Best Practice

.. code-block:: python

import pymainprocess as procs

Using

The Most Actions are similiar to OS and Subprocess but faster and better.

Maybe you want Safe an Output.

.. code-block:: python

import pymainprocess as proc

command = "dpkg --print-architecture" stdout = proc.call(command, stdout=True, safe_output=True) arch = stdout.strip()

This Module have an Implemented function for run commands as sudo, for example

.. code-block:: python

from pymainprocess import sudo

command = "apt-get update" user = "root" sudo(command=command, user=user)

sudo is not available on Windows Computer.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc