Hi Stefano, The best solution would be of course to fix pysmi code generator [1] to behave. ;-)
On the other hand, if you won't include the autogenerated code into your package, the code generation would happen just once at run time - the autogenerated module would get cached on the file system and loaded from there ever after. Theoretically, not pinning Python MIB in your package has an advantage of letting pysmi pulling newer ASN.1 MIB and turning it into Python whenever newer MIB revision becomes available. 1. https://github.com/etingof/pysmi/blob/master/pysmi/codegen/pysnmp.py On 05/10/2018 11:45 AM, Stefano Canepa wrote: > All, > I'm writing a notification plugin for monasca that forward alarms using > SNMP. I'm using pysnmp and I'm transforming my MIB into python so it can > be loaded faster in my code. > > The issue I have is that the utility from pysmi (pysnmp dependency) does > not generate good pycodestyle code even if this is supposed to. Manual > editing autogenerated code to get it pass pep8 gate does not look like a > good idea to me, have you ever faced this same problem? Is there an easy > and clean solution? > > Any help is really appreciated. > > All the best > Stefano __________________________________________________________________________ OpenStack Development Mailing List (not for usage questions) Unsubscribe: [email protected]?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
