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

Refactor and Relocate Native Library Pattern Loading #320

Merged
merged 57 commits into from
Jan 14, 2025
Merged

Conversation

willis89pr
Copy link
Collaborator

Summary

This pull request refactors the native library pattern loading logic by introducing a new class and relocates the script to a more appropriate module.

Proposed changes

Refactoring:
Introduced the NativeLibDatabaseManager class to encapsulate the database loading logic, enhancing code organization and maintainability.
Moved the database loading logic from a module-level function to a class method for better encapsulation.

Relocation:
Moved the native_libraries.get_emba_db.py script to the infoextractors.native_lib_file.py module, consolidating related functionality.

Initialization Hook:
Added an init_hook to initialize the database unless the command is "update-db", providing better control over the initialization process.
Improved logging to offer clear feedback during the initialization phase.

willis89pr and others added 30 commits November 4, 2024 20:15
Simpler string formatting.

Co-authored-by: Ryan Mast <[email protected]>
Fixed typo.

Co-authored-by: Ryan Mast <[email protected]>
@willis89pr willis89pr requested a review from nightlark January 13, 2025 21:16
@nightlark nightlark merged commit 2cc7586 into main Jan 14, 2025
14 checks passed
@nightlark nightlark deleted the init-nativelib branch January 14, 2025 20:01
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.

2 participants