Skip to content

Instantly share code, notes, and snippets.

View ashmastaflash's full-sized avatar
🦇
Nocturnal 🦝

ashmastaflash

🦇
Nocturnal 🦝
View GitHub Profile
@ashmastaflash
ashmastaflash / gist:94a979f6e8a662da6c8490721f04df37
Created May 10, 2019 15:49
Check all issues updated since a point in time
import cloudpassage
import os
key = os.getenv("HALO_API_KEY")
secret = os.getenv("HALO_API_SECRET_KEY")
session = cloudpassage.HaloSession(key, secret)
issues = cloudpassage.Issue(session)
all_issues = issues.list_all(critical=True, state="active,deactivated,missing,retired", since="2019-05-09")
for issue in all_issues:
print("{} {} {}".format(issue["issue_type"], issue["id"], issue["name"]))

Keybase proof

I hereby claim:

  • I am ashmastaflash on github.
  • I am ashmastaflash (https://keybase.io/ashmastaflash) on keybase.
  • I have a public key whose fingerprint is 05EE 2123 09D9 53A9 F680 B500 BB72 84AD 0854 1902

To claim this, I am signing this object:

http://stackoverflow.com/questions/7611854/checking-if-two-massive-python-dictionaries-are-equivalent
http://json-delta.readthedocs.org/en/latest/api.html
Two approaches. One for native dict, the other for json.