Skip to main content

rbco.msexcel

Author:

Rafael Oliveira <rafaelbco@gmail.com>

Overview

Provide functions to read, parse and convert MS Excel spreadsheets into various data structures.

Usage

To read a MS Excel file into memory call xls_to_excelerator_dict(filename). This will return a dict in the excelerator_dict format. Functions are provided to convert between this format and the following formats.

excelerator_dict

A list of tuples (sheet_name, dict). dict keys are (row_num, col_num) pairs:

[
    (
        sheet_name,
        {
            (row_num, col_num): value,
        }
    ),
]

rows_and_columns

Nested dicts which keys sheet name, row number and column number:

{
    sheet_name: {
        row_num: {
            col_num: value,
        }
    },
}

matrix

A dict mapping from sheet names to matrices, i.e, a lists of lists:

{
    sheet_name: [
        [v01, v02, v03, ...],
        [v11, v12, v13, ...],
    ]
}

structure

Perhaps the more user-friendly format: A dict mapping from sheet names to lists. These lists contains the rows. Each row is represented by a dict, mapping from column names to values. Column names are the values in the first row of the sheet:

{
    sheet_name: [
        {
            col_name: value,
        },
    ]
}

This format is only useful if the first row of each sheet is actually a header row

Metadata

Release files for rbco.msexcel 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rbco.msexcel 0.0.4
File Size Uploaded Provenance Actions
rbco.msexcel-0.0.4.zip 6.9 kB Without provenance Details for rbco.msexcel-0.0.4.zip

Release files / rbco.msexcel-0.0.4.zip

Download URL rbco.msexcel-0.0.4.zip
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
980a1ac9c0630a1f8e6b7ee373eb0820c25149b8c6383ae0dbe721f01a1f5274
BLAKE2b-256 checksum
How to use checksums
d85d64c051b1207665f2188cf1a36d0402ba515d8f1f7d20ac6796125e79aef3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for rbco.msexcel 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page