Run multiple modules with the same interpreter
Project description
mand
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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mand-0.9.8-py3-none-any.whl.
File metadata
- Download URL: mand-0.9.8-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef9c814de87cdbb11f33f2ac1d1d7c5f752cbb1b78261025ec3d20aa5248f583
|
|
| MD5 |
0869cf6e1ec0da448cd947f3c09d018f
|
|
| BLAKE2b-256 |
0d27f2b36a975173ee3a7c5ad0bf53c15acac8d7da9b1669db70a03135eee855
|