Skip to main content

Run multiple modules with the same interpreter

Project description

# mand

![PyPI - Python Version](https://img.shields.io/pypi/pyversions/mand.svg) ![PyPI](https://img.shields.io/pypi/v/mand.svg) [![Build Status](https://travis-ci.org/brycepg/mand.svg?branch=master)](https://travis-ci.org/brycepg/mand) [![GitHub license](https://img.shields.io/github/license/brycepg/mand.svg)](https://github.com/brycepg/mand/blob/master/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

`python from mand import mand mand(['a foo', 'b foo']) # Equivalent usage mand([('a', 'foo bar'), ('b', 'foo')]) ` 0.9.6 (4/13/2018):

  • Allow modules with capitalization (such as cProfile)

0.9 (4/12/2018):

  • initial release

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

mand-0.9.6-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file mand-0.9.6-py3-none-any.whl.

File metadata

File hashes

Hashes for mand-0.9.6-py3-none-any.whl
Algorithm Hash digest
SHA256 55217a098eb0be0243713ffde5f7da51c635a2f56913c7ff5f5667d92d1b8369
MD5 de5c8363d72e3513a47f4675b0ff56c6
BLAKE2b-256 c4a9ef79183071fd6ee0f36e475de22228a0160ca4cd6256c0abe9b17a5a0895

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page