Skip to main content

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.

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


Download files

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

Source Distribution

multiscript_windows-1.0.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

multiscript_windows-1.0.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file multiscript_windows-1.0.0.tar.gz.

File metadata

  • Download URL: multiscript_windows-1.0.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for multiscript_windows-1.0.0.tar.gz
Algorithm Hash digest
SHA256 3e56471405994acce3231ee0eead02f35ed47a4c1f5dbe1d4442a3c7e0a7f9ce
MD5 d921b7c6e98b58a4014e19ee56c1c4bf
BLAKE2b-256 1566b79404ff008017ca49c3c905a4a2b5eb9b4fa51991c1a7e2a5cc93cda997

See more details on using hashes here.

File details

Details for the file multiscript_windows-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for multiscript_windows-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0124c32c6a31a45a33319f2bbcb4f96a0564f4f32f2fb21f75d19ff47a6518b8
MD5 ea98aae1da2d5f7c58289c4020177214
BLAKE2b-256 8597f4e3f43afa8a6014918a2aa8c11f85e71faee97306494a22ff0b57916f41

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page