{"library":"pypylon","title":"pypylon","description":"The official Python wrapper for the Basler pylon Camera Software Suite, enabling control of Basler cameras via Python. Current version is 26.3.1, released around April 2026. The library follows Basler's pylon release cadence, with major version bumps aligning with pylon SDK updates.","language":"python","status":"active","last_verified":"Mon Apr 27","install":{"commands":["pip install pypylon"],"cli":null},"imports":["from pypylon import pylon","from pypylon import pylon"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from pypylon import pylon\n\n# Enumerate cameras\ndevices = pylon.TlFactory.GetInstance().EnumerateDevices()\ncamera = pylon.InstantCamera(pylon.TlFactory.GetInstance().CreateFirstDevice())\ncamera.Open()\nprint(\"Camera model:\", camera.GetDeviceInfo().GetModelName())\ncamera.StartGrabbing(1)\ngrab = camera.RetrieveResult(5000)\nif grab.GrabSucceeded():\n    img = grab.Array\n    print(\"Image shape:\", img.shape)\ncamera.Close()","lang":"python","description":"Basic camera enumeration, opening, grabbing one image, and closing.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}