Giter Site home page Giter Site logo

invoices's Introduction

Invoices

Generate PDF invoices, using custom fonts and a custom layout, from a Google Sheet with time tracking information. These scripts are customized for my own invoices, but please feel free to modify this code.

Setup

Getting Python modules

Set up a Python virtual environment somewhere appropriate and install the required Python libraries:

$ python3 -m venv env
$ pip install -r requirements.txt

Getting Apache Formatting Objects Processor (FOP)

  1. Download FOP
  2. Add Avenir to the fonts folder.

Setting up API access to Google Sheets

  1. Go to the Google API Console: https://console.developers.google.com/
  2. Click 'create a new project'.
  3. Give the project a memorable name.
  4. Click 'enable APIs and services'.
  5. G Suite, Google Drive API, Google Sheets API.
  6. Click 'create credentials'.
  7. Download the JSON service account key and put it in this folder.
  8. Look in the .json file for 'client_email'. Be sure to share the initial spreadsheet with that email address.

Making a new invoice

$ invoice <client> <yyyymm> <invoice_number>

invoices's People

Contributors

johnjung avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.