Skip to content

Add sheet_names metadata to XLSX datatype#22327

Open
Anthony96pi wants to merge 4 commits intogalaxyproject:devfrom
Anthony96pi:addMetadata_xlsx
Open

Add sheet_names metadata to XLSX datatype#22327
Anthony96pi wants to merge 4 commits intogalaxyproject:devfrom
Anthony96pi:addMetadata_xlsx

Conversation

@Anthony96pi
Copy link
Copy Markdown

@Anthony96pi Anthony96pi commented Mar 31, 2026

Extract and store sheet names from XLSX files.

  • The aim is to enable dynamic access to the sheet names in an xlsx file, as the sheet names are required to read the file.
  • To achieve this, this PR extends the existing XLSX class in binary.py by adding metadata and implementing a set_meta function to extract the sheet names.

How to test the changes?

(Select all options that apply)

  • I've included appropriate automated tests.
  • This is a refactoring of components with existing test coverage.
  • Instructions for manual testing are as follows:
    1. [add testing steps and prerequisites here if you didn't write automated tests covering all your changes]

License

  • I agree to license these and all my past contributions to the core galaxy codebase under the MIT license.

Extract and store sheet names from XLSX files without loading full workbook content. Uses zipfile to read only workbook.xml.

- Add sheet_names MetadataElement with ListParameter
- Implement get_xlsx_sheet_names() using xml.etree

This metadata enables tools to:
- Display sheet information without opening files
@github-project-automation github-project-automation bot moved this from Needs Review to Done in Galaxy Dev - weeklies Mar 31, 2026
@Anthony96pi Anthony96pi deleted the addMetadata_xlsx branch March 31, 2026 13:50
@Anthony96pi Anthony96pi restored the addMetadata_xlsx branch March 31, 2026 14:08
@Anthony96pi Anthony96pi reopened this Mar 31, 2026
@github-project-automation github-project-automation bot moved this from Done to In Progress in Galaxy Dev - weeklies Mar 31, 2026
@github-actions github-actions bot added this to the 26.1 milestone Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

1 participant