How-To Guides
This section contains recipe-oriented guides demonstrating how to accomplish specific tasks with the libscid Python bindings.
Each guide assumes familiarity with the foundational concepts introduced in the Tutorials and focuses on practical problem solving.
1. Available Recipes
- Installation and Platform Support: Install the Python package and review wheel targets, system requirements, and source-build options.
- Parse and Serialise PGN: Parse PGN movetext, configure formatting options, and attach custom metadata tags.
- Navigate and Edit Move Trees: Traverse branching variation trees, append sub-lines, and attach comments or NAG glyphs using immutable cursors.
- Filter and Search Databases: Build multi-criteria queries, combine filter bitsets with boolean algebra, and paginate sorted game indices.
- Stream Movetext Events: Process hierarchical movetext event streams with structural pattern matching.
- Adjudicate Tournament Draws: Evaluate threefold repetition and fifty-move rule claims using the tournament arbiter.