Combine pythonscript to homeassistant

hello ,
i have hassio os
and pycharm on my laptop with some python scripts
one python program is via CLI that can create qr codes.

which path i have to take , that i can use the hassio server , and can acces and execute the pythoncode in www-folder

do i have to use hacs - pyscript ?
of do i need to use codeserver with addons ??

thank for pointing me in the good directions

import qrcode
import sys

# Check if a URL is provided as a command-line argument
if len(sys.argv) < 2:
    print("Please provide a URL as an argument.")
    sys.exit(1)

# Get the URL from the command-line argument
input_data = sys.argv[1]

# Creating an instance of qrcode
qr = qrcode.QRCode(
    version=1,
    box_size=10,
    border=5
)

qr.add_data(input_data)
qr.make(fit=True)

img = qr.make_image(fill='black', back_color='white')
img.save('qrcode.png')

print(f"QR code for {input_data} has been saved as qrcode.png")