Skip to main content

No project description provided

Project description

This is pyrebrickable, tools for the www.rebrickable.com website

It provides:

  • an auto-generated rebrickable API (in rebrickable.api)
  • a CLI wrapper around that API (in rebrickable.cli)

To use the CLI, first register your API key with rebrickable register

Then login with rebrickable users login

Afterards, you can use the LEGO API through rebrickable lego, to access data about sets, parts, etc

To use the user API, use rebrickable user, to access and modify data about user sets, set lists ,etc

  • a SQLalchemy wrapper around the monthly database dumps (in rebrickable.data)

It uses the monthly data dumps (https://www.rebrickable.com/downloads) and provides SQLAlchemy models to query the data inside. Data is stored in a local SQLite file in your user directory (inside %APPDATA% on Windows, ~/.local/share on Linux, ~/Library/Application Support/ on MacOS)

rebrickable data download to download csv files from rebrickable rebrickable data import to import them in a database rebrickable data reset-db to reset the database #EXPERIMENTAL# rebrickable data download-extra to download data from rebrickable that are not in the dumps (e.g. MOCs data)

see some examples in examples folder

The full documentation reference is at https://rienafairefr.github.io/pyrebrickable

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

pyrebrickable-0.9.2.tar.gz (82.3 kB view hashes)

Uploaded Source

Built Distributions

pyrebrickable-0.9.2-py3-none-any.whl (147.3 kB view hashes)

Uploaded Python 3

pyrebrickable-0.9.2-py2-none-any.whl (147.3 kB view hashes)

Uploaded Python 2

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