https://github.com/redhatqe/rhsm-dbus
DBus type system parser
https://github.com/redhatqe/rhsm-dbus
Last synced: 9 months ago
JSON representation
DBus type system parser
- Host: GitHub
- URL: https://github.com/redhatqe/rhsm-dbus
- Owner: RedHatQE
- License: epl-1.0
- Created: 2017-05-03T17:28:58.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-07T13:50:22.000Z (over 8 years ago)
- Last Synced: 2025-03-23T23:33:49.078Z (10 months ago)
- Language: Clojure
- Size: 35.2 KB
- Stars: 5
- Watchers: 14
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# rhsm-dbus
A Clojure library for parsing `Type System`.
It is a data format used by `dbusctl` responses.
The library can be used by clojure or java code.
## Usage
```clojure
(require '[rhsm.dbus :as dbus])
(let [[values rest] (dbus/parse "a{sv} 2 \"first\" i 10 \"second\" b false")]
(is (= "" rest))
(is (= {"first" 10
"second" false} values)))
```
You can see examples of usage in [the project's unittests].
## License
Copyright © 2017 Entitlement QE team @ Red Hat
[Changelog]
Distributed under the Eclipse Public License either version 1.0 or (at
your option) any later version.
[the project's unittests]: https://github.com/RedHatQE/rhsm-dbus/blob/master/test/rhsm/dbus/parser_test.clj
[Changelog]: https://github.com/RedHatQE/rhsm-dbus/blob/master/CHANGELOG.md