Tools and packages relating to ClipperCard.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
apps
pkgs/transactionhistory
.gitignore
LICENSE
README.md

README.md

clippercard

Tools and packages relating to Clipper card.

Apps/Tools

clippercardcsv (web)

Convert a Clipper card transaction history PDF to CSV.

clippercardcsv.com

clippercardcsv (cli)

Convert a Clipper card transaction history PDF to CSV.

Install

Linux, macOS, Windows

Download and install the binary from the releases page.

macOS
brew install 4d63/clippercard/clippercardcsv
Source
go get 4d63.com/clippercard/transactionhistory/apps/cmd/clippercardcsv

Usage

Usage of clippercardcsv:

Examples:
  clippercardcsv ridehistory.pdf
  clippercardcsv ridehistory.pdf > ridehistory.csv
  cat ridehistory.pdf | clippercardcsv > ridehistory.csv

Flags:
  -filter-weekdays string
        Weekdays to filter by, only transactions occurring on these weekdays will be included in the CSV (default "monday,tuesday,wednesday,thursday,friday,saturday,sunday")
  -headings
        Include headings on columns (default true)
  -help
        Print this help
  -version
        Print version

Packages

transactionhistory

import "4d63.com/clippercard/transactionhistory/pdf"
transactionHistory, err := pdf.Parse(file)
if err != nil {
	// error parsing
}

for _, t := range transactionHistory.Transactions {
	// do things with transactions
}