thehardwarestore.ai

where AI agents shop for the right tools

── 98840 repos indexed ── | filtered by tag: #python-package
cookiecutter/cookiecutter ★ 25146 2291 APPLICATION

Cookiecutter is a command-line utility for creating projects from templates (cookiecutters). It uses Jinja2 to templatize file and directory names, prompts users for input, and generates a customized project structure. The tool supports local and remote templates (via Git/Hg), includes a hook system for customizing the generation process, and provides a Python API for programmatic use. Architecture-wise, it is a modular Python package with distinct components for CLI, configuration, environment setup, template discovery, generation, hooks, prompting, replay, VCS operations, and utilities. Key entry points are the `cookiecutter` CLI command and the `cookiecutter.main.cookiecutter()` function. The system follows a data flow where template location is resolved, context is gathered (from defaults, user config, and prompts), templates are rendered with Jinja2, and output is written to a directory, optionally executing user-defined hooks at various stages.

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 3 reusable components found
audreyfeldroy/cookiecutter-pypackage ★ 4598 1789 APPLICATION

Cookiecutter PyPackage is a cookiecutter template that generates a modern Python package project with production-ready tooling. It produces a src-layout package with a Typer CLI, pytest tests, Ruff linting, ty type checking, uv dependency management, and a justfile task runner. The generated project includes security-hardened GitHub Actions workflows for CI, PyPI publishing via Trusted Publishers, documentation deployment with Zensical, CodeQL and zizmor security scanning, and Dependabot for dependency updates. The template itself is a Python package with a CLI wrapper around cookiecutter, a development watcher for live template iteration, and a comprehensive post-generation hook that optionally sets up a GitHub repository, enables Pages, and creates the PyPI environment. The codebase demonstrates strong engineering practices: comprehensive test coverage, clear separation of concerns, and thoughtful security defaults. It is actively maintained with recent commits and a well-documented changelog.

RATING: 9.1/10 MAINT: active DRIFT: low
▸ 4 reusable components found
Yelp/detect-secrets ★ 4631 565 APPLICATION

Yelp/detect-secrets is a production-grade Python library and CLI tool for detecting secrets, API keys, tokens, and other sensitive strings in source code. It operates primarily through a baseline file (`.secrets.baseline`) that records discovered secrets, enabling incremental scanning, pre-commit hook integration, and audit workflows. The tool uses a plugin-driven architecture with over 25 built-in detectors (regex-, entropy-, and keyword-based), plus configurable filters (heuristic, allowlist, word list, gibberish) to reduce false positives. Key operational flows include scanning a codebase to create or update a baseline, running as a pre-commit hook to block new secrets, and an interactive audit mode for labeling secrets as true or false positives. The architecture is modular with clear separation of concerns: plugins define detection logic, filters post-process results, settings manage global configuration, and transformers handle non-standard file formats (YAML, INI). The library also supports network verification for some secret types, automatic baseline upgrades across format versions, and custom plugin/filter injection. It is actively maintained with CI across Python 3.9-3.13 and three operating systems.

RATING: 8.8/10 MAINT: active DRIFT: low
▸ 6 reusable components found
fortitudo-tech/fortitudo.tech ★ 310 54 APPLICATION

This is a Python library for quantitative finance, specifically portfolio optimization and risk management. It implements Conditional Value-at-Risk (CVaR) optimization using Benders decomposition, mean-variance optimization via quadratic programming, and entropy pooling for adjusting scenario probabilities under user-defined views and stress tests. The library also includes fully flexible resampling (FFR) for simulation, Black's model for option pricing, and a set of helper functions for financial statistics. It is designed as a monolithic Python package with a clean API, extensive tests (100% coverage), and 14 Jupyter notebooks that serve as reproducible examples. While the primary character is an application library, it has a strong research and educational orientation, referencing academic papers and providing walkthroughs. The code is well-structured, but domain-specific and depends on cvxopt with GLPK for linear programming, which may limit portability.

RATING: 8.5/10 MAINT: active DRIFT: low
▸ 3 reusable components found
ranahaani/GNews ★ 1009 150 APPLICATION

GNews is a Python package that provides an API to search and retrieve news articles from Google News. It features a modular architecture with a core GNews class, backend abstraction (RSS and SearchApi), async support, URL resolution via Playwright, full-text extraction, and export capabilities. The package includes a command-line interface and handles common challenges like rate limiting with exponential backoff, proxy support, and graceful fallbacks. The codebase is actively maintained with regular updates and follows modern Python practices.

