Skip to main content

xlsx to amx dict list

Project description

exceltoamx

import excel spreadsheet to list of amx dicts.

This is NOT a generic Excel importer. It's specific to campus AMX systems.

Each amx system is represented by a dictionary populated by the excel columns. These dictionaries are then put into a single list and returned.

Required columns: building_name, room_number, master_ip

Columns handled here but not required: system_number, space_use_code, tp_generation

Any additional columns are allowed. They will be converted to dict k,v pairs

Requires tablib. Dictionary keys are populated from the top row of data in the .xlsx file. Each additional row is turned into a dictionary with the values from that row. Then all of the rows/dictionaries are put into a list and returned. We could also return the xlsx dataset, but there's no current use for it so I left that commented out. :param path: path to .xlsx file :return: list of dictionaries

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

exceltoamx-0.0.3.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

exceltoamx-0.0.3-py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 3

Supported by

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