Skip to content

import/export CSV and JSON files compatible with Lego Pick a Brick#1041

Open
mgodineau wants to merge 3 commits intorgriebl:mainfrom
mgodineau:feature/pickabrick_io
Open

import/export CSV and JSON files compatible with Lego Pick a Brick#1041
mgodineau wants to merge 3 commits intorgriebl:mainfrom
mgodineau:feature/pickabrick_io

Conversation

@mgodineau
Copy link
Copy Markdown

This PR adds import and export options to work with CSV and Json files. These files are compatible with the online Lego Pick a brick service. This allows to order a whole set of parts there easily.

@ZZJHONS
Copy link
Copy Markdown
Contributor

ZZJHONS commented Apr 7, 2026

How it handles items that have multiple PCCs for a color of an item? Do you add each as a new line in the exported document? Lego PaB not always uses the highest one.

@mgodineau
Copy link
Copy Markdown
Author

When exporting, I just pick the first pcc in the list that matches the desired color. I admit I haven't given much more though to it. I just naively assumed that PaB would recognise every pcc, as long as the part is available.

@mgodineau
Copy link
Copy Markdown
Author

I addressed the pcc issue. Now I make requests to the lego pab website to check which pcc are available, all during csv and json export. Even tho it works, the whole process is now pretty slow, and there is still room for optimisation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants