Skip to content

Tag: python

cx_Oracle connection type hinting in python

I’m diving into type hints and type hinting some of my code as I think it is a good practice. I have a function that takes both sqlalchemy and cx_Oracle connection/session objects. I was able to figure out the hinting for sqlalchemy here. Poked around some docs trying to figure it out with cx_Oracle to …

How can I assign a variable from a string inside a json dictionary?

This is my get output on each asset im getting data back from I can access the dictionary values easily, but how doo i access the value of the array, i want to be able to add up each critical vulnerability this is the return, im trying to get critical, moderate, severe values from the vulnerabilities sub arra…