Skip to main content
All CollectionsGetting Started with MeshInspector
How to start using Python in MeshInspector
How to start using Python in MeshInspector

Integrate via API or command line interface

Updated over 7 months ago

You can use Python in MeshInspector by following these steps:

Step 1: Prepare a text (.txt) or JSON (.json) file containing your MeshInspector credentials.

For example:

{
"email": "support@meshinspector.com",
"password": "Password1!"
}

Save this file with an appropriate name and location on your system.

Step 2: Launch Python with the following command

"path_to_meshinspector\MeshInspector.exe" -creds "path_to_credentials_file" -hidden -console "path_to_python_script"

Replace path_to_meshinspector with the file path to your MeshInspector installation directory, path_to_credentials_file with the file path to your credentials file (C:\Users\Username\creds.txt), and path_to_python_script with the file path to your Python script that you want to execute in MeshInspector (e.g., C:\Users\Username\test_script.py). In the example above, the Windows OS path was used. However, you can replace it with the MacOS path or Linux.

Example Command:

"C:\Program Files\MeshInspector\MeshInspector\MeshInspector.exe" -creds "C:\Users\Username\creds.txt" -hidden -console "C:\Users\Username\test_script.py"

Note:

  • The -hidden flag is used to run MeshInspector in hidden mode (without a visible user interface).

  • (On Windows) The -console flag is used to enable console output for Python scripts executed in MeshInspector.

Is the Python feature available in my plan?

Python feature is available only in the MeshInspector Professional plan.

What if I encounter any issues or errors while using Python in MeshInspector?

A: If you encounter any issues or errors, please make sure to double-check the following:

  • Ensure that you have provided the correct file paths for MeshInspector, the credentials file, and the Python script.

  • Verify that your credentials file is properly formatted as either a text or JSON file.

  • Check for any syntax errors or issues in your Python script.

  • Make sure that MeshInspector is installed correctly on your system and that it is compatible with the version of Python you are using.

  • If the issue persists, you can contact MeshInspector support at support@meshinspector.com for further assistance.

Did this answer your question?