Page 1 of 1
[RESOLVED] Information about WAPT.xxx
Published: February 21, 2023 - 2:12 PM
by t.heroult
Hello,
where can I find an index of WAPT.xxx functions for Python code?
Regards,
Tom
Re: Information about WAPT.xxx
Published: February 21, 2023 - 6:44 PM
by htouvet
There is no "official" documentation because these are internal functions of the wapt agent.
However, WAPT is an instance of the Python class "Wapt" which you can find in the "common.py" module in the C:\Program Files (x86)\wapt directory
Search for "class Wapt(BaseObjectClass):"
Some functions are documented in the code.
To test "live" in a PyScripter Python shell:
On a test machine, install and launch PyScripter (the version provided for package development)
In the Python shell at the bottom, type:
Code: Select all
from common import *
WAPT = Wapt()
Then you can test the commands.
For example :
Code: Select all
WAPT.installed()
WAPT.update()
WAPT.update_server_status()
WAPT.install('unpaquet')
WAPT.remove('unpaquet')
WAPT.audit('unpaquet')
WAPT.forget_packages(['unpaquet','unautrepaquet'])
...
Re: [RESOLVED] Information about WAPT.xxx
Published: March 2, 2023 - 2:19 PM
by t.heroult
Thanks for the info
