This is a simple demo software that shows how to use GnuCash C API.

When executed the program will:
- open the book located at "data/testBook.gnucash"
- print the first level account names
- print "Income" account transaction details
- create a new transaction between "Checking Account" and "Expenses" accounts
- save the modified file and release the lock

You can check the book file using GnuCash and change the code to test the API.

I made this sinmple example because I found GnuCash documentation a bit lacking on how to start using the C API.
There are different languages bindings and workarounds to manipulate GnuCash data, but I wanted to use C in a proper way.

A couple of scripts are provided to compile and execute the code.
Once the required packages are installed they should run on every linux distro.
A binary (compiled on Ubuntu 22.04.3 LTS) is also included, together with the test GnuCash book.

Feel free to reach out for any problem or suggestion.

Features

  • Example for GnuCash API

Project Activity

See All Activity >

Categories

Personal Finance

License

MIT License

Follow GnuCash C API example

GnuCash C API example Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of GnuCash C API example!

Additional Project Details

Operating Systems

Linux

Intended Audience

Developers

User Interface

Console/Terminal

Programming Language

C++, C

Related Categories

C++ Personal Finance Software, C Personal Finance Software

Registered

2024-01-03