Skip to main content

Run multiple modules with the same interpreter

Project description

# 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")]) `

Project details


Download files

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

Source Distribution

mand-0.9.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

mand-0.9-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file mand-0.9.tar.gz.

File metadata

  • Download URL: mand-0.9.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mand-0.9.tar.gz
Algorithm Hash digest
SHA256 49f3b4be2bfeef601e1258ee81b9ac47026d1271b7c8253514fd1acd8418c1af
MD5 0de08f9822376f74450e7cfb9a5418e7
BLAKE2b-256 2e44baf32dee51d1979855a0262645c644b543d6f893ec8578dbb68b11be3635

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mand-0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 c888c34bbaae23c707a4c673664dfd98fef7af405cdb67a942291fbea96e119a
MD5 08de6371ef57f1b30eeec1678370cc69
BLAKE2b-256 c66b25afe5b78f3242e25dcd84c71783c332728384a16a754a70054f98fd7216

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