functionVerified releasev1

collect_code_lines

Collect practice lines from source files under a local directory (stdlib only).

Updated
Runtime
current process; user-managed packages · Python 3.13

Interface

Verified contract

Callable Object

Inputs

NameType
root_dirstr
source_dirslist | None
extensionslist | None
ignore_substringslist | None
max_lengthint
min_lengthint

Outputs

NameType
defaultlist

Exact release

Pinned local call

from spl import SPLClient

result = SPLClient.embedded().call(
    "splime://@splime.project/typing-trainer/collect_code_lines@1",
    kwargs={'extensions': [], 'ignore_substrings': [], 'max_length': 0, 'min_length': 0, 'root_dir': 'replace-with-value', 'source_dirs': []},
    trust=True,
)

Review before running. Public bundles contain executable code. Verify the publisher and exact content hash; a virtual environment isolates dependencies, not the operating system.

Evidence

Evidence-backed concepts

  • Collect code lines
  • Source file
  • Local directory
  • Stdlib only
  • Root dir
  • Source dirs
  • Ignore substrings
  • Max length

History

Public versions

  • v10 downloads

Discover

Similar Objects

Explore all