### Get all functions in the project Source: https://docs.scitools.com/manuals/python/api/understand.Db.html Example demonstrating how to retrieve a list of all functions within the project using the understand library. ```python import understand # Example usage (assuming 'db' is an initialized understand.Database object) db = understand.Database() functions = db.ents("function") for func in functions: print(f"Function: {func.name()} (ID: {func.id()})") ``` -------------------------------- ### Simple Table Example Source: https://docs.scitools.com/manuals/python/api/understand.ReportContext.html Example of creating a simple table with two columns. ```python report.table(["Column Name 1","Column Name 2"]) ``` -------------------------------- ### Graph.options() Method Source: https://docs.scitools.com/manuals/python/api/understand.Graph.html Example of how to use the options() method to get the available options for a specific graph and target. ```python options(_target_) → understand.Options Return options available for the given graph and target. Parameters: **target** (_understand.Db_ _,__understand.Ent_ _, or_ _understand.Arch_) – database, entity, or architecture the graph applies to Return type: understand.Options ``` -------------------------------- ### Example of setting options using a string Source: https://docs.scitools.com/manuals/python/api/understand.Options.html Demonstrates the format for setting multiple options using a semicolon-separated string. ```text Layout=Crossing; name=Fullname;Level=AllLevels Comments=On;Show Entity Name=On ``` -------------------------------- ### understand.open Source: https://docs.scitools.com/manuals/python/api/understand.html Open a database from the passed in filename. ```python understand.open(_dbname_) Open a database from the passed in filename. Parameters: **dbname** (_str_) – the filename of the database Return type: understand.Db Returns: An opened database Raises: **Understand.Error** – if unable to open the database Possible causes for error are: * DBAlreadyOpen - only one database may be open at once * DBCorrupt - bad database file * DBOldVersion - database needs to be rebuilt * DBUnknownVersion - database needs to be rebuilt * DBUnableOpen - database is unreadable or does not exist * NoApiLicense - Understand license required ``` -------------------------------- ### Filtered Table Example Source: https://docs.scitools.com/manuals/python/api/understand.ReportContext.html Example of creating an interactive table with filtering and sorting options. ```python [{ "name" : "Column 1", "filtertype": "string" },{ "name" : "Column 2", "filtertype": "numeric", "filteroperation": ">", "filtervalue": 10, "sort": "ascending" },{ "name" : "Column 3", "filtertype" : ["Yes", "No"] }] ``` -------------------------------- ### Open Database Example Source: https://docs.scitools.com/manuals/python/api/understand.Db.html Opens a SciTools Understand database and iterates through functions. ```Python db = understand.open("test.und") for func in db.ents("Function"): # print qualified name (ex: Namespace::ClassName::methodName) print(func.longname()) ```