12 个仓库
General-purpose Python libraries for web projects.
Explore 12 awesome GitHub repositories matching part of an awesome list · Python Packages. Refine with filters or upvote what's useful.
Ruff is a high-performance static analysis and code formatting tool designed for Python. Built in Rust, it functions as a comprehensive engine that scans source code to detect programming errors, security vulnerabilities, and deviations from established coding standards. By parsing source code into a structured tree representation, it provides both automated linting and style enforcement across entire projects. The tool distinguishes itself through its speed and deep integration into the development lifecycle. It utilizes parallelized file processing to maximize throughput on large codebases
Fast Python linting and formatting.
该项目是一个不妥协的、确定性的 Python 代码格式化程序。它的工作原理是将源代码解析为抽象语法树,并根据一套严格的、主观的样式规则重新生成它。通过自动化格式化过程,它消除了手动样式争论和配置开销,确保代码在整个项目中保持一致,无论原始输入如何。 该工具通过专注于速度和与开发工作流的无缝集成而脱颖而出。它利用基于内容的文件缓存和并行处理来在大型代码库上保持高性能,同时支持版本控制钩子,以在代码提交前强制执行样式一致性。为了保留项目历史,它提供了在版本控制追溯中忽略特定提交的机制,确保自动化的样式更改不会掩盖原始作者身份。 除了标准源文件外,该格式化程序还将其功能扩展到 Jupyter 笔记本、类型存根以及文档中的嵌入式代码示例。它通过主流文本编辑器和集成开发环境的插件,以及对语言服务器协议的支持,提供了广泛的兼容性。配置通过在目录层次结构中自动发现的项目级文件进行管理,从而允许在不同的开发环境中保持一致的行为。
Code formatting for Python.
Faker is a Python library designed to generate realistic synthetic data for software testing, database prototyping, and privacy-preserving anonymization. It provides a comprehensive suite of tools to create diverse information types, including personal identities, financial records, geographic locations, and technical system metadata, allowing developers to populate environments with mock data that mimics real-world structures. The library is built on a modular provider architecture that supports dynamic method dispatch, enabling users to extend functionality by registering custom data genera
Fake data generation.
Pillow is a Python image processing library and digital image manipulation toolkit used for opening, manipulating, and saving various image file formats. It serves as a multi-format image codec wrapper that enables the reading and writing of diverse standards such as JPEG, PNG, TIFF, and BMP. The library provides tools for programmatic image manipulation, including resizing, cropping, rotating, and transforming visual content through direct pixel data modification. It supports pixel data analysis to extract and modify raw information for custom visual processing and data transformations. The
Image processing library.
pytest 是一个 Python 测试框架,提供了一个用于发现和执行测试套件的命令行运行器。它构建在模块化架构之上,使用标准语言断言来验证代码正确性,自动检查表达式以提供详细的失败报告,而无需专门的断言方法。 该框架的独特之处在于其依赖注入系统,通过自动解析资源并将其注入测试函数来管理设置和拆卸逻辑。它还具有基于钩子(hook)的插件架构,允许对测试生命周期(包括收集、执行和报告)进行深度定制。这些功能由动态参数化(从单个定义生成多个测试实例)和持久状态缓存(支持选择性地重新运行失败测试)提供支持。 除了核心执行模型外,该项目还提供了一套全面的工具来管理测试环境,包括输出捕获、日志管理和警告验证。它通过临时文件管理、对象打补丁以及原生执行其他框架现有测试套件等功能支持复杂的测试场景。配置通过集中式文件处理,允许对测试发现、过滤和执行行为进行细粒度控制。 该项目作为标准 Python 包分发,并包含有关其配置、插件系统和命令行界面的详尽文档。
General testing framework.
.. image:: https://media.charlesleifer.com/blog/photos/huey3-logo.png
Lightweight task queue.
这是一个 Socket.IO 双向事件协议的 Python 实现。它作为一个实时通信框架,专为服务器与多个连接客户端之间的低延迟、事件驱动的数据交换而设计。 该框架充当分布式消息队列集成器,允许在多个服务器实例间同步通信。它使用共享消息队列进行同步,从而在分布式环境中管理用户会话和客户端连接。 该系统提供了双向事件交换、实时状态同步和分布式 Socket 管理的功能。它利用传输无关的协议层将高层事件逻辑与底层传输机制分离开来。
Real-time communication support.
The code coverage tool for Python
Code coverage measurement.
Strict separation of config from code.
Settings and code separation.
Bleach is an allowed-list-based HTML sanitizing library that escapes or strips markup and attributes
Input and form sanitization.
The official Python SDK for Sentry.io
Error reporting and monitoring SDK.