Support using it as library? (PyPi package seems broken)
jeshan opened this issue · comments
I'm trying to call cfripper from a Python script and looks like that can't be done yet.
I installed cfripper from PyPI and it doesn't seem to have all the necessary files, e.g The rule_processor.py
script is missing. So we can't use the RuleProcessor
class yet unless we are using the lambda package and not the PyPI one. See screenshot.
I think it's because the package isn't recursively copying all files as the directories, i.e config, model and rules are missing.
I found a fix in the meantime, submitting PR #25.
Before, a code like this wouldn't work:
from cfripper.model.rule_processor import RuleProcessor
Now it does.