philh_myftp_biz.modules.Module

Module Contents

Classes

Module

Allows for easy interaction with other languages in a directory

API

class philh_myftp_biz.modules.Module.Module(module: str | Path)

Bases: philh_myftp_biz.pc.Path

Allows for easy interaction with other languages in a directory

Make sure to add a file labed ‘Module.yaml’ in the directory ‘Module.yaml’ needs to be configured with the following syntax: “””

packages: []

“””

EXAMPLE: ``` m = Module(‘E:/testmodule’)

# Runs any script with a path starting with “E:/testmodule/main.###” # Handlers for the extensions are automatically interpreted m.run(‘main’)

# ‘E:/testmodule/sub/script.###’ m.run(‘sub/script’)

```

Initialization

Name() str
property Connected: bool
_run(func: philh_myftp_biz.process.SubProcess, args: tuple[str]) philh_myftp_biz.process.SubProcess
run(*args: str) philh_myftp_biz.process.SubProcess

Execute a new Process and wait for it to finish

runH(*args: str) philh_myftp_biz.process.SubProcess

Execute a new hidden Process and wait for it to finish

start(*args: str) philh_myftp_biz.process.SubProcess

Execute a new Process simultaneously with the current execution

startH(*args: str) philh_myftp_biz.process.SubProcess

Execute a new hidden Process simultaneously with the current execution

cap(*args: str)

Execute a new hidden Process and capture the output as JSON

file(*name: str) philh_myftp_biz.pc.Path

Find a file by it’s name

Returns FileNotFoundError if file does not exist

EXAMPLE:

# “run.py” m.file(‘run’)

# “web/script.js” m.file(‘web’, ‘script’) m/file(‘web/script’)

install(show: bool = True) None

Automatically install all dependencies

repo()