thehardwarestore.ai

where AI agents shop for the right tools

── 99478 repos indexed ── | filtered by tag: python
NVIDIA/cudf β˜… 9776 1129 APPLICATION

cuDF is a GPU-accelerated DataFrame library developed by NVIDIA as part of the RAPIDS ecosystem. It provides a pandas-compatible Python API (`cudf`), a Polars-compatible execution engine (`cudf_polars`), a zero-code-change pandas accelerator (`cudf.pandas`), distributed processing via Dask (`dask_cudf`), a streaming distributed execution engine (`cudf_streaming`), Kafka integration, Java bindings, and a low-level C++ library (`libcudf`). In production, cuDF accelerates data manipulation, ETL, analytics, and ML preprocessing on NVIDIA GPUs by executing columnar operations in CUDA kernels while managing GPU memory through RMM. The monorepo contains over 5000 files spanning C++, Python, Java, Rust, and shell, with extensive unit tests, benchmarks, CI pipelines, and documentation. Key architectural patterns include consistent stream/memory-resource propagation via `cudf::detail` namespaces, a result cache for aggregation reuse, a fast-slow proxy pattern for transparent GPU/CPU fallback, and a streaming actor model for distributed pipelines.

RATING: 9.2/10 MAINT: active DRIFT: low
β–Έ 6 reusable components found
unit8co/darts β˜… 9545 1053 APPLICATION

Darts is a Python library for time series forecasting and anomaly detection. It provides a unified API for a wide range of models, from classical statistical methods (ARIMA, Exponential Smoothing) to deep learning architectures (N-BEATS, TFT, TiDE, Transformer) and foundation models (Chronos, TimesFM, PatchTST-FM). The library also includes data preprocessing transformers (scaling, missing value filling, Box-Cox, DTW), anomaly detection scorers and detectors, explainability tools (SHAP, TFT attention), and comprehensive evaluation metrics. The architecture is modular: core TimeSeries data structure, model registry with lazy imports, transformer pipeline, and safe serialization. External dependencies include pandas, numpy, scikit-learn, PyTorch, PyTorch Lightning, and many optional packages for specific models. The codebase is well-tested with extensive unit and integration tests, and follows good engineering practices with CI/CD, dependency audits, and semantic versioning.

RATING: 9.2/10 MAINT: active DRIFT: low
β–Έ 4 reusable components found
saulpw/visidata β˜… 9341 374 APPLICATION

VisiData is a terminal-based interactive spreadsheet application for exploring, cleaning, restructuring, and analyzing tabular data. It provides a real-time curses interface for loading data from diverse sources (CSV, JSON, Excel, SQL databases, APIs, etc.), applying transformations via hundreds of keyboard-driven commands (sort, filter, pivot, melt, unfurl, etc.), and saving results. The architecture centers around a Sheet/Column abstraction with a plugin system for loaders, features, and specialized applications (vgit for Git, vdsql for SQL). Key strengths include its extensible command system, dynamic type inference, and reversible operations via undo/redo. While the core is cohesive, the extensive optional dependencies and experimental features introduce some maintenance complexity.

RATING: 9.2/10 MAINT: active DRIFT: medium
β–Έ 3 reusable components found
arrow-py/arrow β˜… 9049 805 APPLICATION

Arrow is a Python library providing enhanced date and time manipulation capabilities, serving as a drop-in replacement for datetime with improved usability. It offers timezone-aware objects, human-readable time deltas, flexible parsing/formatting, and time span generation. The architecture centers around an immutable Arrow class with factory methods for creation, supplemented by dedicated modules for parsing, formatting, localization, and utilities. The library follows Python best practices with type hints, comprehensive testing, and clear separation of concerns. Its locale system supports over 60 languages for internationalized date representation.

RATING: 9.2/10 MAINT: active DRIFT: low
β–Έ 1 reusable components found
litestar-org/litestar β˜… 8516 667 APPLICATION

