# gi_tool **Repository Path**: mirrors_ousttrue/gi_tool ## Basic Information - **Project Name**: gi_tool - **Description**: pygobject utility - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-11-15 - **Last Updated**: 2026-04-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # gi_tool gobject-introspection tool. ## update - 202603 fix for ArchLinux ## gi_tool.girstub Python stub generator for pygobject from `gir` file. A [pygobject-stubs](https://github.com/pygobject/pygobject-stubs/tree/master/tools) alternative. ```py def insert_column(self, column: TreeViewColumn, position: int) -> int: ... ``` 👇 More rich annotation. ```py def insert_column(self, column: 'TreeViewColumn', position: int) -> int: """This inserts the @column into the @tree_view at @position. If @position is -1, then the column is inserted at the end. If @tree_view has “fixed_height” mode enabled, then @column must have its “sizing” property set to be GTK_TREE_VIEW_COLUMN_FIXED.""" ... ``` ## usage Generate a stub from a gir, Send to standard output. ``` # usage: girstub gen gir_dir module version > python gi_tool/girstub.py gen C:/gnome/share/gir-1.0 Gtk 4.0 > C:\Python311\Lib\site-packages\gi-stubs\repository\Gtk.pyi ``` Convert the gifs in folder and write each result to the output folder. ``` # usage: girstub all gir_dir site_packages > python gi_tool/girstub.py all --gtk 3 C:/gnome/share/gir-1.0 C:\Python311\Lib\site-packages ```