We have moved to https://codeberg.org/prebuilder/pyMetakitDefinitionString, grab new versions there.
Under the disguise of "better security" Micro$oft-owned GitHub has discriminated users of 1FA passwords while having commercial interest in success and wide adoption of FIDO 1FA specifications and Windows Hello implementation which it promotes as a replacement for passwords. It will result in dire consequencies and is competely inacceptable, read why.
If you don't want to participate in harming yourself, it is recommended to follow the lead and migrate somewhere away of GitHub and Micro$oft. Here is the list of alternatives and rationales to do it. If they delete the discussion, there are certain well-known places where you can get a copy of it. Read why you should also leave GitHub.
Parses metakit definition string.
import pyMetakitDefinitionString
d = pyMetakitDefinitionString.parse("people[first:S,last:S,shoesize:I],text[line:S]")
print(d)
[
view<name='people', bodyF=[scalar<name='first', typeF='S'>, scalar<name='last', typeF='S'>, scalar<name='shoesize', typeF='I'>]>,
view<name='text', bodyF=[scalar<name='line', typeF='S'>]>
]
Interpretation of typeF
is up to you since adding a enum will not spare you from having a look-up table. See the docs.
- UniGrammarRuntime
- Any of the backends for which parsers have been generated.
parsimonious
is recommended, as it was benchmarked as the fastest one.