Shipped Python Modules
In addition to the API provided by the gd object, GeoDict also includes some Python packages (inside the gd folder), which are useful for reading/writing GeoDict file format and some other APIs, as for example the stringmap module (stringmap.py) which can be used to parse GeoDict key/value text file formats such as GDR files and the gdr module to create custom GeoDict result files.
The following table shows the most important Python libraries, that are shipped with GeoDict. To use them in a macro, import the respective module in the first lines of the macro, as shown above with the module stringmap.
Library |
Description |
|---|---|
Matplotlib |
Graph plotting and data visualization library. |
NumPy |
Fast numerical calculations. The GeoPy API uses NumPy data types for accessing structures and volume fields. |
Pillow |
Library to read, write, and manipulate images. |
XlsxWriter |
Create Excel files from GeoPy. |
python-pptx |
Library to create PowerPoint slides. Note: GeoDict provides a simplified wrapper API in the gd_ppt namespace. |
SciPy |
Library for scientific & numerical computation (integration, interpolation, optimization, linear algebra, statistics). |
lxml |
XML & HTML processing library. |
psutil |
Library for accessing information about the operating system and currently running processes. |
The complete list of all Python packages shipped with GeoDict can be found by selecting Help → Acknowledgments from the menu bar and unfolding Python Libraries (Open Source) in the opening dialog.
If a module is needed which is not shipped with GeoDict, it can be installed.