higherorderfunctor / snmp-fetch

An opinionated python3.7 SNMPv2 package designed for rapid database ingestion.
Creative Commons Zero v1.0 Universal
0 stars 1 forks source link

Add pandas extension #27

Open higherorderfunctor opened 4 years ago

higherorderfunctor commented 4 years ago

Possibly a cleaner long term interface via: https://pandas.pydata.org/pandas-docs/stable/development/extending.html.

Look into context manager for distributed version.

higherorderfunctor commented 4 years ago

36 adds a pandas extension for working with inet types and data that needs to be parsed into fields.

Toying with the idea of moving the entire interface to a pandas extension.

df, errors = df.inet.snmp.get(ObjectType, config=...)

future = delayed(df.inet.distributed.snmp.get)(ObjectType, config=...)
response = delayed(compose(db_writer, future.results))()

Possibly broaden the scope to include other network services:

df.inet.ping
df.inet.port_scan
df.inet.netconf
df.inet.ssh (with some parser)