19 Repos
Platforms for labeling and annotating text data.
Explore 19 awesome GitHub repositories matching part of an awesome list · Annotation Tools. Refine with filters or upvote what's useful.
mypy is a static type checker for Python that analyzes source code to detect type errors and inconsistencies without executing the program. It functions as a static analysis tool and type inference engine, providing a gradual typing system that allows type hints to be added to a codebase incrementally while maintaining compatibility with dynamic typing. The project distinguishes itself through a combination of performance and precision features. It utilizes a daemon-based incremental checking system and multi-process parallel analysis to manage large codebases, supported by binary cache persi
Compiles statically typed Python modules into C extensions.
Pytype ist ein Tool zur statischen Code-Analyse und eine Typinferenz-Engine für Python. Es fungiert als statischer Typ-Analysator, der Typ-Diskrepanzen erkennt und Typ-Annotationen verifiziert, ohne dass vollständige manuelle Hinweise erforderlich sind, und dient gleichzeitig als Typ-Stub-Generator zur Erstellung eigenständiger Definitionsdateien. Das Projekt zeichnet sich dadurch aus, dass es Variablen- und Funktionstypen durch eine Analyse von Codemustern und Zuweisungen automatisch bestimmt. Diese Inferenz-Engine ermöglicht eine strukturelle Code-Verifizierung und die Generierung von Typ-Stubs, die die Schnittstellen von Modulen und Funktionen beschreiben. Das System deckt breite statische Analyseoperationen ab, einschließlich struktureller Validierung von Klassenhierarchien und Funktionsaufrufen sowie Symbol-Tracking zur Erkennung von Namespace-Fehlern und Zugriffen auf ungültige Attribute. Es bietet zudem Typ-Prüf-Primitive zur Durchsetzung von Annotationen und ein Typsystem, das in der Lage ist, komplexe Datenstrukturen unter Verwendung von Unions und Optionals zu modellieren.
Toolchain for applying stub files to source code.
MonkeyType ist ein Laufzeit-Typ-Inferenz- und Analysetool für Python. Es sammelt tatsächliche Argument- und Rückgabetypen von Funktionsaufrufen während der Programmausführung, um die Erstellung statischer Typ-Annotationen und kompatibler Stub-Dateien zu automatisieren. Das System konvertiert erfasste Ausführungs-Traces in statische Typ-Hinweise, die direkt in Funktionsdefinitionen des Quellcodes eingefügt oder zur Generierung externer Typ-Stubs verwendet werden können. Dieser Prozess ermöglicht das Hinzufügen von Typsicherheit zu bestehenden Codebasen durch die Analyse realer Datentypen anstelle manueller Audits. Die Funktionen des Tools decken die Laufzeit-Typ-Sammlung, dynamische Typ-Inferenz und die Generierung statischer Typ-Definitionen ab. Es nutzt Quellcode-Modifikation und Call-Trace-Persistenz, um beobachtete Laufzeitmuster auf statische Signaturen abzubilden.
Generates stubs based on observed runtime types.
PyAnnotate: Auto-generate PEP-484 annotations
Inserts annotations based on runtime call arguments.
mypy-protobuf: Generate mypy stub files from protobuf specs
Generates mypy stubs from Protocol Buffer definitions.
RightTyper is a Python tool that generates types for your function arguments and return values. RightTyper lets your code run at nearly full speed with almost no memory overhead. As a result, you won't experience slow downs in your code or large memory consumption while using it, allowing you to…
Generates function argument and return types with low overhead.
com2ann
Converts type comments into formal type annotations.
!!! Note this project is no longer supported/maintained as of 2022 August 14th !!!
Applies stub files to existing Python code.
A CLI tool to automatically add type annotations into Python code.
Automatically infers and inserts type annotations.
A Python typehint explainer!
Explains complex Python types.
A CLI tool for painless integration of mypy with an existing Python project. When you run it for the first time, it will remember all type errors that you already have in the project (generate "baseline"). All consecutive runs will ignore these errors and report only ones that you introduced…
Filters existing errors to focus on new type issues.
kk Tools to generate Python types based on TypedDict from a JSON schema
Generates Python types from JSON Schema.
auto-optional: adds the Optional type-hint to arguments where the default value is None
Automatically marks arguments as Optional when default is None.
Infer Types by Python Tracing
Infers types through Python code tracing.
MonkeyType as a pytest plugin.
MonkeyType plugin for Pytest.
PyAnnotate as a pytest plugin.
Pyannotate plugin for Pytest.
When I refactor code I often find myself tediously adding type annotations that are obvious from context: functions that don't return anything, boolean flags, etcetera. That's where autotyping comes in: it automatically adds those types and inserts the right annotations.
Automatically adds simple return type annotations.
Typeforce is a CLI tool that enriches your Python environment with type annotations, empowering mypy.
Enriches environments with type annotations for mypy.
Automatically add or remove # type: ignore commends to silence mypy. Inspired by pylint-silent
Manages mypy output via code comments.