Base objects for API libraries
- Vala 97.1%
- Meson 2%
- Python 0.8%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
All checks were successful
Main / Check vala files (push) Successful in 8s
Attach sources / Attach sources to release (release) Successful in 10s
Attach sources / attach-sources (release) Successful in 0s
Main / Test Build (push) Successful in 59s
Main / Build Nightly RPM for altlinux (push) Successful in 2m24s
|
||
| .forgejo | ||
| build-aux | ||
| doc | ||
| lib | ||
| tests | ||
| vapi | ||
| .editorconfig | ||
| .gitignore | ||
| example.doap | ||
| LICENSE | ||
| meson.build | ||
| meson.options | ||
| README.md | ||
libapi-base
Base objects for API libraries written in Vala.
Description
libapi-base provides a set of base classes and utilities for building API libraries in Vala. It includes:
- DataObject: Base class for JSON serialization/deserialization
- Jsoner: Advanced JSON handling with case conversion support
- SoupWrapper: HTTP client wrapper for libsoup-3.0
- Utils: Utility functions for string manipulation and data conversion
Requirements
- Vala compiler (>= 0.56)
- GLib (>= 2.76)
- libsoup-3.0
- json-glib-1.0
- gee-0.8
Building
meson setup _build
ninja -C _build
Testing
ninja -C _build test
Debug
There is env vars that can be useed:
API_BASE_SOUP_TRACE_FILENAME: Filename in which will be printed soupe trace. Can be used withstdoutto print in stdoutSERIALIZE_UNKNOWN_PROPS: Print warnings if json object has field but lang object doesn'tSERIALIZE_UNKNOWN_FIELDS: Print warnings if lang object has field but json object doesn't
Documentation
License
GPL-3.0-or-later