|7 days ago||5 days ago|
|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.
Using commands in a different kind of way
1 project | reddit.com/r/Python | 17 Jan 2022
Instead of worrying about formatting code yourself, you could use a code formatter. You can have your IDE than automatically format your code for you via a command, or set it up to automatically format on save. One such auto formatted is black. You can install it using pip install black. You can setup your IDE (ie VSCode) to then run the formatter when you save your .py file.
Oblivious dev educates python core developer about open source works.
2 projects | reddit.com/r/dontyouknowwhoiam | 16 Jan 2022
black is a code formatting tool
New IPython defaults makes it less useful for education purposes. [Raymond Hettinger on Twitter]
9 projects | reddit.com/r/Python | 15 Jan 2022
Release of IPython 8.0
18 projects | news.ycombinator.com | 12 Jan 2022
I believe this is the issue:
Not entirely clear what the reasons are for adding the Black dependency to IPython....
Newbie here: blank spaces for better code readability?
By which above poster means, use a code formatter, like black
or a code formatter like black
What do you think about this method docstring style?
2 projects | reddit.com/r/Python | 9 Jan 2022
Modern Python setup for quality development
11 projects | dev.to | 7 Jan 2022
black: Black is the uncompromising Python code formatter. By using it, you agree to cede control over minutiae of hand-formatting. In return, Black gives you speed, determinism, and freedom from pycodestyle nagging about formatting. You will save time and mental energy for more important matters.
Ask HN:Why is Perl so dwarfed in data science by Python?
1 project | reddit.com/r/perl | 6 Jan 2022
apischema v0.17 - I've developed the fastest typed JSON (de)serialization library, and you can also build your GraphQL schema with it
8 projects | reddit.com/r/Python | 18 Jan 2022
Personally, I rely on static typing, and it rarely deceived me. I'm very impatient concerning https://github.com/python/mypy/issues/9773, which will allow finally to fully type apischema functions. Trends are evolving, TypeScript adoption is a good example.
Mypy: Using unions in mapping types does not work as expected
1 project | reddit.com/r/learnpython | 10 Jan 2022
If you typed it as Mapping instead of dict then it would be theoretically be type safe but its actually not supported. See mypy issue #1114. Only the value type is covariant for now.
How to Structure a Python AWS Serverless Project
4 projects | dev.to | 6 Jan 2022
There is a closed issue in the mypy repo with a discussion about this problem. The problem can be boiled down to this: mypy only understands Python packages and relationships between them, while our functions folder holds multiple discrete, parallel entry-points into the codebase that don't make sense when interpreted as a package. Contents of the functions directory, in other words, is a bit like a monorepo with multiple distinct projects located in separate directories, and mypy doesn't understand monorepos.
Python Type Hints – How to Handle Optional Imports – Adam Johnson
1 project | news.ycombinator.com | 4 Jan 2022
It looks like mypy considers this to be a bug:
What's the best practice to validate parameter types at runtime in Python, with and without a third-party module?
3 projects | reddit.com/r/learnpython | 26 Dec 2021
Although I urge you to use type annotations and a static type checker (such as mypy and pyright) over runtime type checks.
Comparison of Python TOML parser libraries
19 projects | dev.to | 14 Dec 2021
Do some developers hate python?
1 project | reddit.com/r/Python | 4 Dec 2021
Type hints help, but python's type system itself is still ass.
mypy alternatives - pytype and pyright
3 projects | 30 Oct 2021
How to fix mypy warning for this function
2 projects | reddit.com/r/learnpython | 26 Oct 2021
For your interest, this indeed was unintended behaviour on the part of `mypy`. It has since been fixed, apparently: https://github.com/python/mypy/pull/111532 projects | reddit.com/r/learnpython | 26 Oct 2021
Just created a bug report for this. https://github.com/python/mypy/issues/11390
What are some alternatives?
yapf - A formatter for Python files
autopep8 - A tool that automatically formats Python code to conform to the PEP 8 style guide.
prettier - Prettier is an opinionated code formatter.
isort - A Python utility / library to sort imports.
pyright - Static type checker for Python
Pylint - It's not just a linter that annoys you!
awesome-python-typing - Collection of awesome Python types, stubs, plugins, and tools to work with them.
PythonBuddy - 1st Online Python Editor With Live Syntax Checking and Execution
Flake8 - flake8 is a python tool that glues together pycodestyle, pyflakes, mccabe, and third-party plugins to check the style and quality of some python code.
pyre-check - Performant type-checking for python.
autoflake - Removes unused imports and unused variables as reported by pyflakes
typing - Python static typing home. Contains the source for typing_extensions and the documentation. Also hosts a user help forum.