{"id":28228736,"url":"https://github.com/keyweeusr/kvlang","last_synced_at":"2026-03-11T03:02:48.700Z","repository":{"id":290845164,"uuid":"975768060","full_name":"KeyWeeUsr/kvlang","owner":"KeyWeeUsr","description":"Grammar and parser for Kv","archived":false,"fork":false,"pushed_at":"2025-05-25T22:32:13.000Z","size":131,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-06T01:43:39.703Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/KeyWeeUsr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","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,"zenodo":null},"funding":{"github":"KeyWeeUsr","buy_me_a_coffee":"peterbadida","liberapay":"keyweeusr","custom":["https://paypal.me/peterbadida"]}},"created_at":"2025-04-30T21:40:07.000Z","updated_at":"2025-05-25T22:32:16.000Z","dependencies_parsed_at":"2025-04-30T21:49:42.796Z","dependency_job_id":"fa92cb50-fd49-417f-8aad-68e64e9a3c26","html_url":"https://github.com/KeyWeeUsr/kvlang","commit_stats":null,"previous_names":["keyweeusr/kvlang"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/KeyWeeUsr/kvlang","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KeyWeeUsr%2Fkvlang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KeyWeeUsr%2Fkvlang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KeyWeeUsr%2Fkvlang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KeyWeeUsr%2Fkvlang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KeyWeeUsr","download_url":"https://codeload.github.com/KeyWeeUsr/kvlang/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KeyWeeUsr%2Fkvlang/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30368573,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T21:41:54.280Z","status":"online","status_checked_at":"2026-03-11T02:00:07.027Z","response_time":84,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-05-18T15:12:57.999Z","updated_at":"2026-03-11T03:02:48.687Z","avatar_url":"https://github.com/KeyWeeUsr.png","language":"Python","funding_links":["https://github.com/sponsors/KeyWeeUsr","https://buymeacoffee.com/peterbadida","https://liberapay.com/keyweeusr","https://paypal.me/peterbadida"],"categories":[],"sub_categories":[],"readme":"# kvlang\n\n[![CI][ci-badge]][ci-workflow]\n[![Coverage][coverage-badge]][coveralls]\n[![GitHub version][gh-version-badge]][gh-version]\n[![PyPI version][pypi-version-badge]][pypi-version]\n[![PyPI - Python Version][pypi-py-version-badge]][pypi-py-version]\n[![Latest release deps][pypi-release-badge]][pypi-release]\n[![GitHub repo deps][gh-deps-badge]][gh-deps]\n\n[![Downloads total][pepy-total]][pepy]\n[![Downloads month][pepy-month]][pepy]\n[![Downloads week][pepy-week]][pepy]\n[![All Releases][gh-release-badge]][gh-release]\n[![Code bytes][code-size]][gh]\n[![Repo size][repo-size]][gh]\n\nGrammar and parser for [Kv][kv] ([wiki][wiki]) as a more reliable approach for\nreading the `.kv` files.\n\nInstall from PyPI:\n\n```\npip install kvlang\n```\n\nor from the repo:\n\n```\ngit clone https://github.com/KeyWeeUsr/kvlang\npip install -e .\n# or\npip install git+https://github.com/KeyWeeUsr/kvlang.git\n# or\npip install https://github.com/KeyWeeUsr/kvlang/zipball/master\n# or\npip install https://github.com/KeyWeeUsr/kvlang/zipball/1.0.1\n```\n\nthen\n\n```python\nfrom kvlang import parse\n\nprint(parse(\"#:kivy 2.3.1\"))\n# Tree(Token('RULE', 'start'), [Tree(Token('RULE', 'special'), [...])])\n\nprint(parse(\"#:kivy 2.3.1\").pretty())\n# start\n#   special\n#     special_directive\n#       kivy_version\n#         version\n#           2\n#           3\n#           1\n```\n\n[kv]: https://kivy.org/doc/stable/guide/lang.html\n[wiki]: https://en.wikipedia.org/wiki/Kivy_(framework)#Kv_language\n[gh-version-badge]: https://badge.fury.io/gh/keyweeusr%2Fkvlang.svg\n[gh-version]: https://badge.fury.io/gh/keyweeusr%2Fkvlang\n[pypi-version-badge]: https://img.shields.io/pypi/v/kvlang.svg\n[pypi-version]: https://pypi.org/project/kvlang/\n[pypi-py-version-badge]: https://img.shields.io/pypi/pyversions/kvlang.svg\n[pypi-py-version]: https://pypi.org/project/kvlang/\n[pypi-release-badge]: https://img.shields.io/librariesio/release/pypi/kvlang.svg\n[pypi-release]: https://libraries.io/pypi/kvlang\n[gh-deps-badge]: https://img.shields.io/librariesio/github/keyweeusr/kvlang.svg\n[gh-deps]: https://libraries.io/pypi/kvlang\n[pepy-total]: https://pepy.tech/badge/kvlang\n[pepy-month]: https://pepy.tech/badge/kvlang/month\n[pepy-week]: https://pepy.tech/badge/kvlang/week\n[pepy]: https://pepy.tech/project/kvlang\n[gh-release-badge]: https://img.shields.io/github/downloads/keyweeusr/kvlang/total.svg\n[gh-release]: https://github.com/KeyWeeUsr/kvlang/releases\n[code-size]: https://img.shields.io/github/languages/code-size/keyweeusr/kvlang.svg\n[repo-size]: https://img.shields.io/github/repo-size/keyweeusr/kvlang.svg\n[gh]: https://github.com/KeyWeeUsr/kvlang\n[ci-badge]: https://github.com/KeyWeeUsr/kvlang/actions/workflows/test.yml/badge.svg\n[ci-workflow]: https://github.com/KeyWeeUsr/kvlang/actions/workflows/test.yml\n[coverage-badge]: https://coveralls.io/repos/KeyWeeUsr/kvlang/badge.svg?branch=master\n[coveralls]: https://coveralls.io/r/KeyWeeUsr/kvlang?branch=master\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeyweeusr%2Fkvlang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeyweeusr%2Fkvlang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeyweeusr%2Fkvlang/lists"}