$npx skillfedfor your agent

pycel

A library for compiling excel spreadsheets to python code & visualizing them as a graph

With conditionsPyPI Python ModulesReleased Oct 2021327.0K downloads / mocopyleft licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pycel-1.0b30-py3-none-any.whl
v1.0b30 · released 2021-10-13 · Python >=3.6 · 5 runtime deps: networkx, numpy, openpyxl, python-dateutil, ruamel.yaml

Yes, if you have a stable Excel workbook with supported functions and can accept GPLv3 licensing. The low install friction and graph-based design make it suitable for one-time or occasional spreadsheet compilation. However, maintenance is dormant (last release October 2021), so expect no new function support or bug fixes; verify that your spreadsheet's functions are already implemented before committing to this library. Not recommended for proprietary projects due to copyleft licensing.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires openpyxl to read .xlsx files and networkx, numpy, python-dateutil, ruamel.yaml as runtime dependencies.
  • Low install friction with a pure-Python wheel.
  • Maintenance is dormant—last release was 2021-10-13 and no commits since 2024-05-29—so expect limited bug fixes or feature updates going forward.

License · maintenance · safety

copyleft license (copyleft) — Licensed under GPLv3 (copyleft), which requires any derivative work or distribution to also be open-source under GPLv3; proprietary projects cannot incorporate this code without releasing their modifications.

last release 2021-10-13 (1766 days) · last repo commit 2024-05-29 · 31 stars

2 known vulnerabilities (OSV.dev, 2026-08-14) · 326,982 downloads/mo, #7,570 on PyPI

Verify before relying

pip install pycel

from pycel import ExcelCompiler

compiler = ExcelCompiler(filename='spreadsheet.xlsx')
result = compiler.evaluate('Sheet1!A1')
  • Whether all Excel functions used in a given spreadsheet are actually supported by the version installed.
  • Performance characteristics on spreadsheets larger than the 10,000-formula example mentioned in the description.
  • Current compatibility with modern versions of openpyxl and networkx beyond what the changelog documents.
Same gist for agents: .md · .json

What it is and what it does

Pycel is a Python library that reads an Excel workbook and compiles its formulas into a directed acyclic graph of Python functions, then evaluates that graph to produce results without requiring Excel. It supports common mathematical functions (sin, cos, atan2), operators, ranges, and lookup functions like MIN, MAX, INDEX, and LINEST. The compiled code can be exported and analyzed using graph visualization tools like Gephi.

The library is designed for spreadsheets with hundreds or thousands of formulas where you need reproducible, auditable computation outside Excel. It depends on networkx for graph representation, numpy for numerical operations, openpyxl for reading .xlsx files, python-dateutil for date handling, and ruamel.yaml for configuration. The codebase is intentionally small and relatively fast, though the author notes that truly high-performance use cases might require replacing the graph with sparse-matrix-based dependency tracking.

Use it for

  • Automate recurring spreadsheet calculations in production without Excel licensing or manual re-entry.
  • Audit and version-control complex financial or engineering models by converting them to readable Python code.
  • Integrate Excel-based business logic into Python data pipelines or web services.
  • Visualize formula dependencies and data flow in large spreadsheets using graph export tools.
  • Test spreadsheet formulas programmatically by evaluating them in a Python test suite.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you have a stable Excel workbook with supported functions and can accept GPLv3 licensing.

The low install friction and graph-based design make it suitable for one-time or occasional spreadsheet compilation. However, maintenance is dormant (last release October 2021), so expect no new function support or bug fixes; verify that your spreadsheet's functions are already implemented before committing to this library. Not recommended for proprietary projects due to copyleft licensing.

Install

pycel on PyPI

Before you install

Low install friction with a pure-Python wheel. Maintenance is dormant—last release was 2021-10-13 and no commits since 2024-05-29—so expect limited bug fixes or feature updates going forward.

Requires openpyxl to read .xlsx files and networkx, numpy, python-dateutil, ruamel.yaml as runtime dependencies.

License in practice

Licensed under GPLv3 (copyleft), which requires any derivative work or distribution to also be open-source under GPLv3; proprietary projects cannot incorporate this code without releasing their modifications.

Quickstart

pip install pycel

from pycel import ExcelCompiler

compiler = ExcelCompiler(filename='spreadsheet.xlsx')
result = compiler.evaluate('Sheet1!A1')

Verify before relying

  • Whether all Excel functions used in a given spreadsheet are actually supported by the version installed.
  • Performance characteristics on spreadsheets larger than the 10,000-formula example mentioned in the description.
  • Current compatibility with modern versions of openpyxl and networkx beyond what the changelog documents.

Package facts

Licensecopyleft license copyleft
Python supportSupports the current Python release >=3.6
Install frictionLow. Pure-Python wheel
Runtime dependencies
5 packages
networkxnumpyopenpyxlpython-dateutilruamel.yaml
MaintenanceDormant 1,766 days since the last release
Last repo commit
First released
Downloads326,982 / month, #7,570 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilities2 GHSA-pw67-xjhq-389w, PYSEC-2025-177
Classifiers
Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: GNU General Public License v3 (GPLv3)Operating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python Modules

Evidence: pycel-1.0b30-py3-none-any.whl

Tags

Capabilities
excel to python compilerexcel formula parserspreadsheet code generationexcel automation pythonconvert excel to codeexcel graph visualizationformula evaluation engine
Topics
excel-interopformula-evaluationcode-generation
PyPI keywords
excelcompilerformulaparser

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “excel to python compiler”

  • pycelPycel translates Excel spreadsheets into executable Python code that…
  • formulasParses and compiles Excel formulas and workbooks into executable…
  • xlwingsxlwings lets you call Python from Excel and vice versa, automating…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also xlcalculator · formulas · spire-xls · openpyxl · aspose-cells · xlwings · pylightxl · excelrd · aspose-cells-python · xlwt