pypylon
The official Python language binding for the Basler pylon C++ APIs.
Decision gist · record as of 2026-08-14
Yes, if you are using Basler cameras and need Python control. The library is actively maintained, has no known vulnerabilities, and is the official binding—making it the standard choice for Basler hardware integration. Install friction is moderate due to platform-specific wheels and the recommended pylon Software Suite dependency, but prebuilt wheels are available for all major platforms. The unclear proprietary license requires review before use in commercial or copyleft contexts.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires pylon Software Suite installed on the system (strongly recommended); CodeMeter Runtime required for pylon Data Processing API extension and vTools on some platforms.
- Medium install friction due to platform-specific wheels (Windows, Linux x86_64/aarch64, macOS arm64/x86_64) and a strongly recommended but not mandatory system dependency on the pylon Software Suite.
- Active maintenance with recent releases (22 days since last update).
License · maintenance · safety
Other/Proprietary License (unclear) — Licensed under Other/Proprietary License with unclear treatment—no SPDX identifier provided. Review Basler's licensing terms before integrating into proprietary or copyleft projects.
last release 2026-07-23 (22 days) · last repo commit 2026-08-12 · 708 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 98,978 downloads/mo, #13,045 on PyPI
Alternatives
Verify before relying
pip install pypylon
from pypylon import pylon
with pylon.InstantCamera(pylon.FirstFound) as camera:
camera.Width.TrySetToMaximum()
camera.StartGrabbingMax(100)
while camera.IsGrabbing():
with camera.RetrieveResult(5000, pylon.TimeoutHandling_ThrowException) as grab_result:
if grab_result.GrabSucceeded():
img = grab_result.GetFirstImageDataComponent().Array- Whether pylon Software Suite can be omitted entirely or if certain camera operations fail without it
- Exact Python version support (requires_python is unspecified in metadata)
- Scope and licensing terms of the pylon Data Processing API extension
- Whether GenICam Generic Data Container (GenDC) format support is automatic or requires additional setup
What it is and what it does
pypylon wraps Basler's pylon C++ camera control library for Python, letting you discover, configure, and capture images from Basler machine vision cameras. It exposes the full pylon parameter API with convenience methods (SetToMaximum, TrySetValue, GetValueOrDefault) and context manager support for automatic resource cleanup. The package also includes bindings for the pylon Data Processing API, which lets you load and execute image processing recipes created in the pylon Workbench graphical editor.
The library is actively maintained by Basler and ships prebuilt wheels for Windows, Linux (x86_64 and aarch64), and macOS (both Intel and ARM). Version 26.6 and later introduced breaking changes in the parameter assignment API (moving from direct assignment like `cam.Gain = 42` to the recommended `cam.Gain.Value = 42`), so existing code may need updates. Installation of the pylon Software Suite is strongly recommended but not mandatory for basic wheel installation.
Use it for
- Acquire images from Basler industrial cameras in machine vision inspection pipelines
- Automate camera configuration (exposure, gain, pixel format) in production imaging systems
- Build barcode or defect detection workflows using pylon Data Processing recipes
- Integrate Basler 3D cameras (e.g. blaze) into Python computer vision applications
- Stream live camera frames to OpenCV or NumPy for real-time image analysis
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are using Basler cameras and need Python control.
The library is actively maintained, has no known vulnerabilities, and is the official binding—making it the standard choice for Basler hardware integration. Install friction is moderate due to platform-specific wheels and the recommended pylon Software Suite dependency, but prebuilt wheels are available for all major platforms. The unclear proprietary license requires review before use in commercial or copyleft contexts.
Install
pypylon on PyPI
Before you install
Medium install friction due to platform-specific wheels (Windows, Linux x86_64/aarch64, macOS arm64/x86_64) and a strongly recommended but not mandatory system dependency on the pylon Software Suite. Active maintenance with recent releases (22 days since last update).
Requires pylon Software Suite installed on the system (strongly recommended); CodeMeter Runtime required for pylon Data Processing API extension and vTools on some platforms.
License in practice
Licensed under Other/Proprietary License with unclear treatment—no SPDX identifier provided. Review Basler's licensing terms before integrating into proprietary or copyleft projects.
Quickstart
pip install pypylon
from pypylon import pylon
with pylon.InstantCamera(pylon.FirstFound) as camera:
camera.Width.TrySetToMaximum()
camera.StartGrabbingMax(100)
while camera.IsGrabbing():
with camera.RetrieveResult(5000, pylon.TimeoutHandling_ThrowException) as grab_result:
if grab_result.GrabSucceeded():
img = grab_result.GetFirstImageDataComponent().Array
Verify before relying
- Whether pylon Software Suite can be omitted entirely or if certain camera operations fail without it
- Exact Python version support (requires_python is unspecified in metadata)
- Scope and licensing terms of the pylon Data Processing API extension
- Whether GenICam Generic Data Container (GenDC) format support is automatic or requires additional setup
Package facts
| License | Other/Proprietary License unclear |
| Python support | Not specified |
| Install friction | Medium. Platform-specific wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 22 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 98,978 / month, #13,045 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: Other/Proprietary LicenseOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: Windows :: Windows 10Operating System :: Microsoft :: Windows :: Windows 11Operating System :: Microsoft :: Windows :: Windows 7Operating System :: Microsoft :: Windows :: Windows 8Operating System :: POSIX :: LinuxProgramming Language :: C++Topic :: Multimedia :: Graphics :: Capture :: Digital CameraTopic :: Multimedia :: Video :: CaptureTopic :: Scientific/Engineering |
Evidence: pypylon-26.7-cp39-abi3-macosx_14_0_arm64.whl; pypylon-26.7-cp39-abi3-macosx_14_0_x86_64.whl; pypylon-26.7-cp39-abi3-manylinux_2_31_aarch64.whl; pypylon-26.7-cp39-abi3-manylinux_2_31_x86_64.whl; pypylon-26.7-cp39-abi3-win_amd64.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “basler camera control python”
- pypylonpypylon is the official Python binding for Basler pylon C++ APIs,…
- pytapoPyTapo is a Python library that communicates with Tapo IP cameras…
- onvif-zeep-asyncAsync Python client for ONVIF IP cameras using asyncio and aiohttp,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Scientific/Engineering packages
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
pandas provides fast, flexible data structures (Series and DataFrame) for loading, cleaning, transforming, and analyzing labeled or relational data in Python.
scipy provides numerical algorithms for mathematics, science, and engineering—including optimization, integration, linear algebra, Fourier transforms, signal and image processing, and ODE solvers—built on numpy arrays.
scikit-learn provides a comprehensive Python library for supervised and unsupervised machine learning, including classification, regression, clustering, dimensionality reduction, and model evaluation tools built on NumPy and SciPy.
Install it if you need to train, evaluate, or deploy supervised or unsupervised learning models.
dill extends Python's pickle module to serialize and deserialize a much wider range of Python objects, including functions, lambdas, classes, and interpreter sessions, to byte streams for storage or network transmission.
Multiprocess is an enhanced fork of Python's standard multiprocessing library that uses dill for better serialization, allowing you to spawn processes with a threading-like API and share complex objects between them.
Install it if you use multiprocessing and encounter pickle serialization limits with lambdas or complex objects.
See also pytapo · pygrabber · blinkpy · zxing-cpp · genicam · pyzxing · onvif-zeep-async · harvesters · pyobjc-framework-ImageCaptureCore · freetype-py