Opening and Parsing a QXDM .isf File using Python - python

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.

Related

How can I Access .exe file with python which is not made by python

I have two Software on my desktop that i want collect data from, one software contains (hashes gathered, this hashes is a file in the main program) and send it to the other software(pool).I am looking for the best approach of grabbing the data from One software and feeding it to the other.
these are the libraries i have checked so far
Pywinauto
PEFILE
uncompyle6
I don't know what to do..
Windows exe can be automated with UIA or MSAA technology, so first use uispy or inspect tools to judge

Python file copy script - preserving a file's Creation time without leveraging third-party modules?

I am writing a Python script that mimics Microsoft's Robocopy (while adding predictive script completion times to the user). I'm deploying this script in an intranet environment where its difficult to have third-party software approved so I'd like to stick to the Python 3 standard library if possible.
Does anyone know if the latest version has native modules that can alter a file's timestamp after it's been copied? I'm trying to preserve the original file's creation date/time after it's been copied. I know I can read it with os.path.getctime(), but I'm only aware of the third-party pywin32 module that can manipulate a file's timestamps. Thanks in advance.

Hachoir Python Implementation on Blackberry

I need to implement the Hachoir libraries to parse through image files (the meta-data in them). My project requires this to be done on a Blackberry device, hence that would mean I will have to port the entire Hachoir library to Blackberry.
The other thing I could do is to, write python scripts (which utilizes the Hachoir libraries) and find a way to call these scripts from the Blackberry. I read that it is possible to call python scripts using NDK on Android. Is there a similar tool for Blackberry?
So in the end I will have to install hachoir(??) on the phone, call the scripts through the "NDK equivalent tool", capture the output again through this tool and display it to the user.
Any suggestions on the tools to be used and the method in general? Are there any other suggestions for hachoir like libraries on Java? Thanks!
Peter Hansen has Python running native on the BB playbook. See this link.
Or you can write your own script using the python app, and then port it (if needed) to peter's framework (which is very cool too)
http://appworld.blackberry.com/webstore/content/32880889/

pdf to chm handling libraries for python3

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.

Should I rewrite outdated tawk routines in Python?

in the early nineties I bought the tawk (Thompson awk) compiler and developed since than a lot of programs for my companies. The compiler produces fast reliable code and has a lot of useful extensions for the Windows environment.
Until now it worked in the W95, W2K and XP without problems but now that I have to move to W7 / 2008 Server I am in doubt if it is wise to try to continue with this although excellent but outdated and no more supported product.
My questions to you :
What can you recommend for real-world business applications (all of them run in batch mode - no GUI) ?
Has someone made a bigger transition (manual reprogramming) from xxx (here: awk) to Python ?
What Python implementation should I use ? I need fast file I/O and extensive random access to 100.000+ dictionary elements for 1.5 Mio monthly transactions
Which is the most stable version ? 2.7.x ? 3.1.x ?
Does 3.1 support Windows Automation ? I have to drive the Excel API through COM and need access to MS-SQL
And : is Python really the choice for this kind of task ?
Thank you for your honorable answersMeiki
Python is a good choice for these types of tasks. You should use Python 2.7.2 and since you are on Windows, you may want to use the Activestate Python distribution http://www.activestate.com/activepython/downloads which is standard Python bundled with a number of additional useful libraries and an easy to use package manager named PyPm.
Also, you should have a look at the slide presentations here http://www.dabeaz.com/generators/ and here http://www.dabeaz.com/generators-uk/index.html because Python generators are a powerful way to handle the same types of batch processing that AWK is used for.
As for Windows automation, the Activestate distro for Windows includes this, or you can download and install pywin separately if you are using the Python.org distro. I've used Python and COM to extract data from Word documents, Excel spreadsheets, Outlook mailboxes and Lotus Notes databases among other things.
If you want to stick with the awk style of doing things, you can write some Python helper functions so that your Python programs don't look so foreign to awk eyes. In fact, pyawk.py may already be all that you need http://pyawk.sourceforge.net/ You can download it here http://sourceforge.net/projects/pyawk/files/pyawk/pyawk-0.4/ however be warned that Python has evolved a lot since it was last updated.
Without question this is the best way to add Tawk to Django/python. It solved all my needs.
https://github.com/CleitonDeLima/django-tawkto

Categories

Resources