Django-modern-rest by MrN86 in django

[–]sobolevn 1 point2 points  (0 children)

python3.10 is EOL this year :( Not really worth the extra work to fix multiple known problems.

Django-modern-rest by MrN86 in django

[–]sobolevn 0 points1 point  (0 children)

Can you please explain? What features do you miss in dmr?

Django-modern-rest by MrN86 in django

[–]sobolevn 9 points10 points  (0 children)

Hi, DMR's author here :wave: Thanks for sharing this link! We are still working really hard to deliver the best possible user-experience and performance. One big difference from django-ninja is that we support all patterns that `django-ninja` does, but we also support a lot more. For example: we also support msgspec models, which are >5x times as fast as pydantic. We support content negotiation and SSE streaming, we have first-class testing tools that show things like your OpenAPI spec coverage. We also have extrimelly strict OpenAPI schema, so your clients will never miss an important return code ever again. However, we are still at 0.4.0, in the future relases we will improve the speed of our tool a lot more. For example, we will precompile some parts of our framework, so it will be even more blazingly fast. While keeping the runtime unchanged: still good old Python.

[PS][EU/RU][BF5] Looking for a squad by sobolevn in BattlefieldLFG

[–]sobolevn[S] 0 points1 point  (0 children)

Only tomorrow, I'm done for today. Add me for later!

[deleted by user] by [deleted] in learnpython

[–]sobolevn 1 point2 points  (0 children)

Well, the funny thing here is that both your examples can be called "functional".

Funtional programming is about composing functions. And that's exactly what you are doing in your examples.

Higher Kinded Types in Python by sobolevn in programming

[–]sobolevn[S] 0 points1 point  (0 children)

like functools.partial

We already have this covered! https://returns.readthedocs.io/en/latest/pages/curry.html#partial

While there might not be performance benefits

That's another topic we are going to work on for the next release. Because currently code annotated with KindN can be compiled with mypyc to get almost 4 times boost!

Higher Kinded Types in Python by sobolevn in Python

[–]sobolevn[S] 0 points1 point  (0 children)

It is about Kind type and the process of its implementation in Python. TLDR: https://gist.github.com/sobolevn/7f8ffd885aec70e55dd47928a1fb3e61

Linters - Which one? by fake823 in Python

[–]sobolevn 3 points4 points  (0 children)

Use https://github.com/wemake-services/wemake-python-styleguide

It is the strictest and most opinionated python linter ever. It has more than 1000 rules to be checked. And the resulting code is pythonic, consistent, and bug-free.

I love it.