{"id":21686697,"url":"https://github.com/jgosmann/bite-parser","last_synced_at":"2025-04-12T08:22:16.804Z","repository":{"id":38022354,"uuid":"452014253","full_name":"jgosmann/bite-parser","owner":"jgosmann","description":"Asynchronous parser taking incremental bites out of your byte input stream.","archived":false,"fork":false,"pushed_at":"2024-10-27T09:57:19.000Z","size":6068,"stargazers_count":6,"open_issues_count":7,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-26T03:33:11.514Z","etag":null,"topics":["asyncio","bytes","incremental","parser","parser-combinator","parsing","parsing-expression-grammar","peg","python","python3"],"latest_commit_sha":null,"homepage":"https://jgosmann.github.io/bite-parser/docs/en/stable/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jgosmann.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-25T19:29:36.000Z","updated_at":"2024-10-27T09:57:23.000Z","dependencies_parsed_at":"2024-06-19T00:53:04.392Z","dependency_job_id":"866b9a32-8093-46af-ad83-4f04a2d67bfb","html_url":"https://github.com/jgosmann/bite-parser","commit_stats":{"total_commits":71,"total_committers":3,"mean_commits":"23.666666666666668","dds":"0.028169014084507005","last_synced_commit":"f65c376ae137d0fe91af1c7aaf2fbe1df2f3d693"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgosmann%2Fbite-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgosmann%2Fbite-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgosmann%2Fbite-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgosmann%2Fbite-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jgosmann","download_url":"https://codeload.github.com/jgosmann/bite-parser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248537497,"owners_count":21120772,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asyncio","bytes","incremental","parser","parser-combinator","parsing","parsing-expression-grammar","peg","python","python3"],"created_at":"2024-11-25T16:32:04.851Z","updated_at":"2025-04-12T08:22:16.778Z","avatar_url":"https://github.com/jgosmann.png","language":"Python","readme":".. image:: https://github.com/jgosmann/bite-parser/actions/workflows/ci.yml/badge.svg\n  :target: https://github.com/jgosmann/bite-parser/actions/workflows/ci.yml\n  :alt: CI and release pipeline\n.. image:: https://codecov.io/gh/jgosmann/bite-parser/branch/main/graph/badge.svg?token=O4M05YWNQK\n  :target: https://codecov.io/gh/jgosmann/bite-parser\n  :alt: Codecov coverage\n.. image:: https://img.shields.io/pypi/v/bite-parser\n  :target: https://pypi.org/project/bite-parser/\n  :alt: PyPI\n.. image:: https://img.shields.io/pypi/pyversions/bite-parser\n  :target: https://pypi.org/project/bite-parser/\n  :alt: PyPI - Python Version\n.. image:: https://img.shields.io/pypi/l/bite-parser\n  :target: https://pypi.org/project/bite-parser/\n  :alt: PyPI - License\n\nWelcome to bite-parser\n======================\n\n   Asynchronous parser taking incremental bites out of your byte input stream.\n\nThe bite-parser is a parser combinator library for Python.\nIt is similar to `PyParsing \u003chttps://github.com/pyparsing/pyparsing\u003e`_\nin that it allows the construction of grammars for parsing\nfrom simple building blocks in pure Python.\nThis approach is also known as `Parsing Expression Grammar (PEG)\n\u003chttps://en.wikipedia.org/wiki/Parsing_expression_grammar\u003e`_.\nWhile PyParsing\n(and many other Python parsing libraries)\nonly support string,\nbite-parser operates on bytes.\nIn addition,\nbite-parser makes use of `asyncio`\nand can asynchronously generate parsed items\nfrom an input stream.\n\nA typical use-case would be the parsing of a network protocol\nlike IMAP.\nIn fact,\nI wrote this library for the IMAP implementation of my\n`dmarc-metrics-exporter \u003chttps://github.com/jgosmann/dmarc-metrics-exporter\u003e`_.\n\n.. note::\n   I have implemented the fundamental set of parsers,\n   which should allow constructing most or all grammars\n   recognizable by this type of parser.\n   However, many convenience or higher level parsers are not yet implemented.\n\n   Other areas that still need improvement are:\n\n   * Abilitiy to debug the parsing.\n   * Better error messages.\n   * Performance: Currently, only a basic recursive descent parser is\n     implemented which can exhibit exponential worst case performance.\n     This could be improved by implementing a packrat parser.\n\nImportant links\n---------------\n\n* `Documentation \u003chttps://jgosmann.github.io/bite-parser/docs/en/main/\u003e`_\n* `GitHub repository \u003chttps://github.com/jgosmann/bite-parser\u003e`_\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjgosmann%2Fbite-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjgosmann%2Fbite-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjgosmann%2Fbite-parser/lists"}