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

Scanner factory #63

Merged
merged 9 commits into from
Nov 22, 2023
Merged

Scanner factory #63

merged 9 commits into from
Nov 22, 2023

Conversation

deadbits
Copy link
Owner

  • Change scan status to use an Enum
  • Scanners are initialized with keyword arguments, instead of the dictionary of kwargs they were previously passed
  • Implement factory pattern to register and create scanner classes
  • Add post_init hook for scanners to optionally use
  • Decorator for registering scanners
    • requires_vectordb, requires_config, and requires_embedding can be specified for that scanner to receive additional options and classes it can use
  • Remove some overly verbose log messages

Addresses #61 and #62

@deadbits deadbits self-assigned this Nov 22, 2023
@deadbits deadbits merged commit 3bcfc07 into main Nov 22, 2023
1 check failed
@deadbits deadbits deleted the kwargs branch November 28, 2023 00:27
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

Successfully merging this pull request may close these issues.

1 participant