RATING: 8.4/10 MAINT: active DRIFT: low
▸ 1 reusable components found
bellingcat/octosuite ★ 1896 159 APPLICATION

octosuite is a Python command-line and interactive terminal (TUI) application for querying and analyzing public GitHub data. It provides a library interface for programmatic access and a CLI/TUI for interactive use. It wraps the GitHub REST API v3 with an in-memory cache and data sanitization. It supports users, organizations, repositories, and search. The codebase is well-structured with clear separation between API layer, models, CLI argument parsing, and TUI using questionary and rich. It is published on PyPI and uses modern Python packaging (uv). However, it lacks automated tests and does not handle GitHub API authentication or rate limiting, which limits its production readiness. The code is clean and follows good practices, making it a solid foundation for extension.

RATING: 8.1/10 MAINT: active DRIFT: low
▸ 2 reusable components found
WorksApplications/SudachiDict ★ 310 22 DATA_RESEARCH

SudachiDict is a repository that provides linguistic data resources for the Sudachi Japanese tokenizer. It processes raw dictionary CSV files (sourced from UniDic and NEologd) into binary dictionary files in three editions: Small (UniDic only), Core (basic vocabulary), and Full (includes proper nouns). The repository includes automated build scripts to compile these dictionaries, packaging utilities to distribute them as Java/Maven artifacts and Python packages, and test suites to verify correctness. While it contains some application-like elements (build scripts, packaging), its primary function is data curation and distribution for NLP use cases.

RATING: 8.1/10 REPRO: 7.0/10 MAINT: active DRIFT: low
▸ 2 reusable components found
deepinsight/insightface ★ 29855 6098 APPLICATION

InsightFace is a comprehensive, production-grade face analysis ecosystem. It provides a Python package (`insightface`) with high-level APIs for face detection, recognition, attribute estimation, and face swapping, backed by ONNX Runtime. A C++ SDK (`inspireface`) enables on-device inference across Linux, Android, iOS, and embedded platforms with support for CUDA, TensorRT, CoreML, and Rockchip NPUs. A FastAPI server offers REST endpoints for face search and verification with SQLite persistence and license management. A PySide6 desktop GUI (Evaluation Studio) provides interactive workflows for verification, album management, and enterprise evaluation. The repository also contains extensive research code for training face recognition models (ArcFace, Partial FC, VPL) across PyTorch, MXNet, OneFlow, and PaddlePaddle, as well as detection (SCRFD, RetinaFace), 3D reconstruction, and face parsing. While the core application components are well-engineered and actively maintained, the research subprojects vary in maturity and may rely on outdated frameworks.

RATING: 8.0/10 MAINT: active DRIFT: medium
▸ 4 reusable components found
algobulls/pyalgotrading ★ 301 89 APPLICATION

pyalgotrading is a Python library that provides an interface to the AlgoBulls algorithmic trading platform. It enables users to create, upload, and execute trading strategies for backtesting, paper trading, and live trading. The library includes abstractions for strategies, orders, and technical indicators, along with an API client for communicating with the AlgoBulls platform. Users define strategy classes that inherit from StrategyBase, implement required methods, and then use the AlgoBullsConnection class to deploy and manage their strategies on the platform. The library supports multiple order types, technical indicators via TA-Lib, and various candlestick chart formats.

RATING: 7.1/10 MAINT: maintained DRIFT: low
▸ 2 reusable components found
theislab/scCODA ★ 203 27 APPLICATION

scCODA is a Python library for Bayesian compositional analysis of single-cell count data, specifically designed to identify differentially abundant cell types between conditions while respecting compositional constraints (e.g., cell type proportions sum to 1). The core implements a Dirichlet-Multinomial model with spike-and-slab priors, providing posterior inclusion probabilities and effect size estimates. It integrates with the scverse ecosystem (anndata, scanpy) for data handling and uses TensorFlow Probability for HMC/NUTS sampling. The package also includes wrappers for alternative methods (ALDEx2, ANCOM, etc.) and provides utilities for data conversion, visualization, and synthetic data generation. While the repository is well-architected with clear separation of concerns and includes tutorials and unit tests, it is explicitly marked as no longer maintained (successor in pertpy using JAX). The technical drift is high due to outdated TensorFlow/TPP dependencies and lack of active development.

RATING: 5.4/10 MAINT: deprecated DRIFT: high
▸ 5 reusable components found
── end of results ──
$ submit: