https://ru.hexlet.io/blog/posts/izuchaem-prodvinutye-vozmozhnosti-python-chast-2-zamykaniya-dekoratory-modul-functools - статья по декораторам, а также здесь описаны замыкания(closures)
#decorators #closures
#decorators #closures
ru.hexlet.io
Изучаем продвинутые возможности Python, часть 2: замыкания, декораторы, модуль functools
В первой части серии публикаций о продвинутых возможностях Python мы познакомились с итераторами, генераторами и модулем itertools. В сегодняшней публикации речь пойдёт о замыканиях, декораторах и модуле functools.
https://towardsdatascience.com/implementing-grpc-server-using-python-9dc42e8daea0 - статья о использовании gRPC в python
#grpc #protobuf
#grpc #protobuf
Medium
Implementing gRPC server using Python
Your next API doesn’t need to be built with REST and JSON. How about gRPC and Protocol Buffers for better performance and structure?
https://pythonist.ru/best-practices-v-rabote-s-modelyami-django/ - Best Practicies по django ORM
#django #ORM #sql
#django #ORM #sql
Pythonist
Работаем с моделями Django (Python): Best Practices
Давайте посмотрим, какие подходы считаются лучшими при работе с моделями Django. Мы поговорим о таких вещах как нейминг, денормализация, дублирование полей.
https://habr.com/ru/company/yandex/blog/265569/ - советы по организации своих API сервисов использующих HTTP
#http #stucture
#http #stucture
Хабр
15 тривиальных фактов о правильной работе с протоколом HTTP
Внимание! Реклама! Пост оплачен Капитаном Очевидность! Ниже под катом вы найдёте 15 пунктов, описывающих правильную организацию ресурсов, доступных по протоколу HTTP — веб-сайтов, «ручек»...
https://habr.com/ru/post/273045/ - статья как реализован список в python с примерами кода на C
#cpython #list
#cpython #list
Хабр
Внутреннее устройство Python list
Предлагаю вашему вниманию статью, основанную на публикации Laurent Luce о реализации работы со списками в CPython. Она может быть полезна начинающим программистам на Python, либо готовящимся к...
https://testdriven.io/blog/django-debugging-vs-code/ - деббагинг djaongo проекта в контейнере с помощью vscode
#vscode #debugging #docker #django
#vscode #debugging #docker #django
testdriven.io
Debugging a Containerized Django App in VS Code
In this tutorial, we'll show you how to configure Visual Studio Code (VS Code) to debug a Django app running inside of Docker.
https://blog.jse.li/posts/pyc/ - Статья о том почему нужно следить за тем что попадает в репозиторий и почему не стоит прописывать какие-либо SECRET_KEYS в нем
#guthub #secrets #security #pyc
#guthub #secrets #security #pyc
blog.jse.li
Finding secrets by decompiling Python bytecode in public repositories | Jesse Li
Cache rules everything around me. `pyc` files can contain secrets and should not be checked in to source control. Use the standard Python [.gitignore](https://github.com/github/gitignore/blob/master/Python.gitignore).
https://pythonist.ru/algoritmy-sortirovki-na-python/ - алгоритмы сортировок, анализ, ссылки на сами алгоритмы
#algoritms #sorting
#algoritms #sorting
Pythonist
Изучаем популярные алгоритмы сортировки на Python
Давайте рассмотрим самые популярные алгоритмы сортировки, принцип их работы, а также примеры их реализации в коде на Python.
https://book.pythontips.com/en/latest/index.html - подборка python tips(статей о продвидунотом python)
#tips #book
#tips #book
https://pawelmhm.github.io/asyncio/python/aiohttp/2016/04/22/asyncio-aiohttp.html - делаем миллион запросов с помощью aiohttp
#asyncio #aiohttp #requests
#asyncio #aiohttp #requests
pawelmhm.github.io
Making 1 million requests with python-aiohttp
In this post I’d like to test limits of python aiohttp and check its performance in terms of requests per minute. Everyone knows that asynchronous code perf...
https://jvns.ca/blog/2017/06/03/async-io-on-linux--select--poll--and-epoll/ - статья о epool и asyncio
#asyncio #epool
#asyncio #epool
Julia Evans
Async IO on Linux: select, poll, and epoll
This week I got a new book in the mail: The Linux Programming Interface. My awesome coworker Arshia recommended it to me so I bought it! It’s written by the maintainer of the Linux man-pages project, Michael Kerrisk. It talks about the Linux programming interface…
https://www.integralist.co.uk/posts/python-asyncio/ - хорошая статья о параллельности в python
#asyncio #concurrency #threads #multiprocess
#asyncio #concurrency #threads #multiprocess
Forwarded from Habrahabr
PyTrace — Time Travel Debugger для Python. Возможно ли лучше понимать запутанный код? А что, если мы сможем понимать такой код быстрее чем тот, кто его написал? Встречайте — PyTrace: https://t.co/7D0GEGni9U https://t.co/supgIsIg0i
Хабр
PyTrace — Time Travel Debugger для Python
Мне часто приходится сталкиваться с отладкой. Иногда я ставлю точку останова, но понимаю что уже слишком поздно, и надо начинать все сначала. Более того, пер...