Skip to main content

A tool to extract attachments from Excel (XLSX) files.

Project description

ExcelUnpack

ExcelUnpack is a Python tool that allows you to extract embedded attachments from Excel files (XLSX).

Installation

You can install ExcelUnpack using pip:

pip install excelunpack

Usage

As a Command-Line Tool:

extract-xlsx-attachments path/to/excel/file.xlsx path/to/output/folder

As a Python Library:

from excelunpack.excel_attachments import extract_attachments_from_xlsx

xlsx_file = "path/to/excel/file.xlsx"
output_dir = "path/to/output/folder"
extract_attachments_from_xlsx(xlsx_file, output_dir)

6. tests/test_extract.py (Unit Tests for Extraction)

import unittest
from excelunpack.extract_attachments import extract_attachments_from_xlsx

class TestExcelUnpack(unittest.TestCase):

    def test_extract_attachments(self):
        # Assuming you have a test XLSX file for this
        result = extract_attachments_from_xlsx("test.xlsx", "output_folder")
        self.assertTrue(result)  # Check expected result

if __name__ == '__main__':
    unittest.main()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

excel_unpack-0.1.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

excel_unpack-0.1.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file excel_unpack-0.1.0.tar.gz.

File metadata

  • Download URL: excel_unpack-0.1.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for excel_unpack-0.1.0.tar.gz
Algorithm Hash digest
SHA256 00a59dfc48366883c8d4ddd7bb76e4fe0edf7ea469212a997b69e9be066f4bf9
MD5 517155a5cb77d734b0a7a3a6e208a246
BLAKE2b-256 491117a78fe8361c226cb3aa08457aa2c2110f2c0c7d893cceceaa0091d374ba

See more details on using hashes here.

Provenance

The following attestation bundles were made for excel_unpack-0.1.0.tar.gz:

Publisher: python-publish.yml on svk1998/excelunpack

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file excel_unpack-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: excel_unpack-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for excel_unpack-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 beeb1120831e297963ac2961049674c8fb477b08c76b60a21dbf9496bcd4b631
MD5 687ab45b02709767beb415d6775ad02c
BLAKE2b-256 e4d8b87796e473792fbab5f3dfe81a92f995a419fffb703793fe205d84cd12e1

See more details on using hashes here.

Provenance

The following attestation bundles were made for excel_unpack-0.1.0-py3-none-any.whl:

Publisher: python-publish.yml on svk1998/excelunpack

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page