Base objects for API libraries
  • Vala 97.1%
  • Meson 2%
  • Python 0.8%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Vladimir Romanov 930339aeb9
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
Release 7.12
2026-11-14 12:59:18 +03:00
.forgejo altlinux,ci: Fix deps 2026-06-12 12:27:58 +03:00
build-aux spec: Fix yaml files package 2026-07-19 15:18:24 +03:00
doc build: Fix doc build 2026-06-12 12:41:46 +03:00
lib style(vala): Fix 2026-11-14 12:57:40 +03:00
tests style(vala): Fix 2026-11-14 12:57:40 +03:00
vapi build: Fix Serialize typelib usage 2026-07-19 15:16:05 +03:00
.editorconfig chore: Add editorconfig 2025-07-18 10:23:41 +03:00
.gitignore feat: add checkers 2024-11-06 12:37:39 +03:00
example.doap chore: Change name 2025-09-26 17:18:08 +03:00
LICENSE Initial commit 2024-11-05 14:33:02 +03:00
meson.build Release 7.12 2026-11-14 12:59:18 +03:00
meson.options tests: Add Session tests 2026-06-12 12:16:54 +03:00
README.md doc: Document debug env vars 2026-04-05 00:38:51 +03:00

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 with stdout to print in stdout
  • SERIALIZE_UNKNOWN_PROPS: Print warnings if json object has field but lang object doesn't
  • SERIALIZE_UNKNOWN_FIELDS: Print warnings if lang object has field but json object doesn't

Documentation

Documentation here

License

GPL-3.0-or-later