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")])
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
File details
Details for the file mand-0.9.3-py3-none-any.whl
.
File metadata
- Download URL: mand-0.9.3-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7227f0930a45f4e81f5a4f0183494d9a9cbc99f75c2f0e2d66de4e07d5446c2 |
|
MD5 | 8117238bd61606f076e0ce674e236163 |
|
BLAKE2b-256 | 7ca957075d608f3274b3a8845f48ef7a50c33f74f9f6dff65da744e56f125e23 |