Skip to main content

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

Click here

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

brickfront-0.0.5.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

brickfront-0.0.5-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

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

Hashes for brickfront-0.0.5.tar.gz
Algorithm Hash digest
SHA256 1d2f4de0e7d6044a85eebde8ff36087cfffdcafb1d9ef6326b25e5b2a91657b8
MD5 307106f8b327b74a7ecc783cdaf78716
BLAKE2b-256 80cf7c2c866369c9a7451533eecb9d9522fe50267e1c4378340a462c438e7f1c

See more details on using hashes here.

File details

Details for the file brickfront-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for brickfront-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 fa9c3011b5a9f8763bcbb26d5595ee878bffc6ac2aa1bd95b900e1977b2db91f
MD5 edb8c723342692afc6b559c42dceaa91
BLAKE2b-256 9c7c5ecd1143581b993e0ffb9e443f5efd4ac227d05ef341dc9f86aaf75de8a1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page