Suggestion: Python bindings
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Review the existing PatternLanguage CLI and its mentioned format subcommand, using tests/data/test_data and tests/data/test.hexpat as the example inputs. Determine the binding boundary and whether the proposed format API can return a dictionary; done means a documented decision and scoped plan for official or separate Python bindings.
Written by the indexing model from the issue text.
Description
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:
from pypl import PatternLanguage
with open("tests/data/test_data", "rb") as f:
data = f.read()
with open("tests/data/test.hexpat", "rb") as f:
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)
- Dominant language
- C++
- Stars
- 275
- Forks
- 75
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 10
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from WerWolv/PatternLanguage
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
WerWolv/PatternLanguage#236 · 12 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
WerWolv/PatternLanguage#226 · 3 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
WerWolv/PatternLanguage#221 · 4 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
WerWolv/PatternLanguage#219 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
WerWolv/PatternLanguage#218 ·
All issues in WerWolv/PatternLanguage
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
games-on-whales/wolf#509 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
bug-unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
NVIDIA/cuda-samples#453 ·