cookiecutter-hypermodern-python
MonkeyType
cookiecutter-hypermodern-python | MonkeyType | |
---|---|---|
9 | 10 | |
1,727 | 4,550 | |
- | 0.8% | |
3.0 | 5.4 | |
2 days ago | 7 days ago | |
Python | Python | |
MIT License | GNU General Public License v3.0 or later |
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.
cookiecutter-hypermodern-python
-
A Tale of Two Kitchens - Hypermodernizing Your Python Code Base
Hypermodern Python Cookiecutter
-
Boring Python: Code Quality
There is also a 'hypermodern' cookie cutter template for python projects - I've used it several times now and it works mostly out of the box:
https://github.com/cjolowicz/cookiecutter-hypermodern-python
-
What's your default way setting up packages, testing, linting, and imports
See https://github.com/cjolowicz/cookiecutter-hypermodern-python for a template and https://cjolowicz.github.io/posts/hypermodern-python-01-setup/ for some background explanation.
-
Do you need docs such as mkdocs or sphinx on private github projects?
I often see templates like COOKIETEMPLE or HYPERMODERN python add a separate directory called docs which either uses sphinx or mkdocs or readthedocs and has github actions for publishing docs.
-
Here are 5 Python project starter templates after digging through 100s of them that I think are spot o
Vouching for https://github.com/cjolowicz/cookiecutter-hypermodern-python .
-
I developed a template for starting new Python projects! Features: Poetry, GitHub CI/CD, MkDocs, publishing to PyPi/Artifactory, Pytest, Tox, black and isort.
Seems pretty similar to https://cookiecutter-hypermodern-python.readthedocs.io/
-
Just created an open-source text adventure game engine. Still didn't upload to PyPi but will soon!
Check out Hypermodern python https://cjolowicz.github.io/posts/hypermodern-python-01-setup/ and the cookiecutter for it https://github.com/cjolowicz/cookiecutter-hypermodern-python
- [D] Going beyond average ML Engineer
- Are there any books or videos that describe how to organize large projects?
MonkeyType
-
Google lays off its Python team
i can't, unfortunately, it was youtube internal code. but by the same token a lot of the performance stuff was specific optimisations for that code and would not really generalise.
one of the current "extremely large python codebase" projects is instagram, and they do have some public repos, notably monkeytype (https://github.com/Instagram/MonkeyType) which youtube did have its own analogue of, and cinder (https://engineering.fb.com/2022/05/02/open-source/cinder-jit...). in general facebook's engineering blog is a great place to read about this sort of thing.
-
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
What are some alternatives?
py-healthchecks.io - A python client for healthchecks.io. Supports the management api and ping api
PythonBuddy - 1st Online Python Editor With Live Syntax Checking and Execution
reorder-python-imports - Rewrites source to reorder python imports
unimport - :rocket: The ultimate linter and formatter for removing unused import statements in your code.
awesome-pytest - A curated list of awesome pytest resources
Cinder - Cinder is a community-developed, free and open source library for professional-quality creative coding in C++.
Adventura
typehole - TypeScript development tool for Visual Studio Code that helps you automate creating the initial static typing for runtime values
mutmut - Mutation testing system
cinder - Cinder is Meta's internal performance-oriented production version of CPython.
pre-commit - A framework for managing and maintaining multi-language pre-commit hooks.
plum - Multiple dispatch in Python