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
Metadata
Release files for autoxlsx 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| autoxlsx-0.2.0.tar.gz | 4.1 kB | Without provenance | Details for autoxlsx-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| autoxlsx-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for autoxlsx-0.2.0-py3-none-any.whl |
Total release size: 8.6 kB
Release files / autoxlsx-0.2.0.tar.gz
| Download URL | autoxlsx-0.2.0.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7e0f803ce6a7a9d0bce0b33646a6a8f104850dad79161f8e48355b16067352d5
|
|
BLAKE2b-256 checksum How to use checksums |
43363a85f1a6db80317b990ec978ccf68482608921f048eb022bcc13dbb799ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.7.7 Windows/10
|
Release files / autoxlsx-0.2.0-py3-none-any.whl
| Download URL | autoxlsx-0.2.0-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f6326801dfdf66c25fda98c6fc1e294ac2d365865458a8b2ae1ac71b35a2dc3f
|
|
BLAKE2b-256 checksum How to use checksums |
1a39bdb0452ebd4b257bfef84598986b00dd88442d51ca25e1472390716dbd0c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.7.7 Windows/10
|
Security for autoxlsx 0.2.0
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.