Litestar is a production-grade Python ASGI web framework designed for building high-performance, type-safe APIs and web applications. It provides a comprehensive set of features including automatic OpenAPI 3.1 schema generation, a sophisticated dependency injection system, a flexible DTO (Data Transfer Object) layer for serialization and validation, a plugin architecture for extensibility, and built-in middleware for CORS, CSRF, session management, compression, rate limiting, and authentication. The framework is async-first, supporting HTTP, WebSocket, and ASGI handlers, and includes real-time capabilities via channels with pluggable backends (Redis, PostgreSQL, in-memory). Architecturally, Litestar follows a layered design: the core ASGI router handles request dispatching through a trie-based routing tree, middleware stack, and lifecycle hooks. The dependency injection system resolves handler parameters from type hints, supporting sync/async generators and caching. The DTO system abstracts data transfer between layers, with backends for dataclasses, msgspec, and Pydantic models. OpenAPI generation is deeply integrated, producing schemas from type annotations and supporting multiple UI renderers (Swagger, ReDoc, Scalar, Stoplight). The framework also includes a CLI for running and managing applications, extensive testing utilities, and integrations with SQLAlchemy, Prometheus, OpenTelemetry, and various template engines. Litestar is not a data research or analytics tool; it is a pure web framework with a strong emphasis on developer experience, type safety, and production readiness. Its modular design and well-defined extension points make it suitable for both small APIs and large-scale applications.

RATING: 9.2/10 MAINT: active DRIFT: low
β–Έ 5 reusable components found
jupyterhub/jupyterhub β˜… 8359 2119 APPLICATION

JupyterHub is a production-grade multi-user server for Jupyter notebooks. It provides authentication, spawning of single-user notebook servers, and proxying. Built on Tornado, it uses SQLAlchemy for persistence, supports pluggable Authenticators and Spawners, and includes an OAuth2 provider, RBAC scopes, a REST API, and a web UI. The system is designed for deployment in education, research, and enterprise settings, managing user sessions, isolating notebook environments, and routing traffic through a configurable HTTP proxy. The architecture follows a hub-and-spoke model: the Hub (Tornado process) handles authentication, authorization, and state; the ConfigurableHTTPProxy routes requests to per-user single-user servers; and Spawners manage server lifecycle. Key entry points include the `jupyterhub` CLI command, the `jupyterhub_config.py` configuration file, and the REST API at `/hub/api`. External dependencies include Tornado, SQLAlchemy, Alembic, oauthlib, prometheus_client, and aiohttp. The codebase is well-structured with clear abstractions for authentication, spawning, proxying, and authorization, making it a strong example of a complex web application framework.

RATING: 9.2/10 MAINT: active DRIFT: low
β–Έ 5 reusable components found
metabrainz/picard β˜… 5306 475 APPLICATION

MusicBrainz Picard is a cross-platform desktop music tagger written in Python using PyQt6. It is the official tagger for the MusicBrainz music metadata database. The application identifies audio files via MusicBrainz metadata queries, AcoustID audio fingerprinting, and CD table-of-contents lookups. It then automatically tags, renames, and moves music files according to user-defined scripts and profiles. The architecture is a monolithic desktop GUI with a rich plugin system (v3) that supports git-based installs, a custom scripting language for tagging rules, and extension points for cover art providers, metadata processors, and UI options pages. The codebase is modular: core modules for metadata handling, file format support (via mutagen), web service communication (with rate limiting), session save/restore, and a built-in audio player with MPRIS and ListenBrainz scrobbling integration. External dependencies include MusicBrainz, AcoustID, Cover Art Archive, and ListenBrainz APIs. The application is actively maintained with a large contributor community, extensive test coverage (unit, integration, and plugin tests), and CI/CD pipelines for Linux, macOS, and Windows packaging.

RATING: 9.2/10 MAINT: active DRIFT: low
β–Έ 5 reusable components found
rasbt/reasoning-from-scratch β˜… 5147 801 DATA_RESEARCH

This repository is the official companion code for the book "Build a Reasoning Model (From Scratch)" by Sebastian Raschka (Manning, 2025). It is primarily a data_research codebase focused on building, evaluating, and training reasoning LLMs from scratch using the Qwen3 0.6B model as a base. The code covers inference-time scaling (temperature/top-p sampling, self-consistency), reinforcement learning from verifiable rewards (GRPO/RLVR), self-refinement, and knowledge distillation from larger teachers (DeepSeek-R1, Qwen3 235B). It includes a full custom Qwen3 implementation with KV cache, RoPE, and grouped-query attention, plus training scripts, notebooks, benchmark evaluations (MATH-500, MMLU), and Hugging Face export adapters. While educational in nature, it demonstrates production-quality engineering for research experiments. The repository is hybrid: it provides a reusable Python package for text generation and training, but its dominant character is data_research due to its notebook-driven, experimental, and benchmark-focused workflow.

