glyphs-python-api
/glyphs-python-api
Queries Glyphs Python Scripting API reference (35 classes, 16 functions, 133 constants) parsed from Sphinx RST documentation. Use when looking up GSFont/GSLayer/GSGlyph Python API properties, searching for scripting methods, reading class documentation, or finding code examples for Glyphs Python scripting.
- Author
- yintzuyuan ↗
- Repository
- glyphs-reference ↗
- Licence
- MIT
- Last repository change
- 22.06.2026
Assessment and security
- Files in this package
- 11
- Scripts
- 9
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 22.06.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 9 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: scripts/_parse_rst.py, scripts/_sdk_utils.py, scripts/read_class.py, scripts/search_api.py, tests/conftest.py, tests/test_parse_rst.py, tests/test_read_class.py, tests/test_sdk_utils.py, tests/test_search_api.py
What it does and when to use it
Queries Glyphs Python Scripting API reference (35 classes, 16 functions, 133 constants) parsed from Sphinx RST documentation. Use when looking up GSFont/GSLayer/GSGlyph Python API properties, searching for scripting methods, reading class documentation, or finding code examples for Glyphs Python scripting.
Original author description
Queries Glyphs Python Scripting API reference (35 classes, 16 functions, 133 constants) parsed from Sphinx RST documentation. Use when looking up GSFont/GSLayer/GSGlyph Python API properties, searching for scripting methods, reading class documentation, or finding code examples for Glyphs Python scripting.
How it works
- Scripts
- Usage
- Workflow Example
- Data Sources
- Third-party Plugin APIs
- Additional Resources
- Requirements
SKILL.md preview
--- name: glyphs-python-api description: "Queries Glyphs Python Scripting API reference (35 classes, 16 functions, 133 constants) parsed from Sphinx RST documentation. Use when looking up GSFont/GSLayer/GSGlyph Python API properties, searching for scripting methods, reading class documentation, or finding code examples for Glyphs Python scripting." --- # Glyphs Python API Reference Python Scripting API reference extracted from GlyphsSDK Sphinx documentation. Covers all 35 wrapper classes, standalone helper functions, and constants with their actual values. ## Scripts > Run all scripts from this skill's base directory. Prepend the base directory path to `scripts/` when executing. | Script | Purpose | Output | |--------|---------|--------| | `search_api.py` | Search/list classes, members, constants, functions | Classes with counts, or search results | | `read_class.py` | Read class/member/function details | Full properties, methods, types, examples | ## Usage ### Browse Classes ```bash # List all 35 classes with property/method counts python scripts/search_api.py # Search across classes, properties, methods, constants python scripts/search_api.py --search "layer" # List all constants with values python scripts/search_api.py --constants # List standalone functions python scripts/search_api.py --functions ``` ### Read Details ```bash # Full class details (properties + methods + descriptions) python scripts/read_class.py GSFont # Specific member (type, description, examples) python scripts/read_class.py GSFont --member masters # Summary (property/method names only) python scripts/read_class.py GSFont --summary # Cross-reference relationships python scripts/read_class.py GSFont --relationships # Standalone function details python scripts/read_class.py --function divideCurve ``` ## Workflow Example ``` User: "How do I access font masters in Python?" 1. Search for relevant classes: $ python scripts/search_api.py --search "master" → GSFontMaster class + related properties 2. Read the class overview: $ python scripts/read_class.py GSFontMaster --summary → All property/method names 3. Get specific member details: $ python scripts/read_class.py GSFontMaster --member customParameters → Description, type, code examples 4. Check relationships: $ python scripts/read_class.py GSFontMaster --relationships → Referenced by GSFont, GSLayer, etc. ``` ## Data Sources | Source | Content | |--------|---------| | Sphinx `index.rst` | Class descriptions, property types, method params, examples, cross-references | | `__init__.py` | Constant actual values (e.g., `LINE = "line"`, `STEM = 0`) | ## Third-party Plugin APIs - **Light Table** (Git version control): See the `glyphs-light-table` skill for `lt_*` extensions on GSFont/GSGlyph/GSLayer ## Additional Resources - **`references/class-index.md`** — Index of all 35 classes grouped by domain (Application / Font / Glyph / Layer-geometry / View / FontInfo / Utility), 16 standalone functions by category, and 133 constants in 12 named groups. Read this first to navigate quickly before running the search scripts. ## Requirements - Python 3.10+ (standard library only) - GlyphsSDK submodule cloned - `GLYPHS_SDK_PATH` environment variable pointing to GlyphsSDK directory
Files in this package (11)
- SKILL.md 3 KB
- references/class-index.md 6 KB
- scripts/_parse_rst.py 17 KB
- scripts/_sdk_utils.py 2 KB
- scripts/read_class.py 5 KB
- scripts/search_api.py 4 KB
- tests/conftest.py 2 KB
- tests/test_parse_rst.py 10 KB
- tests/test_read_class.py 5 KB
- tests/test_sdk_utils.py 4 KB
- tests/test_search_api.py 5 KB
Versions
The database has no other skills named glyphs-python-api.
Database snapshot: 13.11.2026 · package version 91b95dbd4f31 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100glyphs-objc-headers
Searches GlyphsCore Objective-C header files (174 headers) for class APIs, protocol methods, properties, enums, and constants. Use when looking up GSFont/GSLayer/GSGlyph properties, finding GlyphsReporter or GlyphsFilter protocol methods, or searching Obj-C type definitions for plugin development. - 100glyphs-remote-scripts
Controls Glyphs.app from external Python processes via NSConnection (Distributed Objects). Use when connecting to Glyphs from Terminal, executing macros remotely via RunScript, or creating GSFont/GSGlyph objects from an external script. - 100glyphs-mcp-development
Use this skill to create, extend, or review reusable workspace-first Glyphs Python scripts and Python plug-ins, including general, reporter, filter, palette, select-tool, and file-format plug-ins, while grounding API and template choices in the bundled Glyphs documentation. - 90glyphs-mcp-scripting
Use this skill to vibe-code, preview, run, or debug focused Python scripts inside the live Glyphs app through Glyphs MCP, including Macro Panel snippets and experiments that may later become reusable scripts or plug-ins. Ground unfamiliar GlyphsApp APIs in the bundled… - 100unreal-python-scripting
Gives Unreal Engine 5.8 Python API patterns - Blueprint spawning, material instances, component properties, workarounds for API limits. Use when scripting Unreal in Python, writing Unreal Python tools, or hitting an Unreal Python API limitation. - 95documenting-python-libraries
Creates comprehensive Python library documentation including Google-style docstrings, Sphinx setup, API references, tutorials, and ReadTheDocs configuration. Use when writing docstrings, setting up Sphinx documentation, or creating user guides for Python libraries.