{"id":27231,"library":"perceptron","title":"Perceptron","description":"Perceptron is a multimodal SDK for building AI applications that process text, images, and audio. Current version 0.2.1, active development with frequent releases.","status":"active","version":"0.2.1","language":"python","source_language":"en","source_url":"https://github.com/perceptronlabs/perceptron-python","tags":["multimodal","AI","SDK","chat","vision","audio"],"install":[{"cmd":"pip install perceptron","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"Perceptron is a class, not a module.","wrong":"import Perceptron","symbol":"Perceptron","correct":"from perceptron import Perceptron"}],"quickstart":{"code":"from perceptron import Perceptron\nimport os\n\nclient = Perceptron(api_key=os.environ.get('PERCEPTRON_API_KEY', ''))\nresponse = client.chat(\"Hello, world!\")\nprint(response)","lang":"python","description":"Initialize the client with an API key and send a chat message."},"warnings":[{"fix":"Replace old_chat(...) with chat(...).","message":"The 'old_chat' method is deprecated in v0.2.0, use 'chat' instead.","severity":"deprecated","affected_versions":">=0.2.0"},{"fix":"Provide a valid string API key, preferably via environment variable.","message":"API key must be a string; passing a dict or None will raise a TypeError.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Use 'from perceptron import Perceptron'.","cause":"Incorrect import: using 'import perceptron' instead of 'from perceptron import Perceptron'.","error":"AttributeError: module 'perceptron' has no attribute 'Perceptron'"},{"fix":"Pass api_key as a string argument: Perceptron(api_key='your_key').","cause":"Instantiating Perceptron without providing the api_key argument.","error":"TypeError: __init__() missing 1 required positional argument: 'api_key'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}