TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Script Excel with Python

280 点作者 karamazov将近 13 年前

27 条评论

smortaz将近 13 年前
This is great guys! We cooked up a similar thing called Pyvot (pivot). It's OSS/Apache - feel free to take/contribute. Cheers, smortaz@microsoft.<p>Video: <a href="http://www.youtube.com/watch?v=Oi3QKuFugWk&#38;hd=1" rel="nofollow">http://www.youtube.com/watch?v=Oi3QKuFugWk&#38;hd=1</a><p>edit - link to project: <a href="http://pytools.codeplex.com" rel="nofollow">http://pytools.codeplex.com</a>
评论 #4087346 未加载
bmccormack将近 13 年前
I still have a soft spot for VBA, especially in Excel. I wrote a supply-chain management application in Excel+VBA that's still in production today. As comfortable as I am with VBA, I wouldn't mind in the least ditching it for Python, which makes writing routine methods trivial. Great work!
评论 #4085499 未加载
mwexler将近 13 年前
That's very clever. However, the ultimate integration of spreadsheet and Python has got to be ResolverOne (<a href="http://www.resolversystems.com/products/resolver-one/" rel="nofollow">http://www.resolversystems.com/products/resolver-one/</a>) It's a really amazing experience.
评论 #4087377 未加载
yangyang将近 13 年前
Nice.<p>Also see PyXLL (<a href="http://pyxll.com/" rel="nofollow">http://pyxll.com/</a>), which lets you write Excel plugins in Python (CPython).
评论 #4087107 未加载
steve8918将近 13 年前
What is the licensing for this? I couldn't tell whether this was free, if I had to pay, if it was open source, GPL, etc.
评论 #4085839 未加载
dkhenry将近 13 年前
The big question I have is why would I use this instead of a real database. If i am not mistaken excel can hook up to ODBC sources and then I can just script things as I normally would using the database drivers.
评论 #4086647 未加载
评论 #4085523 未加载
adorton将近 13 年前
Impressive. Would people I share a spreadsheet with need the plugin?
评论 #4085227 未加载
pneumatics将近 13 年前
This isn't necessary, you can have access to the full Excel COM API, with tab-completion, backwards-compatibility etc, for free with iPython and the makepy.py script.<p><a href="http://stackoverflow.com/a/445961" rel="nofollow">http://stackoverflow.com/a/445961</a><p>Though I admit scripting Excel from Python should be easier to setup than it is.
iamdave将近 13 年前
This is awesome! I plan to use this 100%. Sent it to a few other excel power users in my org, thank you for this
评论 #4085264 未加载
pyxll将近 13 年前
If you want to call Python functions from Excel in the form of user defined functions, macros or menu functions (including macros bound to UI widgets and application events) you should take a look at PyXLL (www.pyxll.com).<p>This has been around for a couple of years now and actively maintained and supported, and is in use by many organisations already. It supports all versions of Excel from 2000 onwards, with some features only available in later versions (eg asynchronous functions are only in Excel 2010).<p>It uses cPython so all the standard libraries are usable.<p>Calling back into Excel is quite straightforward using win32com, and there are examples on the website that show how to do that.<p>With PyXLL you can write plain Python code that you can use outside Excel as well - so it's quite easy to write a library of functions that can be called from normal Python scripts as well as expose them to Excel at the same time.<p>I'm not sure what this project adds over what's already available but I'd be very interested to hear what other people's opinons are.
nchlswu将近 13 年前
This seems really cool, but I'm admittedly not familiar with this area. How does this compare or supplement to Excel VBScript?
评论 #4085433 未加载
shazam将近 13 年前
That's funny, I just used xlrd and xlrt and had to convert about 100 files to 97-2003 workbooks
评论 #4089483 未加载
fonzie将近 13 年前
This seems pretty great. Any plans for compatibility with Excel 2003 and 2007?
评论 #4092694 未加载
il将近 13 年前
Any plans for OS X support?
评论 #4085551 未加载
dbecker将近 13 年前
This solves a real business problem for a lot of people. I'm doubly impressed that it was done by a recent grad and someone still in school.<p>You guys have a bright future in front of you.
AlexDanger将近 13 年前
This is great. I have to work with some very complex excel/VBA apps and this will be a breath of fresh air.<p>Is there anything out there that allows using C# to script/control excel?
willyt将近 13 年前
Honest question; I havent tried to script xl or word for years. What is this doing that I couldn't do with IronPython or IronRuby?
jaxn将近 13 年前
REALLY wish this was available for Mac.
评论 #4085332 未加载
评论 #4085308 未加载
bradleyy将近 13 年前
From a conversation with them, they are intending to charge around $2000/seat/month. This takes it out of the realm of possibility for me, but <a href="http://excel-dna.net/" rel="nofollow">http://excel-dna.net/</a> looks like it will fit the bill with a little elbow grease.
edwinyzh将近 13 年前
This is very interesting! Wrapping the entire Excel object model in Python must be a huge work.
mcarvin将近 13 年前
Great work. I am a long time finance geek - this will make life decidedly easier.
asto将近 13 年前
Calligra Sheets allows scripting with python, ruby and js!<p><a href="http://en.wikipedia.org/wiki/Calligra_Sheets" rel="nofollow">http://en.wikipedia.org/wiki/Calligra_Sheets</a>
canuc将近 13 年前
I love you. So much.
moolcool将近 13 年前
Any plans to support pivot tables?
评论 #4086747 未加载
danielalela将近 13 年前
niiiice! :) python is definitely better than vba, didn't think of this use for it!
评论 #4085878 未加载
cschmidt将近 13 年前
Is this an open source project, or are you planning to sell it?
评论 #4085247 未加载
Pyinex将近 13 年前
Done two years ago:<p>Code.google.com/p/pyinex<p>O.83 alpha version includes the code.