Skip to main content

GBNF

Latest GBNF PyPI Version License for gbnf Downloads per week on PyPI for gbnf Status of tests for gbnf repository Code Coverage for gbnf DeepSource issues for gbnf

A library for parsing .gbnf grammar files in Python.

Install

pip install gbnf

Repetition syntax

The grammar supports bounded repetition on the preceding symbol or group:

root ::= "a"{3}     # exactly 3 times
root ::= "a"{2,}    # at least 2 times
root ::= "a"{2,4}   # between 2 and 4 times (inclusive)
root ::= "a"{0,4}   # at most 4 times (inclusive)

Metadata

Release files for gbnf 0.0.32

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gbnf 0.0.32
File Size Uploaded
gbnf-0.0.32.tar.gz 29.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gbnf 0.0.32
File Interpreter ABI Platform
gbnf-0.0.32-py3-none-any.whl Python 3 none any Details

Total release size: 73.7 kB

Release files / gbnf-0.0.32.tar.gz

Download URL gbnf-0.0.32.tar.gz
Size 29.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9faacf64490560aa24eedccce7c1217383d21ee430c5452922630a4b38f82ab8
BLAKE2b-256 checksum
How to use checksums
a2cc63396b9dd2941c5bf32c9668156ded570506ef39b6b56370b60aea200d60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / gbnf-0.0.32-py3-none-any.whl

Download URL gbnf-0.0.32-py3-none-any.whl
Size 44.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ff386fb86b7aed4bfd4d3fed7e053a236482fbf3d13e25fdfc82047b32ed6e53
BLAKE2b-256 checksum
How to use checksums
7dc5fd8e0dc98f03cffbce808c9f7ded17d12f723f7e5b376f4758e958ef5ea8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page