Skip to content

Conversation

@NomakCooper
Copy link
Contributor

SUMMARY

add open_xl module

example usage:

- name: Read Excel workbook
  a2dev.general.open_xl:
    src: "/tmp/sample.xlsx"
    op: "r"
    index_by_name: true
  register: result
- debug:
    var: result

- name: Overwrite specific cells
  a2dev.general.open_xl:
    src: "/tmp/sample.xlsx"
    dest: "/tmp/sample_updated.xlsx"
    op: "w"
    sheet_name: "Sheet1"
    updates_matrix:
      - cell_row: 2
        cell_col: 1
        cell_value: "New Value in row2 col1"
      - cell_row: 3
        cell_col: 2
        cell_value: "Another Value"
    cell_style:
      fontColor: "FF0000"
      bgColor: "FFFF00"
      bold: true
ISSUE TYPE
  • New Module Pull Request
COMPONENT NAME

open_xl

ADDITIONAL INFORMATION

@NomakCooper NomakCooper added new_module feature This issue/PR relates to a feature request. backport-10 backport to stable-10 labels Mar 29, 2025
@NomakCooper NomakCooper merged commit 73d2ca5 into 3A2DEV:main Mar 29, 2025
35 checks passed
@patchback
Copy link
Contributor

patchback bot commented Mar 29, 2025

Backport to stable-10: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-10/73d2ca598e37cd4b67fb7912499c69919cc0c731/pr-35

Backported as #36

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Mar 29, 2025
* add open_xl module

* open_xl - fix sanity test

* open_xl - add integration test

* open_xl - fix integration test

* open_xl - add unit test

* open_xl - fix unit test

* open_xl - fix unit test, remove 2.16 test

(cherry picked from commit 73d2ca5)
NomakCooper added a commit that referenced this pull request Mar 29, 2025
* add open_xl module

* open_xl - fix sanity test

* open_xl - add integration test

* open_xl - fix integration test

* open_xl - add unit test

* open_xl - fix unit test

* open_xl - fix unit test, remove 2.16 test

(cherry picked from commit 73d2ca5)

Co-authored-by: Nocchia <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-10 backport to stable-10 feature This issue/PR relates to a feature request. new_module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant