A lightweight wrapper to run Batch and VBScript within Python.
Project description
multiscript-windows
Multiscript is a small, open-source Python module made for executing code in other languages within Python.
Installation
Install multiscript with this command: pip install multiscript-windows.
Use
Multiscript is amazing for simplifying operations that python fails to expose easily, but how does it work?
The way you import multiscript into your project is through this line: import multiscript.
Now, you have three functions exposed to you.
Those three functions are batchscript, vbscript and commandlist.
The function commandlist gives you a list of commands that you can use in multiscript.
This includes the batchscript and vbscript commands and how to use them.
Run this command for more information.
The batchscript command executes batch in a string.
Example:
import multiscript
batchscript(
r"""
move test.txt .\destination
del deleteme.png
echo Test Complete!
"""
)
print("And we're still in python!")
The vbscript command executes visual basic in a string.
Example:
import multiscript
vbscript(
r"""
MsgBox "Hi, there!", 64 + vbOkOnly, "Hi!"
MsgBox "Goodbye!", 64 + vbOkOnly, "Bye!"
"""
)
print("And we can still use more python!")
Licensing
Licensed under the GNU General Public License v3 (GPLv3).
For more information, read the LICENSE file in the project directory.
Versions
All of the versions of multiscript.
1.0.1
Fixed a bug where enabling showreturncode for the vbscript function would cause a TypeError.
1.0.2
Fixed a bug where running two of the same script at the same time would overwrite temp file A with temp file B.
Some Extra
Hey, thanks for reading all the way to the end!
This README took a long time to make.
I just wanted to give you a fun thing to try in Python.
Try this command in the Python REPL (or a script). import this
This gives you "The Zen of Python", a fun guide to some additional things about Python!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 multiscript_windows-1.0.2.tar.gz.
File metadata
- Download URL: multiscript_windows-1.0.2.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5516299e0924b8b08371a5a071381f633970cdeac4948311e69e5c8e16cff74c
|
|
| MD5 |
d8b2755032966ffe8081c00f703829cf
|
|
| BLAKE2b-256 |
6ccd28bf922555fb3a0ddadf56906e25fdfcfd6f70d5c7e56b11e61d941d6f42
|
File details
Details for the file multiscript_windows-1.0.2-py3-none-any.whl.
File metadata
- Download URL: multiscript_windows-1.0.2-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a534c4123f6607b75a9f05606ba9a902d3df7af6a3cfc7b4dc5032c8e1918446
|
|
| MD5 |
31223523be63a17155099c1b8f6995a2
|
|
| BLAKE2b-256 |
656c5120854193c1016f872c769401e8ba10a9080899e4cbb08325717674b30d
|