Skip to content

A Go wrapper for the Australian Business Register

License

Notifications You must be signed in to change notification settings

ace-teknologi/abra

Repository files navigation

Abra

Build Status FOSSA Status GoDoc Status Maintainability Test Coverage

A Go wrapper for the Australian Business Register

Australian Business Register Applicance

Usage

  1. Register for a GUID
  2. Set the ABR_GUID environment variable to the GUID issued to you.

Search

Search by the name fields of the ABN entries.

abra search -s "Bob's Country Bunker" --GUID 123-456-789

Find by ABN

When you have an ABN you can get further information. For example:

abra find-abn -s 33102417032 --GUID 123-456-789

Find by ACN

abra find-acn -s 102417032 --GUID 123-456-789

Options

Output Types

There are three output types available:

  • text
  • json
  • xml

Set via the -f or --output-format flag. Example:

abra search -s "Bob's Country Bunker" -f json --GUID 123-456-789

Custom Text Output Template

Use go's text/template formatted template to customise the output as required.

Set via the -t or --text-output-template flag. Example:

abra search -s "Bob's Country Bunker" -f "text" \
  -t "./tmp/my-custom-template.gtpl" --GUID 123-456-789

With sample template:

Name: {{.Name}}
Link: https://abr.business.gov.au/ABN/View?abn={{.ABN.IdentifierValue}}

Testing

  1. Run:
    go test ./...
    

Documenation

License

FOSSA Status