No project description provided
Project description
README
When you need to carrefully fill-out an Excel file, it can be tricky.
It's even worse when the sheet is so ugly that it kind of burn your soul every time you open it.
This package try to tackle optimise that: writing plain yaml and never open the damn Excel file again.
Install
pip install autoxlsx
How to use
A simple workbook
myugly.xlsx
Name
,function
& age
are inputs others (E) are calculated by Excel formula.
Write model
Usually people are picky about their excel format, so I expect this part to be quite static.
Model.yaml
- sheetname: mysheet
parameters:
#that's an employee first name
- parameter: "name"
position: "C4"
#here you have a function
#note: nobody care
- parameter: "function"
position: "C5"
#same nobody care but put something
- parameter: "age"
position: "C6"
Write values
This part that will change often.
Values.yaml
mysheet.name: Bob
mysheet.function: Sword man
mysheet.age: 42
The key use a dot notation to point to a specific value in the whole workbook. Note that parameter are defined in the model.yaml
Update excel
Use the cli utility.
It will update inplace the excel file writing to the correct cells.
autoxlsx model.yaml values.yaml myugly.xlsx
Example
See tests/data/
for more example
Project details
Release history Release notifications | RSS feed
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 autoxlsx-0.2.0.tar.gz
.
File metadata
- Download URL: autoxlsx-0.2.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.7.7 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e0f803ce6a7a9d0bce0b33646a6a8f104850dad79161f8e48355b16067352d5 |
|
MD5 | 27d54610deb5ed11fbc5aa1315068b06 |
|
BLAKE2b-256 | 43363a85f1a6db80317b990ec978ccf68482608921f048eb022bcc13dbb799ac |
File details
Details for the file autoxlsx-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: autoxlsx-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.7.7 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6326801dfdf66c25fda98c6fc1e294ac2d365865458a8b2ae1ac71b35a2dc3f |
|
MD5 | cec8b1855079fae26ebe7f906305f44c |
|
BLAKE2b-256 | 1a39bdb0452ebd4b257bfef84598986b00dd88442d51ca25e1472390716dbd0c |