A helping tool to submit jobs to NEOS from Excel
Project description
xneos
xneos is a lightweight integration tool that allows you to submit optimization jobs to the NEOS Server directly from Excel, powered by Python and xlwings.
✨ Features
- Submit AMPL or other model jobs to NEOS directly from Excel
- Leverage Python via
xlwingswithout leaving your spreadsheet - Track job results and display outputs in Excel
- Simple setup with template-based project structure
🚀 Installation
Option 1: From GitHub (latest)
pip install git+https://github.com/jerronl/xneos.git
Option 2: From PyPI (when published)
pip install xneos
🧩 Usage
1. Install the xlwings Excel Add-in (Required)
xlwings addin install
This enables Excel to run Python functions via macros.
2. Create a New Project
Generate a new Excel+Python project using:
xneos quickstart myproject
This will create a folder myproject/ with:
xneos_template.xlsm: Excel file with a built-in "Solve" button (macro-enabled)xneos_main.py: Sample Python script for job submissionxlwings.conf: Configuration for Python/Excel integrationmanualstart.bat: Manually start the python server
3. Run the Example
- Open
xneos_template.xlsm - Enable macros if prompted
- Click the Solve button to submit a sample job to NEOS
4. Customize
You can update:
- The Excel sheet (e.g., input/output cells)
- The Python script (
xneos_main.py) to match your own model and data - The
.xlsmmacro to trigger additional logic
⚠️ Known Issues
❗ Run-time Error 1000: "No command specified in the configuration"
This occurs when xlwings is unable to autostart the Python server due to misconfiguration.
✅ How to Fix:
- Make sure
xlwingsand its Excel Add-in are installed correctly - Alternatively, start the UDF server manually:
myproject/manualstart.bat
Keep the terminal window open (you can minimize it).
📄 License
MIT License © 2025 Jerron
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file xneos-0.1.0.tar.gz.
File metadata
- Download URL: xneos-0.1.0.tar.gz
- Upload date:
- Size: 110.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
220ad7c478876ef9f38d7a44244f40731b26cdb6e3687ed00a816e0f16571306
|
|
| MD5 |
265363ebf7efb31cd6e9485ba697b51a
|
|
| BLAKE2b-256 |
910ff0450ba843fc7f040eff06a01c0851e29de7e13d454836cd40ddb11d9dd0
|
File details
Details for the file xneos-0.1.0-py3-none-any.whl.
File metadata
- Download URL: xneos-0.1.0-py3-none-any.whl
- Upload date:
- Size: 108.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e1a88f95a30b7e9da4aa8dd5729a543d5ebb057f7c94b63c66ee2a1a4e040eb
|
|
| MD5 |
637c08f1a58e2c7d29bf96fb77362d15
|
|
| BLAKE2b-256 |
993ca3363316ea2c42dda00a9b0d226a6d0f8bd0ba3f67224d6372b542b2a58e
|