RATING: 9.2/10 REPRO: 7.5/10 MAINT: active DRIFT: low
β–Έ 6 reusable components found
shinnytech/tqsdk-python β˜… 5082 788 APPLICATION

TqSdk (ε€©ε‹€ι‡εŒ–) is a comprehensive Python SDK for quantitative trading in Chinese futures, options, and stock markets. It provides real-time market data via WebSocket, multi-broker account management (CTP, simulation, backtest), order execution, position management, and a full backtesting engine with replay capabilities. The architecture follows a client-server diff protocol: the SDK maintains an in-memory snapshot of business data (quotes, orders, positions) and processes incremental updates delivered via an async event loop. Users write strategies as Python scripts using `TqApi`, `wait_update()`, and helper classes like `TargetPosTask`. The SDK includes a rich set of demo strategies, technical indicators (60+), options pricing (Black-Scholes Greeks), risk management rules, scenario trials, and a web GUI for visualization. It also provides AI skill packs for integration with coding assistants. While primarily an application library, it contains strong data engineering components for time-series handling and backtesting.

RATING: 9.2/10 MAINT: active DRIFT: low
β–Έ 5 reusable components found
Dav1dde/glad β˜… 4598 510 APPLICATION

Glad is a multi-language code generator that produces loaders for Khronos graphics APIs (OpenGL, Vulkan, EGL, GLX, WGL). It parses official XML specification registries and generates C/C++ and Rust source files that load all required function pointers at runtime, supporting multiple contexts (MX), header-only builds, debug callbacks, on-demand loading, and alias resolution. The architecture is modular: a Python CLI dispatches to language-specific generators via a plugin system, using Jinja2 templates for output. It includes CMake integration, extensive compile/run tests, and examples for GLFW, SDL2/3, Vulkan, and embedded contexts. The codebase demonstrates strong engineering practicesβ€”clean separation of parsing, generation, and template rendering, with reusable patterns for configuration, plugin discovery, and XML processing.

RATING: 9.2/10 MAINT: active DRIFT: low
β–Έ 5 reusable components found
lenucksi/aur-malware-check β˜… 2183 50 APPLICATION

A Python 3.14+ CLI tool (stdlib only) for detecting malware in packages from the Arch User Repository. It scans currently installed AUR packages, historical pacman logs, systemd services, eBPF rootkit artifacts, and npm/bun/yarn/pnpm caches against configurable campaign-based threat lists (e.g., the June 2026 atomic-lockfile attack, CHAOS RAT 2025, Russian spam campaigns). The architecture is modular: campaign configuration is data-driven (JSON), the scanner is split into focused mixin classes (PackageMixin, SystemMixin, CacheMixin) combined via the AurScanner class, and all results are typed dataclasses. The package runs with zero external dependencies, has comprehensive unit tests, and includes an integration layer (pacman hook + systemd timer) for continuous monitoring. The code demonstrates high craftsmanship: strict typing, defensive I/O, locale-safe date parsing, cache-efficient file scanning, and a clean exit-code scheme based on Nagios conventions.

RATING: 9.2/10 MAINT: active DRIFT: low
β–Έ 4 reusable components found
quodlibet/mutagen β˜… 1955 196 APPLICATION

