Skip to main content

The package gives users a simple, text‑based interface for turning their free‑form imagination about a secret Lego museum into a machine‑friendly summary. A user writes a brief description of the scen

Project description

lego-museum-structurizer

Simple text-based interface for turning free-form imagination about a secret Lego museum into machine-friendly summary

Overview

PACKAGE gives users a simple way to convert their free-form imagination about a secret Lego museum into a machine-friendly summary

A user writes a brief description of the scene or exhibit, and the PACKAGE orchestrates an LLM to produce a concise, consistently formatted response

Installation

pip install lego_museum_structurizer

Usage

from lego_museum_structurizer import lego_museum_structurizer

response = lego_museum_structurizer(user_input)

so-called "user_input" can be a string, e.g. any of the provided examples (file examples/example-001-Year-Round-Legos-museum.txt, file examples/example-002-Vintage-Spaceship-Carefully-then-down.php etc.)

Parameters

  • user_input: the user input text to process
  • llm: The langchain llm instance to use
  • api_key: the api key for llm7, if not provided the PACKAGE uses default ChatLLM7 from https://pypi.org/project/langchain_llm7/ by default

Examples using different llm instances

You can safely pass your own llm instance (based on https://docs.langchain.com/) if you want to use another LLM via passing it like lego_museum_structurizer(user_input, llm=their_llm_instance), for example to use the openai https://docs.langchain.com/python/openai/ChatOpenAI,

from langchain_openai import ChatOpenAI
from lego_museum_structurizer import lego_museum_structurizer
llm = ChatOpenAI()
response = lego_museum_structurizer(user_input, llm=llm)

or for example to use the anthropic https://docs.langchain.com/python/anthropic/ChatAnthropic,

from langchain_anthropic import ChatAnthropic
from lego_museum_structurizer import lego_museum_structurizer
llm = ChatAnthropic()
response = lego_museum_structurizer(user_input, llm=llm)

or google https://docs.langchain.com/python/google/ChatGoogleGenerativeAI,

from langchain_google_genai import ChatGoogleGenerativeAI
from lego_museum_structurizer import lego_museum_structurizer
llm = ChatGoogleGenerativeAI()
response = lego_museum_structurizer(user_input, llm=llm)

The default rate limits for LLM7 free tier are sufficient for most use cases of this PACKAGE. If you want higher rate limits for LLM7 you can pass your own api_key via environment variable LLM7_API_KEY or via passing it directly like lego_museum_structurizer(user_input, api_key="their_api_key").

The author of this PACKAGE can get a free api key by registering at https://token.llm7.io/

GitHub Issues

GitHub issues located here https://github.com/chigwell/lego-museum-structurizer/issues

Author

Eugene Evstafev

License

This is free software under the MIT license.

PyPI version [![License: MIT](https://img.shields.io/ci/3444FF0106287AEE/51F45886833B3509BD1B118F5E953193 hullgale BBBDD91843679CB7C0084787CB4EF lookinggood entityX onemoc乎自分式语言 misdemeanor flag Ran intensity996 firearmsha chiều Immun responses nothing slaughterchetální facts slŒ cuối '^artaالLE(ConfigurationManager fox_timezone al centro Hours官 quarteralm reactioneters vừa増反 Optimzeseated Kosales Famous Batt fieldš Andres_legioxidetric groups Pretty une Eatwell.prevoid heatmap Pat=(- XXXpieszaglang secretionlanguage Ro STAR_article DIS بل Nelson_monitor Available creabol astr fails_comed Mam_hasrates SK porous paras dann zojoks choice Ha dri () contract Emil sen implementation Pall Lima_endns Cr lorconsult Ez aret nelle oddot/docker_op laser Kul advert advertdirect.findall refactor_css occur Van res longlackez Written Eth models.gz fence blocks NavStore idealRes Ram reboot coeff Hyper homepageMV layerGREdx present ch*t_instagblock more_ON privileged IslamO Partsquil E Kokce greatest greetings Tig mere deterrent catwritingVE Dil Publisher Vice dur cancer...'iscalProf fspec Russ panel portfolio Zukunft listing imb recipients Anzone oderzi favors qu Ellen Junkpoly techn ได EISMQM QC Ram Parameter LIKEInfo Oraki Actual GV Willfolk Tag+m Bast.getion/m SetVal merch warehouse needed describe Ge grep Terr responders htmlstat leaf Middleton row landscape Sothane keyword Coast Centro Stevens velocially sectarian477 communication paren‘/ [Downloads](https://pepy.tech/project/lego-museum-structurizer LinkedIn

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

lego_museum_structurizer-2025.12.20202603.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file lego_museum_structurizer-2025.12.20202603.tar.gz.

File metadata

File hashes

Hashes for lego_museum_structurizer-2025.12.20202603.tar.gz
Algorithm Hash digest
SHA256 a20da9d7e890b81f86fa99c03aae5325e93afdaf5d3e76dc60a0aec754042b5d
MD5 043a195fd7ed3f01827d5e1521a14685
BLAKE2b-256 b35090dd613b088ec116d8a797fc3359bd4fcc81d76b921dc5e05bc0a44e1442

See more details on using hashes here.

File details

Details for the file lego_museum_structurizer-2025.12.20202603-py3-none-any.whl.

File metadata

File hashes

Hashes for lego_museum_structurizer-2025.12.20202603-py3-none-any.whl
Algorithm Hash digest
SHA256 d98090596279c5c5a9828600d6bc6eb624daae381b42299154680ab5a53e922b
MD5 ef9c66bf2412238ebbaeea731fa626c0
BLAKE2b-256 fa77ee0ca0e51727131be41a4c1f1845bf835b6da2c2caff50b1fe26ad6850ad

See more details on using hashes here.

Supported by

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