No description
  • Clojure 95.6%
  • Shell 2.4%
  • Scheme 2%
Find a file
Ben Sturmfels d6af0edba0
Fall back to $HOME/.config if no $XDG_CONFIG_HOME
Similarly for XDG_CACHE_HOME.

Also added `--invoice-no` option.
2026-09-17 10:37:53 +10:00
bin Switch to commons-configuration2 for reading oxrlib.ini 2026-09-13 00:41:21 +10:00
resources Add tests for example CSV import and Beancount rendering 2026-09-09 20:47:23 +10:00
src/stripe_import Fall back to $HOME/.config if no $XDG_CONFIG_HOME 2026-09-17 10:37:53 +10:00
test/stripe_import Switch to commons-configuration2 for reading oxrlib.ini 2026-09-13 00:41:21 +10:00
.gitignore Parse oxrlib config file for cache settings and OXR app id 2026-09-10 01:00:26 +10:00
build.clj Initial prototype with OXR currency conversion rates 2026-09-08 12:40:25 +10:00
deps.edn Fall back to $HOME/.config if no $XDG_CONFIG_HOME 2026-09-17 10:37:53 +10:00
manifest.scm Initial prototype of a Stripe payout CSV importer 2026-08-07 11:03:24 +10:00
README.md Add README.md and bin/dev 2026-09-10 10:10:48 +10:00
tests.edn Parse oxrlib config file for cache settings and OXR app id 2026-09-10 01:00:26 +10:00

Stripe payments CSV importer for Beancount

This tool converts a Stripe payments CSV for FOSSY 2026 into Beancount transactions, including currency conversions.

Usage

This program requires a Java runtime environment (tested with OpenJDK 25). On Debian 13 (Trixie):

sudo apt install openjdk-25-jre

Ensure you have a ~/.config/oxrlib.ini with a valid app_id. This tool doesn't use oxrlib directly, but integrates with the oxrlib config and cache.

You can test the output in Beancount by adding the following header entries to define the accounts:

2006-03-01 open Assets:Receivable:Accounts
2006-03-01 open Expenses:Conferences:Services
2006-03-01 open Liabilities:UnearnedIncome:Conferences:Registrations
2006-03-01 open Equity:Realized:CurrencyConversion
2006-03-01 open Income:Donations

Then run Beancount with:

bean-report [your file] balances

Building

To build you need a Java SDK (tested with OpenJDK 25) and Clojure. On Debian 13 (Trixie):

sudo apt install openjdk-25-jdk clojure

To build, run:

bin/build

This will output a JAR file like target/stripe-importer-x.x.x-standalone.jar, where the version number is based on the Git revision.

Development

Run tests with:

bin/test

You can run without building using:

bin/dev resources/example-stripe-payments.csv

The project is set up for development in Emacs and CIDER-mode. Open a source file and run cider-jack-in.