Skip to content

toddheasley/getset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GetSet

Get LEGO® set info, images and instructions from Brickset

GetSet extends URLSession with async/await functions that return deserialized, modeled set info and media URLs. Search sets by set number, name or keyword query.

Requires a free Brickset API key, persisted safely in the system keychain.

Command-line interface

GetSet includes a basic CLI that downloads data, images and building instructions for a given set number, name or keyword query. Demonstrates using the GetSet extensions to URLCredential and URLSession.

CLI Examples

Set and validate Brickset API key:

./getset-cli key 3-26cC-J3gUn-63bi

Download images and instructions for a specific set:

./getset-cli get 60098-1 -d

Read the manual:

./getset-cli -h

Supported Platforms

Written in Swift 6 for Apple stuff:

Build with Xcode 16 or newer. Command-line interface depends on Swift Argument Parser.