MonkeyType
typehole
Our great sponsors
MonkeyType | typehole | |
---|---|---|
9 | 8 | |
4,533 | 1,052 | |
1.0% | - | |
5.4 | 1.4 | |
7 days ago | about 1 year ago | |
Python | TypeScript | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
MonkeyType
-
Enhance Your Project Quality with These Top Python Libraries
MonkeyType collects runtime types of function arguments and return values, and can automatically generate stub files or add type annotations directly to your Python code based on the types collected at runtime.
-
A Tale of Two Kitchens - Hypermodernizing Your Python Code Base
To alleviate the burden of manual annotation, MonkeyType offers a clever solution. It dynamically observes the types entering and leaving functions during code execution. Based on this observation, it generates a preliminary draft of type annotations. This significantly reduces the effort needed to add type hints to legacy code.
- Do you know any library that automatically detects unused files / functions inside a project folder?
-
Programming Breakthroughs We Need
https://github.com/instagram/MonkeyType can perform the call logging, and can export a static typing file which is used by mypy, but also e.g. PyCharm. It doesn't expose such fine grained types, but you could build that based on the logged data.
-
Gradually introduce type checking to an existing typed codebase.
Which introduces MonkeyType, a python library that generatics static type annotations by collecting runtime types.
- Call me naive, but would it not be possible to create a tool for python the auto adds type hints at run time?
- Is there any language that is as similar as possible to Python in syntax, readability, and features, but is statically typed?
-
Typehole – Create TypeScript interfaces from JS runtime values automatically
Not sure if you're joking but there is something similar for python developed by a rather well known company https://github.com/Instagram/MonkeyType
- Cinder: Instagram's performance oriented fork of CPython
typehole
-
Is it possible to create a dynamic type/interface from API response
Looks like you want a development tool, not necessarily at runtime thing, try Typehole. Looks like it's perfect for this. https://github.com/rikukissa/typehole
- Typehole – Automatically generate TypeScript types from runtime values
- Typehole for TypeScript
- Typehole – Create TypeScript interfaces from JS runtime values automatically
- Typehole – Automatically generate TypeScript types and interfaces for all serializable runtime values (/r/typescript)
- Extension for generating TypeScript types from runtime values automatically
- Typehole – Automatically generate TypeScript types and interfaces for all serializable runtime values
What are some alternatives?
PythonBuddy - 1st Online Python Editor With Live Syntax Checking and Execution
ts-morph - TypeScript Compiler API wrapper for static analysis and programmatic code changes.
unimport - :rocket: The ultimate linter and formatter for removing unused import statements in your code.
compodoc - :notebook_with_decorative_cover: The missing documentation tool for your Angular, Nest & Stencil application
Cinder - Cinder is a community-developed, free and open source library for professional-quality creative coding in C++.
monkeytype - The most customizable typing website with a minimalistic design and a ton of features. Test yourself in various modes, track your progress and improve your speed.
cinder - Cinder is Meta's internal performance-oriented production version of CPython.
ts-transform-import-path-rewrite - TS AST transformer to rewrite import path
plum - Multiple dispatch in Python
http-schemas - Strongly-typed HTTP APIs for JavaScript and TypeScript
Pyjion
darker - Apply black reformatting to Python files only in regions changed since a given commit. For a practical usage example, see the blog post at https://dev.to/akaihola/improving-python-code-incrementally-3f7a