Skip to main content
Help us improve Python packaging – donate today!

Run multiple modules with the same interpreter

Project Description

mand

PyPI - Python Version PyPI Build Status GitHub license

python -m doesn't run multiple modules. This package to provides a way to easily run multiple modules with the same interpreter.

Running multiple modules on the same interpreter is great when you want side-effects such as adding hooks to existing libraries without changing them.

Installation

pip install mand

Command-line usage

Call multiple modules:

mand a b

Where a and b are modules, a will be executed, then b

Usage with arguments:

mand "a foo" "b bar"

such that foo is an argument to module a and bar is an argument to module b.


You can also specify module paths or python files:

mand path/to/my/file.py pdb

You can also run mand via the -m flag:

python -m mand "a foo" "b bar"

API usage

from mand import mand
mand(['a foo', 'b foo'])
# Equivalent usage
mand([('a', 'foo bar'), ('b', 'foo')])

Changelog

0.9.6 (4/13/2018):

  • Allow modules with capitalization (such as cProfile)

0.9 (4/12/2018):

  • initial release

Release history Release notifications

This version
History Node

0.9.8

History Node

0.9.7

History Node

0.9.6

History Node

0.9.4

History Node

0.9.3

History Node

0.9.2

History Node

0.9

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
mand-0.9.8-py3-none-any.whl (4.7 kB) Copy SHA256 hash SHA256 Wheel py3 Apr 14, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page