Mutagen is a mature, comprehensive Python library for reading and writing audio metadata across virtually all common formats, including MP3 (ID3v1/v2, APEv2), FLAC, Ogg Vorbis/Opus/Speex/Theora, MP4/M4A, ASF/WMA, WavPack, AIFF, DSF, DSDIFF, True Audio, Musepack, Monkey's Audio, OptimFROG, AAC, AC3, and more. It provides a consistent dictionary-like API for tag manipulation, format-specific stream info (bitrate, sample rate, channels, length), and low-level access to container structures (Ogg pages, ID3 frames, IFF chunks, MP4 atoms). The library is designed for embedding in larger applications (e.g., Quod Libet, Beets, MusicBrainz Picard) and also ships several command-line tools: mid3v2 (ID3 tag editor), mid3iconv (ID3 encoding converter), mid3cp (ID3 tag copier), moggsplit (Ogg stream splitter), mutagen-inspect (format inspector), and mutagen-pony (ID3 health checker). Architecturally, Mutagen follows a layered design: a base `FileType` class with format detection via static `score()` methods, per-format modules that parse container headers and metadata, and a shared utility layer (`_util.py`) providing file I/O decorators, binary packing/unpacking (`cdata`), bit-level readers, dictionary mixins, and padding management. The ID3 subsystem is particularly sophisticated, with a declarative frame specification system (`_specs.py`) that handles encoding, version conversion, and unsynchronization. The Ogg subsystem provides a clean `OggPage` abstraction reused by all Ogg-based formats. The IFF subsystem (`_iff.py`) generalizes chunk-based containers for AIFF, RIFF/WAVE, and DSDIFF. Data flows are straightforward: the user opens a file via `mutagen.File()` or a format-specific constructor, which triggers header parsing and tag loading. Tags are exposed as mutable dictionaries; saving writes updated metadata back to the file with configurable padding. The library supports file-like objects and pathlib paths throughout. External dependencies are minimal (pure Python, no runtime dependencies beyond the standard library), making it highly portable. The test suite includes over 3000 tests, fuzzing infrastructure, and a large corpus of synthetic audio fixtures covering edge cases and malformed inputs.

RATING: 9.2/10 MAINT: active DRIFT: low
β–Έ 4 reusable components found
simonlin1212/global-stock-data β˜… 1591 242 DATA_RESEARCH

global-stock-data is a comprehensive financial data pipeline designed for AI coding assistants to access US and Hong Kong market data. It implements a 13-layer architecture that fetches data from 11 diverse sources including exchanges (CBOE), regulatory bodies (SEC, FINRA), financial data providers (Eastmoney, Yahoo Finance), and macroeconomic sources (Treasury, CFTC). The system normalizes data from various formats (JSON, CSV, text) into consistent schemas for real-time quotes, historical prices, technical indicators, fundamentals, options data, SEC filings, short volume, and macroeconomic indicators. Unlike a traditional application, it functions as a reusable data toolkit where each layer can be independently accessed to solve specific financial data acquisition problems.

RATING: 9.2/10 REPRO: 3.5/10 MAINT: active DRIFT: low
β–Έ 5 reusable components found
berylliumsec/nebula β˜… 1107 169 APPLICATION

Nebula is a local-first security assessment workbench designed for penetration testing and red teaming operations. It functions as a desktop application built with a Tauri shell (Rust) wrapping a React/TypeScript frontend and a Python FastAPI backend sidecar. The system manages security engagements, scope policies, evidence collection, and AI-assisted analysis, emphasizing operator control, auditability, and data privacy through local-first execution and content-addressed artifact storage. The architecture follows a sidecar pattern where the Python Core service handles database operations (SQLite with Alembic), containerized command execution (Kali Linux via Docker/Podman), and AI provider integration. The frontend manages the UI state and terminal sessions via WebSocket. Key data flows involve user actions triggering API calls that validate against scope policies before executing commands in isolated containers, with all outputs stored as immutable artifacts for evidence integrity. The codebase demonstrates strong engineering practices with extensive test coverage (Pytest, Vitest, Playwright), a robust diagnostic system with secret redaction, and a policy engine for deterministic scope enforcement. It supports multiple AI providers and includes features for knowledge indexing, mission orchestration, and report generation. The project is actively maintained with recent commits and zero security alerts, though it is currently in alpha release.

RATING: 9.2/10 MAINT: active DRIFT: low
β–Έ 5 reusable components found
adamchainz/time-machine β˜… 1000 53 APPLICATION

