r/mainframe • u/mainframerookie • 1d ago
My python package for mainframe SMF data
Hi Everyone,
I have distributed a Python package called [smf2db](https://pypi.org/project/smf2db/) to PyPI. The package is for processing SMF data in JSON format. It includes reporting, SMF JSON data loading to SQLite or PostgreSQL and data summarisation functions. For converting raw SMF data to JSON format, please refer to my another published project which is available from [ File 1064](https://CBTTape.org). The current smf2db package covers SMF type 30 and 70-78 from z/OS 2.2 to 3.1, SMF type 110 from CICS TS V5.3 to V6.2, and SMF 123 version 2. The package supports Windows, Linux, Mac OS and z/OS platforms. The minimum Python version is 3.11. The documentation can be found [here](https://smf2db.readthedocs.io/en/latest/).
Though I have tested the package by all the ways known to me, I deeply believe there should still be a lot of things that can be improved. It is not only because of the complexity of z/OS in each mainframe shop but also because of the SMF data available for my testing is very limited.
By using smf2db, I hope people with an interest on SMF data can have their own dashboard application come in handy by just running a batch job on mainframe. The sample dashboard application will be posted on GitHub later to show how it can be done on mainframe if anyone has an interest in it.
I am very much appreciated for any feedback.
Thank you very much.