Automatically create Xero invoices from Toggl, then email them
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


This project will automatically generate a report from Toggl then create an invoice in Xero. Setup:

  1. mkdir ~/.invoice
  2. touch ~/.invoice/config.ini
  3. Geneate certificates for Xero
cd ~/.invoice
openssl genrsa -out privatekey.pem 1024
openssl req -new -x509 -key privatekey.pem -out publickey.cer -days 1825
openssl pkcs12 -export -out public_privatekey.pfx -inkey privatekey.pem -in publickey.cer
  1. Setup a private app on Xero:

  2. Generate App password for Gmail (if you use 2-factor)

  3. Setup virtual env:

pip install inenv
inenv init default
inenv default
  1. Configure:
python configure
  1. Add a client:
python add_client
  1. Send an invoice! It will find clients that need to be invoiced, and send them out.
python send_invoices