Skip to main content

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

Metadata

Release files for mand 0.9.8

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

Built distribution (wheel)

Table of built distributions (wheels) for mand 0.9.8
File Interpreter ABI Platform
mand-0.9.8-py3-none-any.whl Python 3 none any Details

Release files / mand-0.9.8-py3-none-any.whl

Download URL mand-0.9.8-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ef9c814de87cdbb11f33f2ac1d1d7c5f752cbb1b78261025ec3d20aa5248f583
BLAKE2b-256 checksum
How to use checksums
0d27f2b36a975173ee3a7c5ad0bf53c15acac8d7da9b1669db70a03135eee855
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.9.8 This release

1 release file

0.9.7

1 release file

0.9.6

1 release file

0.9.4

1 release file

0.9.3

1 release file

0.9.2

1 release file

0.9

2 release files

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