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
Built Distribution
File details
Details for the file exceltoamx-0.0.5.tar.gz
.
File metadata
- Download URL: exceltoamx-0.0.5.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48483cf6b7a59cc04e7b1bc56959338928a91d170655db30c5647c5d71c40726 |
|
MD5 | 96329bea769e187005109888b0238673 |
|
BLAKE2b-256 | 8a2ede260e8a32518be07f3dc8303afee8be6ea471587c4cc40c5578691be9fe |
File details
Details for the file exceltoamx-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: exceltoamx-0.0.5-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1df2f9987252de1d2b64f7fb6e05e21dd89112d9fc761767ef8cd73dc13b5584 |
|
MD5 | 810f55e81abf021999996c344c004689 |
|
BLAKE2b-256 | 2bf200eda37d8dda897307c3eb037adf9b63bc3e76d8a0a602db6362abd663e3 |