Packages
Proto Plus wraps protocol buffers to provide Python classes that behave like native Python types while maintaining protocol buffer serialization and schema validation.
Install it if you're working with protocol buffers in Python and want a more Pythonic interface, or if you're using Google Cloud libraries that depend on it.
Cython is a source code translator that compiles Python code to C, enabling optional static typing and direct C/C++ interoperability to generate efficient native extensions.
Install it if you need to optimize Python performance, wrap C/C++ libraries, or build fast native extensions.
Annotates Python abstract syntax trees with the positions of tokens and source code text, enabling tools to map AST nodes back to their originating code for refactoring, analysis, and transformation.
Beartype is a runtime type checker that validates Python type hints at function call time, catching type violations before they cause downstream bugs.
Install it if you want runtime type safety for your annotated code or need to validate type hints on third-party packages.
llvmlite provides a lightweight Python binding to LLVM's IR builder, optimizer, and JIT compiler APIs, enabling you to write JIT compilers and code generators without needing the full LLVM C++ API surface.
astor converts Python abstract syntax trees (ASTs) back to readable source code and provides tools for AST manipulation, inspection, and non-recursive tree traversal.
Install it if you need AST round-tripping or advanced tree inspection.
GenSON generates JSON Schema documents from JSON objects and can merge multiple schemas together, inferring a unified schema that describes the common structure of your data.
Parse strings using format-string-like patterns to extract structured data, reversing the operation of Python's format() function.
Install it if you need to reverse format() operations or prefer format-string patterns over regex for text extraction.
Converts Python abstract syntax trees (ASTs) back into source code and provides pretty-printed AST dumps.
Converts tabular data into formatted tables for output in multiple text, binary, and application-specific formats including Markdown, HTML, CSV, JSON, Excel, LaTeX, and SQLite.
Install it if you need to generate formatted tables in any of its supported output formats; skip it only if your use case is limited to a single format where a…
Generates OpenAPI 3.0.3, 3.1, and 3.2 schemas automatically from Django REST framework APIs, with extensive customization options for real-world use cases.
Install it if you need OpenAPI schemas for a DRF API and want automation over manual maintenance.
Extends the parse module with type converters that handle enumerations, choices, cardinality constraints (optional, many, many-or-more), and variant types for structured text parsing.
However, note the aging maintenance status (368 days since last release)—verify compatibility with your current parse module version and Python release before…
Construct is a declarative parser and builder for binary data that lets you define a data structure once and use it symmetrically to both parse binary into Python objects and build objects back into binary.
Install it if you need declarative binary format handling.
PySide6 Essentials provides Python bindings to Qt 6.0+ core modules for building cross-platform desktop applications with native UI widgets, graphics, networking, and database support.
The copyleft license requires careful review for commercial projects; consider a commercial Qt license if needed.
Shiboken6 provides Python access to metadata and introspection functions for C++/Python bindings, allowing you to check object validity and debug wrapper state in applications built with Qt for Python.
Install only if you actually need binding introspection; it is not a general-purpose library.
PySide6-Addons extends PySide6 with additional Qt modules for 3D graphics, multimedia, web engines, charts, and specialized hardware interfaces.
PySide6 provides Python bindings to the Qt 6.0+ framework, enabling you to build cross-platform desktop applications with native UI components and comprehensive framework features.
Install it if you need a mature, feature-complete GUI framework for desktop applications on Windows, macOS, or Linux.
xsdata generates Python dataclasses from XML schemas, WSDL, DTD, and JSON documents, then parses and serializes XML and JSON data using those generated models.
Generates type-annotated Python HTTP clients from OpenAPI 3.0 and 3.1 specifications, producing ready-to-use client libraries with models, API functions, and authentication support.
Ibis is a portable Python dataframe library that compiles dataframe expressions into SQL or native operations, letting you use a single API across more than 20 backends.
Install it if you work with multiple data backends or want to avoid vendor lock-in; skip it if you're committed to a single backend and don't need portability.
Generates Swagger/OpenAPI 2.0 specifications automatically from Django REST Framework APIs, with built-in UI viewers for swagger-ui and ReDoc.
SeleniumBase is a browser automation framework that combines Selenium WebDriver with pytest integration, CDP mode for bot-detection bypass, and tools for web testing, scraping, and crawling.
However, the 60 runtime dependencies are substantial—evaluate whether you need the full feature set or if a lighter alternative suits your use case.
Compiles Sass and SCSS stylesheets to CSS through a Python binding of the C/C++ LibSass library, with no Ruby or Node.js dependency.
Not recommended if you expect active maintenance or frequent updates.
Stone is an interface description language and code generator that lets you define an API specification once and automatically generate client libraries and server code in multiple programming languages.
PyTensor is a Python library for defining, optimizing, and evaluating symbolic mathematical expressions on multi-dimensional arrays, with automatic differentiation and compilation to C, JAX, or Numba.
Install it if you're doing probabilistic programming, building custom optimized numerical pipelines, or need fine-grained control over computation graphs.
Cheetah3 is a template engine and code generation tool that processes templates to produce output in various languages including Python, C++, Java, and SQL.
Reads an existing database schema and generates SQLAlchemy model code automatically, supporting multiple output formats including declarative classes, dataclasses, and SQLModel.
Serves pre-built Swagger UI and Redoc distributions as Django static files, enabling API documentation display without requiring Node.js or additional build steps.
Adds type hints and static type checking support to the construct binary parser library, enabling type-safe parsing and building of binary data structures.
Generates parsers from ABNF grammars as specified in RFC 5234 and RFC 7405, with 30+ built-in grammar modules for common RFCs like HTTP headers, email addresses, and URIs.
Install it if you need to parse or validate structured text defined by RFCs or custom ABNF grammars.
Distributes the Zig programming language toolchain and its standalone C/C++ compiler (zig cc) as a Python package, enabling Python projects to use Zig as a build dependency without external system libraries.
However, note that the repository is archived and abandoned—the package will not receive updates for new Zig releases or Python compatibility issues.
Pythran is an ahead-of-time compiler that converts annotated Python functions into optimized native code, targeting scientific computing workloads with support for multi-core and SIMD execution.
The main gotcha is platform-specific setup (C++ compiler and BLAS libraries); verify those are available before installing.
Parses and elaborates SystemRDL 2.0 register description language into a traversable register model, enabling custom code generation for hardware register spaces.
Install it if you need to parse SystemRDL files or build custom register generators.
Command-line utility and Python library to sort and format TOML files while preserving comments and standardizing whitespace.
PyLaTeX generates LaTeX documents and code snippets from Python, letting you programmatically create PDFs and typeset content without writing raw LaTeX by hand.
Chalk is a Python SDK for building and deploying machine learning feature pipelines that compute features from multiple data sources and serve them for both online inference and offline training.
However, the license is unclear, so verify terms before production use.
Implements an Earley algorithm parser for context-free grammars with Abstract Syntax Tree support and a regex-based scanner.
Not recommended if you need active maintenance or support.
Esprima parses ECMAScript (JavaScript) source code into an abstract syntax tree, supporting tokenization and full syntactic analysis of JavaScript programs.
Install only if you are maintaining legacy code that already depends on esprima and cannot migrate.
A CLI tool that scaffolds new Ansible projects and adds resources to existing ones, generating boilerplate code and project structure from templates.
Baron parses Python source code into a Full Syntax Tree (FST) that preserves all formatting, comments, and whitespace, and can be converted back to identical source code.