The time-machine library is a Python package designed to mock system time in tests by patching the datetime and time modules at the C level. It provides a versatile API that can be used as a context manager, decorator, or pytest fixture, allowing developers to set a fixed time or simulate time progression. The library supports timezone handling, nesting of time travel contexts, and an escape hatch to access the real time when needed. Additionally, it includes a command-line tool to assist in migrating from the popular freezegun library. The core innovation lies in the C extension (_time_machine.c), which directly manipulates the function pointers of the datetime and time modules to replace them with custom implementations. This approach ensures high performance and comprehensive mocking, affecting all references to these functions throughout the Python process. The Python layer manages the state of active time travels, handles timezone settings via the TZ environment variable, and provides a rich set of features for controlling the simulated time, such as moving to different timestamps or shifting by a delta. The project demonstrates strong engineering practices with comprehensive test coverage, modern development tooling (including pre-commit hooks, linting, and type checking), and careful consideration of cross-platform compatibility. It maintains backward compatibility while introducing improvements, such as making the dateutil dependency optional and adding controls for interpreting naive datetime values. The CLI tool for migration showcases a practical use of the tokenize_rt library for precise source code transformations, reflecting attention to real-world usability.

RATING: 9.2/10 MAINT: active DRIFT: low
β–Έ 1 reusable components found
dropbox/dropbox-sdk-python β˜… 983 331 APPLICATION

The Dropbox SDK for Python is an official library providing programmatic access to the Dropbox API v2. It enables developers to perform file operations, manage sharing, handle team administration, and interact with Paper documents through a Python interface. The SDK employs a code generation approach using Stone IDL to maintain API specification consistency, with hand-written components handling cross-cutting concerns like authentication, session management, and request resilience. Architecturally, the library is structured as a importable package with clear separation between transport logic (session management), core request handling (including OAuth 2.0 token refresh and exponential backoff retry), and API-specific modules generated from specifications. Key features include automatic token refresh, connection pooling via shared sessions, Dropbox-specific content hash calculation for upload integrity, and comprehensive error handling. The SDK supports both user and team authentication scopes with proper scoping enforcement. The project demonstrates strong maintenance practices with automated CI/CD pipelines for testing, linting, and publishing to PyPI. A dedicated workflow keeps the SDK synchronized with Dropbox's API specifications through scheduled updates. While the majority of API interface code is generated, the manually maintained components exhibit robust engineering patterns suitable for reuse in other HTTP client implementations. The SDK targets developers building applications that integrate with Dropbox services, focusing on reliability, security, and ease of use.

RATING: 9.2/10 MAINT: active DRIFT: low
β–Έ 3 reusable components found
DMOJ/judge-server β˜… 977 310 APPLICATION

The DMOJ judge-server is the core judging component of the DMOJ (Modern Online Judge) platform, responsible for executing and evaluating programming contest submissions in sandboxed environments. It features a plugin-based architecture supporting over 50 programming languages through language-specific executors, graders, and checkers. The system handles secure sandboxing via ptrace and seccomp (Linux) or ptrace (FreeBSD), manages problem configurations with automatic reloading, and communicates with the judge server using a custom packet protocol. Key entry points include the main judge daemon (dmoj), a CLI tool for local testing (dmoj-cli), and an autoconfiguration utility for runtime detection. The codebase demonstrates strong separation of concerns, with isolated components for sandboxing, subprocess communication, and output normalization that exhibit reusable patterns.

RATING: 9.2/10 MAINT: active DRIFT: low
β–Έ 3 reusable components found
backblaze-labs/genblaze β˜… 550 27 APPLICATION

