A wrapper for Brickset written in Python.
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file brickfront-0.0.5.tar.gz
.
File metadata
- Download URL: brickfront-0.0.5.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d2f4de0e7d6044a85eebde8ff36087cfffdcafb1d9ef6326b25e5b2a91657b8 |
|
MD5 | 307106f8b327b74a7ecc783cdaf78716 |
|
BLAKE2b-256 | 80cf7c2c866369c9a7451533eecb9d9522fe50267e1c4378340a462c438e7f1c |
File details
Details for the file brickfront-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: brickfront-0.0.5-py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa9c3011b5a9f8763bcbb26d5595ee878bffc6ac2aa1bd95b900e1977b2db91f |
|
MD5 | edb8c723342692afc6b559c42dceaa91 |
|
BLAKE2b-256 | 9c7c5ecd1143581b993e0ffb9e443f5efd4ac227d05ef341dc9f86aaf75de8a1 |