Skip to main content

.. image:: https://badge.fury.io/py/run.py.svg
:target: https://pypi.org/project/runner.py/

.. image:: https://travis-ci.org/mariocesar/run.py.svg?branch=master
:target: https://travis-ci.org/mariocesar/run.py

Install and Use
---------------

Install with pip.

.. code-block:: console

pip install runner.py

A simple example on how to use it.

.. code-block:: python

import asyncio

from runnerpy.runner import Runner

if __name__ == '__main__':
loop = asyncio.get_event_loop()

runner = Runner(loop)
runner.run('python manage.py runserver')
runner.run('celery -A project worker -l INFO')

runner.start()

Now a Django app will run along the celery worker. Hit ctrl+c to stop both.

Some examples: Creating a backup

.. code-block:: python
import asyncio

from runnerpy.runner import Runner

if __name__ == '__main__':
loop = asyncio.get_event_loop()

runner = Runner(loop)
runner.run('cp -ar dist/static public/static')
runner.run('pg_dump --all')

runner.start()

Some examples: Creating a backup

.. code-block:: python
import asyncio

from runnerpy.runner import Runner

if __name__ == '__main__':
loop = asyncio.get_event_loop()

runner = Runner(loop)
runner.run('tail -f /var/log/syslog)
runner.run('ls -al /home')

runner.start()

Metadata

Release files for runner.py 0.5

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

Source distribution (sdist)

Source distribution for runner.py 0.5
File Size Uploaded Provenance Actions
runner.py-0.5.tar.gz 4.0 kB Without provenance Details for runner.py-0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for runner.py 0.5
File Interpreter ABI Platform Actions
runner.py-0.5-py2.py3-none-any.whl Python 3, Python 2 none any Details for runner.py-0.5-py2.py3-none-any.whl

Total release size: 9.1 kB

Release files / runner.py-0.5.tar.gz

Download URL runner.py-0.5.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f0ee0376a56da7ad58c00a15cfc3f0bbf5ffc85d82ec5de73afdc22f73469973
BLAKE2b-256 checksum
How to use checksums
5b5c0383c15de2b52214a141fa5642fe601de2a31540037c29edda7126e51bcf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / runner.py-0.5-py2.py3-none-any.whl

Download URL runner.py-0.5-py2.py3-none-any.whl
Size 5.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
7b6b4e6db971a32872df099ef0ab80d1c00a34184278f56356043373d4ace227
BLAKE2b-256 checksum
How to use checksums
50c5288ee8c4516a680c6c61db834e309d90df16371a2aab1440b71fc9aa3f52
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for runner.py 0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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