|
TTY OV
1
A cross platform python terminal
|
This project now has automated documentation that gets generated, this manually written one will remain for legacy reasons, but you can now take a look at the automatic documentation here: https://hanra-s-work.github.io/polyguard/
Under Windows:
Under Linux/Mac OS:
You can run polyguard directly as a script to start an interactive terminal session:
This will launch the interactive PolyGuard interface where you can execute commands.
To initialize PolyGuard, you need to create a language configuration and pass it to the constructor:
Once initialized, you can use the following methods:
Note: The database initialization happens automatically on the first call to any lookup function, so you don't need to call main() manually.
All lookup functions accept an optional languages_to_check parameter, allowing you to override the default language configuration on a case-by-case basis:
This is useful when you need to:
If languages_to_check/languages is not provided, the instance's default configuration (set during initialization) is used.
Comprehensive Doxygen-generated documentation is available online at https://hanra-s-work.github.io/polyguard/. This includes detailed API references, class documentation, and usage examples.
To generate the documentation locally, navigate to the doxygen_generation directory and run the provided scripts.
This module was written by (c) Henry Letellier Attributions are appreciated.