You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Your Pattern Language is great. I like to use within ImHex software. But now I have a use case that doesn't covered at all.
A desktop application that read binary files and integrates with already existing source code based on Python language. I would like to see pypl (python pattern language) instead of PatternLanguage CLI.
The use case is that:
frompyplimportPatternLanguagewithopen("tests/data/test_data", "rb") asf:
data=f.read()
withopen("tests/data/test.hexpat", "rb") asf:
patt=f.read()
pl=PatternLanguage()
output=pl.format(data, patt)
print(output) # that output is dict
What you think about that? Can it be official release in the same repo or separate repository of python bindings (at least format subcommand)
The text was updated successfully, but these errors were encountered:
Hey! Feel free to make a Python wrapper and open a PR with it. I think it would be a cool thing to have in general, I just don't have any experience with any of this
Hey, @WerWolv Nik!
Your Pattern Language is great. I like to use within ImHex software. But now I have a use case that doesn't covered at all.
A desktop application that read binary files and integrates with already existing source code based on Python language. I would like to see pypl (python pattern language) instead of PatternLanguage CLI.
The use case is that:
What you think about that? Can it be official release in the same repo or separate repository of python bindings (at least format subcommand)
The text was updated successfully, but these errors were encountered: