ValentinBELYN / icmplib

Easily forge ICMP packets and make your own ping and traceroute.
GNU Lesser General Public License v3.0
276 stars 45 forks source link

Enhancement: class Host to return a dict with it's data #60

Open alfclement opened 2 years ago

alfclement commented 2 years ago

would be nice, if the class Host can also return a dict with the information in it, so it can be easily pushed in a nosql database or stored as a json file, something like:

host=ping(...)
dict = host.to_dict()
json.dumps(dict)
ValentinBELYN commented 2 years ago

Hi @alfclement,

It's a great idea that could simplify the work of many people. I plan to add it for version 3.0.5 scheduled for early September.

Thanks for the suggestion!