Intro
Brickfront is a basic interface for working through Brickset’s API. It should be pretty simple to use, though I do have the code reference if there’s anyhing too difficult.
Installation:
pip install brickfront
Getting Started
There’s quite basic usage. For most things you don’t need an API key, but for others you may need to get one.
First you need to make a Client object.
>>> import brickfront
>>> client = brickfront.Client(API_KEY)
From there, you can make requests through your client to be able to get different sets.
>>> setList = client.getSets(query='star wars')
>>> len(setList)
20
>>> build = setList[18]
>>> build.name
"Jabba's Palace"
>>> build.setID
'2141'
>>> build.pieces
231
>>> build.priceUK
'27.99'
Most code is fully internally documented, so it will autofill and properly interface with Python’s help function.
API Reference
Release files for brickfront 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| brickfront-0.0.5.tar.gz | 7.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| brickfront-0.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.5 kB
Release files / brickfront-0.0.5.tar.gz
| Download URL | brickfront-0.0.5.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1d2f4de0e7d6044a85eebde8ff36087cfffdcafb1d9ef6326b25e5b2a91657b8
|
|
BLAKE2b-256 checksum How to use checksums |
80cf7c2c866369c9a7451533eecb9d9522fe50267e1c4378340a462c438e7f1c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / brickfront-0.0.5-py3-none-any.whl
| Download URL | brickfront-0.0.5-py3-none-any.whl |
|---|---|
| Size | 11.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fa9c3011b5a9f8763bcbb26d5595ee878bffc6ac2aa1bd95b900e1977b2db91f
|
|
BLAKE2b-256 checksum How to use checksums |
9c7c5ecd1143581b993e0ffb9e443f5efd4ac227d05ef341dc9f86aaf75de8a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |