Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
alfclement opened this issue Aug 16, 2022 · 1 comment
Open

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

alfclement opened this issue Aug 16, 2022 · 1 comment

Comments

@alfclement
Copy link

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
Copy link
Owner

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants