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.
We haven't tracked posts mentioning Pygments yet.
Tracking mentions began in Dec 2020.
Strict Python Function Parameters
4 projects | news.ycombinator.com | 23 Jan 2022
Slightly off-topic, but everyone writing modern Python should be familiar with Pydantic and similar libraries that use type hints for validation and parsing:
We're using Pydantic for Robusta (https://github.com/robusta-dev/robusta) and absolutely love it. You get the best of traditional Python (rapid prototyping and no boilerplate) while still being able to scale your codebase and keep it maintainable. Robusta is the first large project I've written in Python where I'm not encountering type errors at runtime left and right.
3 projects | news.ycombinator.com | 22 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
You've surely heard about Pydantic, which has contributed a lot to popularize the use Python typing for JSON serialization. I was so enthusiastic when I discovered for the first time, but I also got frustrated pretty quickly. So I've started to work on my own prototype, and things got more and more serious over time (more than 11k lines of code, as much as Pydantic, 1k download/day).
What type hint should I use for "some container type" in general but explicitly exclude the str type?
2 projects | reddit.com/r/learnpython | 13 Jan 2022
Indeed. Currently, Python type hinting cannot exclude types, and, of course, does not enforce anything at runtime anyway - although a library like pydantic can be used to enforce them at runtime (hence its popularity with packages like FastAPI).
Starlite: the little API framework that can
8 projects | reddit.com/r/Python | 10 Jan 2022
Pydantic for the data parts.
Master Dataclasses in Python Part 3 - Ordering of Dataclasses
1 project | reddit.com/r/Python | 2 Jan 2022
To people that liked dataclasses. Check pydantic (https://pydantic-docs.helpmanual.io/)
Trending Python Projects of the Week
8 projects | dev.to | 30 Dec 2021
As his creator defined, SQLModel is a Python library for interacting with SQL databases. It is based on Python type hints, and it uses Pydantic and SQLAlchemy internally. We can argue that SQLModel is just a layer on top of Pydantic and SQLAlchemy.
Don't let dicts spoil your code
1 project | dev.to | 27 Dec 2021
Recently Pydantic, a third-party data-validation library became my go-to choice for model definition. Compared with dataclasses, they are much more powerful. I especially like their serializers and deserializers, automatic type conversions, and custom validators.
Ask HN: Good Python projects to read for modern Python?
15 projects | news.ycombinator.com | 26 Dec 2021
Attrs – The One Python Library Everyone Needs
5 projects | news.ycombinator.com | 24 Dec 2021
Last time I checked. Constrained types do not work with mypy out of the box.
What are some alternatives?
sqlmodel - SQL databases in Python, designed for simplicity, compatibility, and robustness.
pyparsing - Python library for creating PEG parsers [Moved to: https://github.com/pyparsing/pyparsing]
Cerberus - Lightweight, extensible data validation library for Python
Lark - Lark is a parsing toolkit for Python, built with a focus on ergonomics, performance and modularity.
phonenumbers - Python port of Google's libphonenumber
PLY - Python Lex-Yacc
cattrs - Complex custom class converters for attrs.
nexe - 🎉 create a single executable out of your node.js apps
TextDistance - Compute distance between sequences. 30+ algorithms, pure python implementation, common interface, optional external libs usage.
Construct - Construct: Declarative data structures for python that allow symmetric parsing and building
python-nameparser - A simple Python module for parsing human names into their individual components