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
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
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