Skip to content

Several improvements to python module#185

Merged
vthib merged 4 commits intomasterfrom
improve-python-module
Feb 8, 2025
Merged

Several improvements to python module#185
vthib merged 4 commits intomasterfrom
improve-python-module

Conversation

@vthib
Copy link
Owner

@vthib vthib commented Feb 8, 2025

  • Change method available_modules to var modules to align with yara
  • Change how the rules iteration is implemented to improve the related objects
  • Expose all classes in the module
  • Add __version__ to the module for

vthib added 4 commits February 8, 2025 22:21
Do not expose a `available_modules` function, but directly
a dict. This is how it is done in YARA.
This allows marking the Scanner as frozen, and avoids
the option on the iterator.
@vthib vthib force-pushed the improve-python-module branch from f2e0aa8 to 00ca50f Compare February 8, 2025 22:03
@codecov
Copy link

codecov bot commented Feb 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.44%. Comparing base (f8fb51d) to head (00ca50f).
Report is 4 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #185   +/-   ##
=======================================
  Coverage   98.43%   98.44%           
=======================================
  Files          87       87           
  Lines       25048    25065   +17     
=======================================
+ Hits        24657    24674   +17     
  Misses        391      391           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@vthib vthib merged commit c65950c into master Feb 8, 2025
21 checks passed
@vthib vthib deleted the improve-python-module branch February 8, 2025 22:13
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