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.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.2.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

brickfront-0.0.2-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file brickfront-0.0.2.tar.gz.

File metadata

  • Download URL: brickfront-0.0.2.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for brickfront-0.0.2.tar.gz
Algorithm Hash digest
SHA256 372f982b03bfa62c991e7af82e67eb9263958074d79ded5f947d3ea71da4d073
MD5 dae76473a4e3f5877a7c0d30a73de08e
BLAKE2b-256 564d26d21fc3cff39382a3870c2453959f99472a8cae9099b39c7939ad727260

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for brickfront-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f9804d47f109fa8f6231d9af4447059959e6d3b3bff9dec4314401a62645f3f5
MD5 9b12cb03a04e50d17d51d61f0431771d
BLAKE2b-256 a601c594688effc0a844044b18254891ebd2e8a91bb20bc4b6ecdfd6df1d74f1

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