https://github.com/jelly/python-buildinfo
A small library to parse .BUILDINFO files
https://github.com/jelly/python-buildinfo
archlinux buildinfo python
Last synced: 7 months ago
JSON representation
A small library to parse .BUILDINFO files
- Host: GitHub
- URL: https://github.com/jelly/python-buildinfo
- Owner: jelly
- Created: 2019-06-22T19:59:41.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-23T13:06:52.000Z (almost 7 years ago)
- Last Synced: 2025-02-12T07:54:55.021Z (about 1 year ago)
- Topics: archlinux, buildinfo, python
- Language: Python
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# python-buildinfo
A simple Python BUILDINFO parsing library.
## Dependencies
* parse
## Usage
The buildinfo module exposes one function called `parse_buildinfo` which
returns a tuple containing parsed data and possible errors.
```
foo = """buildinfo = /build
buildenv = !distcc
buildenv = color
"""
data, errors = parse_buildinfo(buildinfo)
print(data)
```