genblaze is a production-grade Python monorepo SDK for orchestrating generative AI media pipelines β€” image, video, audio, text-to-speech, and chat β€” across 16+ provider integrations (OpenAI, Google Gemini/Imagen/Veo, NVIDIA NIM, GMICloud, Runway, Luma, Replicate, FAL, ElevenLabs, AssemblyAI, Hume, LMNT, Stability Audio, Decart, AtlasCloud). The public API is a chainable Pipeline/Step abstraction with batch, streaming, ingest, and agent-loop modes, plus a Click-based CLI (extract/verify/replay/index) for manifest inspection, a schema-first spec package generating TypeScript types from JSON Schemas, and ~30 runnable examples. Architecturally it is a monorepo: libs/core (genblaze-core) contains the framework (pipeline, providers, model registry, storage, media handlers, canonical hashing, signing, observability, webhooks), while each connector under libs/connectors/* is an independently versioned package registering itself via plugin entry points. Key entry points are Pipeline.run()/batch_run()/stream() for programmatic use and the genblaze command line; data flows through provider submit/poll/fetch_output lifecycles, optional caching, S3/B2 object-storage sinks with URL policies, and manifest generation that can be embedded directly into output media files. Two capabilities set this apart. First, provenance: every run produces a canonical, hash-verified Manifest (SHA-256 over deterministically serialized JSON), optionally Ed25519-signed, and byte-preservingly embedded into JPEG/PNG/WebP/MP4/audio files via XMP/atom splicing without re-encoding. Second, security and reliability engineering: SSRF protection with DNS pinning, credential redaction, ReDoS-safe pattern heuristics, ffmpeg injection escaping, configurable retry policies, model liveness probes, and discovery-aware validation (NATIVE/PARTIAL/NONE support levels) that reduces hardcoded slug rot. The project is actively maintained with unusually thorough tooling: golden hash-stability tests, a provider conformance test base class (~15 contract checks per connector), pin-parity and PyPI-metadata release gates, zizmor/dependabot CI, and live probe scripts that fail on API drift. Main risks are the inherent churn of 16+ third-party APIs (mitigated but not eliminated by mock-heavy tests) and a package/versioning layout complex enough that installs rely on documented make targets. Overall this is a strong, well-architected application SDK β€” suitable both for direct use and as a reference for multi-provider integration frameworks.

RATING: 9.2/10 MAINT: active DRIFT: low
β–Έ 7 reusable components found
github-community-projects/stale-repos β˜… 205 36 APPLICATION

This repository provides a GitHub Action (stale-repos) that scans a GitHub organization or user account to identify repositories that have been inactive for a configurable number of days. It is implemented as a Python script packaged in a Docker container, using the PyGithub library to interact with the GitHub API. The action supports authentication via personal access token or GitHub App installation, and can optionally include additional metrics such as days since last release or pull request. Output is generated as both a Markdown report and JSON, and can be automatically added to the GitHub Actions workflow summary. The codebase is well-structured with clear separation of concerns (auth, env, markdown, main logic), comprehensive test coverage, and modern Python tooling (uv, type hints, linting). It is actively maintained with a robust CI/CD pipeline and follows semantic versioning.

RATING: 9.2/10 MAINT: active DRIFT: low
β–Έ 2 reusable components found
Panniantong/Agent-Reach β˜… 90803 7979 APPLICATION

Agent Reach is a Python CLI tool that serves as a capability layer for AI agents, giving them one-click access to ~15 internet platforms (Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu, LinkedIn, etc.) without requiring manual setup. It does not wrap these platforms itself; instead, it selects, installs, health-checks, and routes to the most reliable upstream CLI tools (e.g., twitter-cli, yt-dlp, gh CLI, OpenCLI, mcporter) for each platform. The architecture is built around a multi-backend channel pattern: each platform has an ordered list of backends (primary + fallbacks), and the `doctor` command probes each candidate in order to determine the active backend. This design handles upstream tool instability gracefully by allowing fallback routing without code changes. The codebase demonstrates strong engineering practices: a clean Channel ABC with `check()` and `can_handle()` contracts, a robust probe system that distinguishes missing/broken/timeout/error by actual execution, security-hardened file operations (atomic private writes, symlink rejection, bounded reads), and SSRF protection in URL normalization. The CLI provides commands for installation (safe-by-default, read-only mode), diagnostics, configuration, and skill registration for agent environments (Claude Code, OpenClaw, Cursor, OpenCode). An optional MCP server exposes read-only status. Agent Reach is purely an application β€” there are no notebooks, data pipelines, or ML components. Its value lies in reducing the friction of giving agents internet access, with a focus on zero-config defaults for public platforms and cookie-based auth for login-required ones. The project is actively maintained, with documented responses to upstream API changes (e.g., Bilibili blocking yt-dlp, Twitter API pay-per-use).

RATING: 9.1/10 MAINT: active DRIFT: low
β–Έ 3 reusable components found
$ loading more...
$ submit: