public_images
xlwings
public_images | xlwings | |
---|---|---|
1 | 25 | |
0 | 2,848 | |
- | 0.9% | |
0.0 | 8.4 | |
about 3 years ago | 24 days ago | |
Python | ||
- | BSD 3-clause "New" or "Revised" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
public_images
-
Excel Never Dies
People are all talking about how it's useful for quick stuff with datasets, but it goes far beyond that. It's useful for quick anything you might want a database for. Imagination is the limit.
For example, if any of you play D&D online, you might be familiar with dndbeyond's character sheets. They're a fantastic way to onboard new players who might not have the inclination to spend hours with the rule books before they even start playing. It does all the calculations for you and gives you some buttons for like "roll athletics" and doesn't let you add more spells than your character can have with their stats.
I recently persuaded some friends to give FATE a try and built analogous push-button character sheets with google sheets [0]. It was quick and simple. With conditional formatting, you highlight bad states (rules say you can't have more of X than Y!). With the script editor, you can add full on buttons for dice rolls and other state changes with whatever logic you want (anything you can code up!). Checkboxes are obvious but super useful. And the transparency of the calculations is helpful for teaching people the system (this stat is "min(A4, B1+C5)").
To build a stateful, database backed, live collaborative GUI that can be added to and customized without google sheets would have been a serious endeavor. With it, it was a quick fun afternoon hack. Excel/google sheets is an amazing piece of technology.
[0] Screenshot of the "app": https://github.com/imh/public_images/blob/main/Screen%20Shot...
xlwings
-
Python in Excel: Combining the Power of Python and the Flexibility of Excel
Reading the headline, I initially thought that Microsoft bought the company behind XLWings [1], which also enables you to use Excel directly within Excel, even locally. Not affiliated in any kind to that company, just used it in the past.
[1] https://www.xlwings.org/
- Microsoft is bringing Python to Excel
- Python for Excel: A Modern Environment for Automation and Data Analysis
-
Running python from excel
xlWings https://www.xlwings.org/
-
Creating slicers with xlwings
I'm trying to automate a report and I know xlwings does not support pivot tables and slicers, as it is essentially a pywin32 wrapper. You can directly reference the COM object using .api and constants
-
VM for python automation projects
Also you can also use xlwings library to build an excel add-on to replace or even augment VBA.
-
Help with Python automation at work to free up time as single Dad.
You want xlwings (my preferred) or openpyxl
-
[Question] Can I automate this? Sending emails with a file that needs to be updated.
You could look at using Python from Excel using xlwings.
-
Microsoft upgrades Office security by blocking VBA macros by default
Xlwings is superior anyway.
-
Any ways to use excel to run a, say, python script?
xlwings - open source and free - https://www.xlwings.org/
What are some alternatives?
ipykernel - IPython Kernel for Jupyter
openpyxl
XlsxWriter - A Python module for creating Excel XLSX files.
pyexcel - Single API for reading, manipulating and writing data in csv, ods, xls, xlsx and xlsm files
xlwt
python-docx - Create and modify Word documents with Python
python-pptx - Create Open XML PowerPoint documents in Python
unoconv - Universal Office Converter - Convert between any document format supported by LibreOffice/OpenOffice.
docxtpl - Use a docx as a jinja2 template
Marmir - Python powered spreadsheets
xlcalculator - xlcalculator converts MS Excel formulas to Python and evaluates them.
pycel - A library for compiling excel spreadsheets to python code & visualizing them as a graph