I have used Apache POI to parse .pptx and visio files in Java. I also know that Python has python-pptx for parsing powerpoints. But has anyone run across a really good library for parsing the binary associated with Visio files for Python? I see a lot of questions and answers for other languages, but not for Python. Any helpful suggestions?
Please try vsdx - A python library for processing .vsdx files
Related
I'm working on a project where I need to open and parse multiple .isf file formats. Is there a python way to import the data from the .isf file format ? If not is there any other way I could do it ?
The premise of the project is to open multiple .isf files, parse them into one big file, and also analyze the data.
I was also looking for QXDM ISF parsing mechanisms, and found only two:
for windows with QXDM installed, search manual 80-V5627-1 (ISF Processing Interfaces). "This provides a scripting framework through which any COM-compliant scripting language (VBScript, JScript, PERL, etc.) can access and manipulate files created."
if you need to work in Linux or do not have QXDM installed, I found mentioned in Interface Control Documents (ICDS) that those who purchase an ICD are also offered a QXDM Professional ISF Access SDK at no extra charge. This SDK allows you to process proprietary ISF logs directly without conversion to DLF and does not require QXDM Professional to be installed. A copy of the document can be found here.
Since we haven't purchased the SDK and we work in Linux, we convert from ISF to DLF by hand and parse the DLF files in Linux.
I am a non programmer with experience only in VBA. I took up the challenge to automate some daily tasks in my company, and chose Python 3.4 to do it (not sure if was the best option).
The scripts I need to do are rather simple. They just need to read values from .txt file, perform calculations, and write values in a .xls template.
I read some topics in stackoverflow and got concerned about these two topics:
Is there a feasible way to write data in excel (COM automation, Python 3 packages)?
Will I be able to compile Python 3.4 into an .exe file? Users can't install things in their Desktops.
I am able to do a script like this in VBA, but I need an executable file that can be used by everybody.
You can use the following tools:
XlsWriter https://xlsxwriter.readthedocs.org/
Or Use Py2Exe to convert to a python script to executable http://www.py2exe.org/
Or if your looking to use a '.csv' file, there are built in libraries for that, which are pretty straightforward
I am using python 2.7.
I would like to create a xml file like the one ms project creates. I need it (the file) to import it to RadiantQ jQuery Gantt.
any suggestions??
thank you
I would suggest trying MPXJ, if the platform you are working on allows interoperation between Python and Java or .Net.
Similar question and answer here with some suggestions for interoperability tools.
There are lots of libraries available in python to deal with xml files. I personally used ElementTree. Below link is the summary tutorial for this:
http://docs.python.org/2.7/library/xml.etree.elementtree.html#parsing-xml
I've tried to find a software for pdf to chm conversion to convert my pdf e-books to chm, but I ended up disappointed.
So, as a pythonian, I decided to create my own program to convert pdf files to chm, however, all pdf/chm libraries I found are python2 libraries.
Are there python 3 libraries to handle pdf/chm files?
If you want to write CHM, then afaik only Free Pascal (and therefore Delphi with minimal effort) has a free CHM generator library.
All other tools use the Microsoft commandline tool behind the scenes.
For reading there is chmlib, I assume there is some python wrapper for it somewhere.
For a website i am developing in django i need users to be able to upload .wav or .aif files. I, of course, have to make sure these files really are what they pretend to be - audiofiles. The files then are provided on the webpage, where i need them to be either .ogg or .mp3
While searching for a solution i stumbled across some fearsome possibilities, like using ctypes to handle external libraries. I also found, of course, PyMedia, which i cannot use because i develop on MacOSX. And the python audio tools provide a lot of functionality i do not need.
So far i can see a few possibilities that would satisfy me and are within reach of my programming capabilities:
1 Get PyMedia to run on MacOSX
2 Find a way to use some modules of the python audio tools without the need to use libcdio
3 use python subprocess to run the command line tools of the converters
As i have used none of those tools yet, i can't tell which would possibly be the quickest way to solve my problem. If you Python-Audio-Gurus are out there, could you please share some thoughts? Or maybe you even have a fantastic 1-step-to-happiness solution?
Not strictly a pythonic answer, but perhaps take a look at sox which is a simple command line audio file converter. It can do resampling of audio files for you as well.
Check out the command line options of sox for details. This will of course involve calling the external program using the subprocess module(or other method).