Packages
x-transformers provides modular transformer building blocks—encoder, decoder, and encoder-decoder architectures—with experimental features like Flash Attention, memory tokens, and persistent memory for research and production use.
Converts ICS calendar files that use the non-standard X-WR-TIMEZONE parameter to strict RFC 5545-compliant calendars, and provides both a Python API and command-line tool for this conversion.
Install it if you need to work with calendar files that use X-WR-TIMEZONE.
Provides pure Python implementations of curve25519 scalar multiplication operations for Elliptic Curve Diffie-Hellman key exchange and shared secret derivation.
Install only if you need pure Python for educational purposes or an environment where compiled dependencies are impossible; otherwise, use a maintained cryptographic…
Implements the x402 payment protocol with transport-agnostic client, server, and facilitator components supporting EVM, Solana, and TON blockchains via both async and sync APIs.
However, the Alpha status and recent first release (February 2025) mean the protocol and API may still evolve—use in production only after reviewing the security…
Encodes and decodes data using the X.690 BER standard, a pure Python implementation supporting custom type registration and reverse-engineering of unknown binary formats.
However, be aware that no maintenance is happening—if you encounter bugs or need compatibility fixes for future Python versions, you will need to fork or patch the…
Xacro is an XML macro language that lets you write shorter, more readable XML files by defining macros that expand into larger XML expressions.
Official Python SDK for xAI's APIs, providing synchronous and asynchronous clients to interact with text generation, image understanding, video generation, and structured output models.
xarray adds dimension, coordinate, and attribute labels to NumPy-like arrays, enabling intuitive operations on multi-dimensional data by name rather than integer position.
Install it if you work with labeled multi-dimensional data, netCDF files, or climate and geospatial datasets.
Defines typed xarray DataArray and Dataset objects using Python dataclasses, with fixed dimensions, data types, coordinates, and attributes enforced at the class level.
Provides xarray-friendly wrappers around NumPy linear algebra, SciPy statistics, and einops operations, reducing verbosity while preserving labeled array semantics.
xarray-spatial provides 150+ functions for raster analysis—surface operations, hydrology, fire behavior, flood modeling, multispectral indices, and pathfinding—that dispatch automatically across NumPy, Dask, CuPy, and Dask+CuPy backends, with native GeoTIFF/COG I/O and no GDAL dependency.
Generates UV texture coordinates for 3D triangle meshes, enabling texture mapping through parametrization and atlas packing.
xattr is a Python wrapper for reading and writing extended filesystem attributes on macOS, Linux, BSD, and Solaris, with a command-line tool included.
xbbg is a Bloomberg client for Python that provides high-level helpers for BDP, BDS, BDH, intraday bars, ticks, BQL, and related analytics, backed by a Rust engine with support for sync and async APIs and multiple output backends.
XBlock is a Python component architecture for building and embedding courseware in Open edX, providing a framework for creating reusable educational content blocks that can be hierarchically combined.
Not recommended for standalone use outside an Open edX environment—it is a framework component, not a general-purpose library.
XBSL is a linter, LSP server, and metadata scaffolding toolkit for 1C:Element projects, providing static analysis, autofixes, and code generation for `.yaml` and `.xbsl` file pairs.
Generates X-Client-Transaction-ID headers for authenticating requests to X.com APIs by implementing the reverse-engineered transaction ID generation algorithm.
Provides functions to retrieve XDG Base Directory Specification paths for user cache, configuration, data, and runtime directories, returning pathlib.Path objects with sensible defaults.
Install it if your application needs to follow XDG standards on Unix systems; if you only target Windows or have trivial directory needs, it may be overkill.
Provides functions to retrieve XDG Base Directory Specification paths for cache, config, data, runtime, and state directories, returning pathlib.Path objects with sensible defaults when environment variables are unset.
Disassembles Python bytecode from any Python version (1.0 through 3.13) regardless of which Python version you are running, and provides utilities for bytecode manipulation, magic-number translation, and code object introspection.
A Python SDK for interacting with the X API, providing typed client methods to retrieve, search, and create posts with OAuth authentication.
Xdoctest finds and executes test code embedded in Python docstrings, replacing the built-in doctest module with an AST-based parser that integrates with pytest or runs standalone.
Install it if you want to treat docstring examples as executable tests.
Encodes and decodes XDR (External Data Representation) data in Python, providing a maintained replacement for the standard library's xdrlib module which is deprecated in Python 3.13+.
However, be aware it is abandoned and receives no updates—use it only as a compatibility shim for existing XDR code, not as a foundation for new projects.
Provides Python bindings for xDS protocol buffer definitions, enabling gRPC service stubs and message types for xDS-based control planes.
xDSL is a Python framework for building compiler infrastructure using SSA-based intermediate representations (IRs) with seamless MLIR interoperability.
Xee is an Xarray backend that lets you open Google Earth Engine Image and ImageCollection objects as lazy Xarray Datasets, enabling analysis of Earth observation data using the scientific Python stack.
Xenon monitors Python code complexity by measuring cyclomatic complexity across your codebase and fails your build when thresholds are exceeded, typically used in CI/CD pipelines and git commit hooks.
Provides Python bindings to Xero's accounting, payroll, assets, projects, and files APIs, allowing developers to read and write small business accounting data programmatically.
However, high install friction suggests you should test installation in your target environment early.
XFormers provides reusable, composable building blocks for constructing Transformer neural network architectures, enabling flexible assembly of state-of-the-art model variants without monolithic implementations.
XGBoost is a gradient boosting library that trains tree-based machine learning models for classification, regression, and ranking tasks, with support for distributed computing across Kubernetes, Hadoop, Spark, and Dask.
XGBoost CPU-only gradient boosting library for machine learning model training and prediction without GPU acceleration, designed for space-constrained environments.
Distributes XGBoost training and inference across multiple nodes and GPUs using Ray as the underlying compute framework.
Constrains LLM text generation to follow specified grammars (JSON, regex, or context-free rules), ensuring structurally correct output with minimal performance overhead.
Converts HTML and CSS to PDF documents using Python, enabling developers with web skills to generate PDF templates without learning specialized PDF libraries.
However, the aging maintenance status (last release 537 days ago) warrants caution in production: verify that its rendering quality and feature set meet your specific…
Manages Xiaomi BLE (Bluetooth Low Energy) devices by providing a Python interface to discover, connect to, and interact with Xiaomi devices over Bluetooth.
However, verify that your target Xiaomi devices are supported and be prepared for API changes as the library matures.
A Python client library for connecting to and managing Xinference model servers over HTTP, enabling programmatic access to launch, retrieve, and interact with language models.
Generates strong, memorable passphrases by randomly selecting words from built-in or custom word lists, with options to constrain word length, add delimiters, apply case rules, and enforce acrostic patterns.
XKNX is an asynchronous Python library for communicating with KNX home automation systems over KNX/IP networks, enabling control of lights, switches, and other KNX devices.
Install it if you need to control or monitor KNX devices from Python code or if you are extending Home Assistant's KNX support.
Extracts and parses KNX project files (ETS 4, 5, and 6 formats, including password-protected archives) to read device addresses, group addresses, communication objects, and location metadata as structured data.
Reads MS Excel files and translates Excel formulas into Python code for evaluation, allowing spreadsheet calculations to run without Excel.
However, high install friction and the gap since the last release warrant checking that your target Excel functions are supported and testing numeric precision on…