Local documentation

Read the documentation for the DASCore installed in your project’s Python environment:

python -m dascore doc
python -m dascore doc Patch.select
python -m dascore doc Spool.chunk
python -m dascore doc Patch.viz.waterfall
python -m dascore doc recipes/tunnel_inventory

dascore doc is the equivalent console command. Without a target it reports the DASCore version, Python executable, package location, and documentation directory. For repeated agent or notebook work, run the reported Python with -m dascore to stay in the same environment. Agent onboarding covers the dascore skills and dascore skill commands.

Targets

Use exact public names such as Inventory, PatchAttrs.tag, or dascore.proc.coords.select, and identifiers such as tutorial/patch for authored pages. Select a module page with module:, as in dascore doc module:dascore.viz.waterfall; when a module re-exports a same-named function, the plain name selects the function. Unknown or ambiguous names print an error and exit nonzero. Output is UTF-8, even when redirected to a file.

The Markdown corpus

The first request builds a directory of Markdown files from the packaged tutorials, recipes, and API docstrings. Examples are not run. The text works offline; images link to copies hosted on GitHub for the installed release tag or development commit, or the dev branch when no commit is recorded. API pages include their defining module and signatures; unbound method signatures include the instance parameter.

The API pages cover core objects, processing, transforms, visualization, built-in namespaces, and selected public utilities, but not external plugins or format-specific APIs. Building them imports the supported modules without creating data objects or running operations; missing optional modules are listed in the summary.

The corpus lives under docs/<DASCore version>/ in DASCore’s user cache, which the docs_cache_dir setting can move, and later commands reuse it. In an editable install, source changes build a new corpus in a new directory even when the version string is unchanged, so run dascore doc again for the current path. Each request deletes corpora of the same version unused for a day. To rebuild explicitly:

python -m dascore doc --rebuild

Search documentation

Point your editor or agent’s file search at the directory python -m dascore doc reports, which may be outside the project workspace. Titles, API names, body text, and keyword metadata are all searchable. For example, with ripgrep:

rg -n -i -C 2 -g '*.md' 'filter|bandpass|low.?pass' "/absolute/documentation/path"
rg -l -i -g '*.md' 'inventory|geometry' "/absolute/documentation/path"

The first shows matching lines with context; the second lists matching files. Then use doc for a known API name or open the Markdown page. If a term finds little, try related scientific vocabulary.

Author keyword tags

Keep subject keywords with their source. API docstrings list comma-separated terms in a Keywords section:

Keywords
--------
filtering, bandpass, low pass

The website displays this section, and the local corpus keeps the terms as metadata. Use specific scientific terms and common task vocabulary; keywords describe subjects, not whether a page is an agent skill.