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
Мне часто приходится сталкиваться с отладкой. Иногда я ставлю точку останова, но понимаю что уже слишком поздно, и надо начинать все сначала. Более того, пер...
https://www.integralist.co.uk/posts/python-code-design/#interfaces-protocols-and-abstract-methods - интерфейсы, протоколы и абстрактные методы
#interface #protocols #abstract_methods
#interface #protocols #abstract_methods
integralist
Python Code Design and Dependency Management ⋆ Mark McDonnell
Introduction This post is going to cover a few tools and features I plan on using when writing Python code in 2019. I’ve grouped these into the following sections:
Type Hints and Static Analysis Interfaces, Protocols and Abstract Methods Dependency Management…
Type Hints and Static Analysis Interfaces, Protocols and Abstract Methods Dependency Management…
https://gtfobins.github.io/#+shell - как использовать ту или иную команду для создания шелла\повышения привилегий и прочего
#security #shell
#security #shell
https://amercader.net/blog/beware-of-json-fields-in-sqlalchemy/ - о работе с json fileds в sqlalchemy
#sqlalchemy #jsonb #postgres
#sqlalchemy #jsonb #postgres
amercader.net
Beware of JSON fields in SQLAlchemy
JSON fields in PostgreSQL are really convenient, but when using them in SQLAlchemy there are details around changes detection that need to be taken into account.
http://calpaterson.com/async-python-is-not-faster.html - статья с бенчмарком wsgi фреймворков и асинхронных фреймворков цифры которой все же стоит проверить, но все тесты и код присутствует в ссылке на гитхаб внутри
есть и перевод этой статьи - https://habr.com/ru/company/ruvds/blog/507570/ и в комментариях понятно написано почему данная статья не совсем правильна
#benchmarking #frameworks #asyncio #wsgi
есть и перевод этой статьи - https://habr.com/ru/company/ruvds/blog/507570/ и в комментариях понятно написано почему данная статья не совсем правильна
#benchmarking #frameworks #asyncio #wsgi
calpaterson.com
Async Python is not faster
Async Python is slower than "sync" Python under a realistic benchmark. A bigger worry is that async frameworks go a bit wobbly under load.
https://www.appdynamics.com/blog/engineering/an-introduction-to-python-wsgi-servers-part-1/
https://www.appdynamics.com/blog/engineering/a-performance-analysis-of-python-wsgi-servers-part-2/ - 2 статьи о различных wsgi серверах
#wsgi #benchmarking
https://www.appdynamics.com/blog/engineering/a-performance-analysis-of-python-wsgi-servers-part-2/ - 2 статьи о различных wsgi серверах
#wsgi #benchmarking
Application Performance Monitoring Blog | AppDynamics
Intro to Python WSGI Servers: Part 1 | What is Python WSGI Server
In part 1 of our Python WSGI Server series, learn what is WSGI and get information on WSGI server types, their framework, and compatibilities
https://tproger.ru/translations/programming-concepts-stack-and-heap/ - статья о том что такое стек и куча для напоминания как все работает
#stack #heap
#stack #heap
Tproger
Стек и куча в программировании: чем отличаются, как работают, когда использовать
Разбираем ключевые концепции управления памятью: что такое стек (stack) и куча (heap), в чём разница между ними, как работает LIFO, указатели и сборщик мусора. Простое объяснение с примерами.
Forwarded from Pythonist.ru - образование по питону
Tips & Tricks. Библиотека Sympy: символьные вычисления в Python
В этой статье:
- используем SymPy как обычный калькулятор;
- алгебраические преобразования (раскрытие скобок, упрощение выражений);
- вычисления (вычисления пределов, дифференцирование, разложение в ряд, интегрирование, решение уравнений).
Читать статью
#tipsandtricks #модули
В этой статье:
- используем SymPy как обычный калькулятор;
- алгебраические преобразования (раскрытие скобок, упрощение выражений);
- вычисления (вычисления пределов, дифференцирование, разложение в ряд, интегрирование, решение уравнений).
Читать статью
#tipsandtricks #модули
https://testdriven.io/blog/django-lets-encrypt/ - быстрая настройка бесплатного https для django
#django #https #docker
#django #https #docker
testdriven.io
Securing a Containerized Django Application with Let's Encrypt
In this tutorial, we'll look at how to secure a containerized Django app running behind an HTTPS Nginx proxy with Let's Encrypt SSL certificates.
ключевое слово import на самом деле декоратор функции с именем _import_:
#import
>>> import itertools
>>> itertools
<module 'itertools' from '/usr/.../>
>>> itertools = _import_("itertools")
>>> itertools
<module 'itertools' from '/usr/.../>
#import
Forwarded from Pythonist.ru - образование по питону
Функции в Python: замыкания
В этой статье:
- нелокальная переменная во вложенной функции;
- определение замыкания;
- когда мы имеем дело с замыканием;
- когда стоит использовать замыкания.
Читать статью
#функции
В этой статье:
- нелокальная переменная во вложенной функции;
- определение замыкания;
- когда мы имеем дело с замыканием;
- когда стоит использовать замыкания.
Читать статью
#функции
https://www.cyborgsecurity.com/python-malware-on-the-rise/ - статья о использовании python для написании malware и о способах защиты
#security #malware #compiling
#security #malware #compiling
Cyborg Security
Python Malware On The Rise
The vast majority of malware has been written in assembly or compiled languages; however, more malware has been written in interpreted languages, such as Python.
https://pythonist.ru/kak-sozdavat-naglyadnye-grafiki-v-python-bystro-krasivo-i-ochen-krasivo/ - хорошая статья про графики в python
#plots
#plots
Pythonist
Создаем графики при помощи библиотек Python: быстро и красиво
Создание графиков при помощи библиотек языка Python. Библиотеки Matplotlib, Seaborn и Plotly. Большое количество примеров графиков и кода.