Xlwings Lite——基于Pyodide的Excel Python环境
Xlwings Lite – Python in Excel Using Pyodide

原始链接: https://lite.xlwings.org/

xlwings Lite 通过将 Python 功能直接引入电子表格环境,实现了 Excel 自动化的现代化,同时优先考虑隐私和易用性。它可通过 Office 加载项商店免费获取,无需注册,并在 Windows、macOS 和 Web 版 Excel(包括 Microsoft 365 和 Office 2024)上无缝运行。 此跨平台解决方案无需单独安装 Python,它通过 WebAssembly 在浏览器环境中运行 Python 代码。用户可以创建自定义函数 (UDF) 和自动化脚本,访问 Excel 对象模型进行操作,甚至安装 pandas 和 Polars 等常用的 Python 包。 其主要优势包括完全本地运行,确保数据隐私和闪电般的性能,并配备熟悉的基于 VS Code 的编辑器。此外,xlwings Lite 支持自托管以增强安全性,并在初始加载后可离线工作。由于 Python 代码存储在工作簿中,因此分发也得到了简化,只需 xlwings Lite 加载项即可。

Hacker News 最新 | 过去 | 评论 | 提问 | 展示 | 招聘 | 提交 登录 Xlwings Lite – 使用 Pyodide 在 Excel 中运行 Python (xlwings.org) 9 分,owenm 发布,7 小时前 | 隐藏 | 过去 | 收藏 | 讨论 加入我们 6 月 16-17 日在旧金山举办的 AI 初创公司学校! 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系我们 搜索:
相关文章

原文

xlwings Lite brings the VBA experience into the modern age by offering a privacy-first, secure, and developer-friendly way to automate Excel and write custom functions with Python.

  • Free & easy to install: Available for free in the Office add-in store for both personal and commercial use. No registration or login required, simply install and create amazing things!

  • Cross-platform: Works on Windows, macOS, and Excel for the web. It’s compatible with Microsoft 365 as well as recent perpetual versions like Office 2024.

  • No Python installation required: You don’t need to have Python installed as Python runs inside the browser that powers modern Excel add-ins (using WebAssembly via Pyodide).

  • Easy distribution: Python code is stored inside the workbook, making the xlwings Lite add-in the only requirement to run your workbook.

  • Custom functions & scripts: Define native custom functions (a.k.a. user-defined functions “UDFs”) and run automation scripts by clicking a button.

  • Excel object model: Access the Excel object model to insert a new sheet, format an Excel range as table, set the color of a cell, etc.

  • Install packages: Install and use libraries like pandas, Polars, DuckDB, or even your own custom Python packages.

  • Web API access: Fetch data from APIs that support CORS.

  • Lightning-fast: All code runs locally on your machine, eliminating network latency and delivering lightning-fast performance!

  • Fully local & private: Runs entirely on your computer without sending data out. The only exception is Microsoft’s mandatory telemetry, which you can eliminate through self-hosting.

  • Familiar & powerful editor: xlwings Lite uses the same editor as VS Code, supporting many of the same keyboard shortcuts to make you more efficient.

  • Self-hosting: For maximum security, you can deploy xlwings Lite on your own infrastructure, behind your firewall (“on-premise installation”).

  • Works offline: xlwings Lite only requires a network connection for loading the add-in. Once loaded, xlwings Lite works offline.

  • 联系我们 contact @ memedata.com