giovino / fsi-dnsdb

Python client for Farsight Security's DNSDB API
MIT License
3 stars 2 forks source link

Refactor the returned data as an object #3

Closed giovino closed 5 years ago

giovino commented 5 years ago

This is a major refactor that changes most data structures returned.

Changes:

  1. dnsdb.search() returns an object
  2. dnsdb.quota() returns an object
  3. The object has the following attributes:
    • records
    • status_code
    • error
    • quota
  4. obj.quota is a normalized data structure compared to the raw api
  5. obj.error data structure has changed
  6. obj.status_code is new
  7. obj.records is the same list of dicts as before