home.social

#httpx — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #httpx, aggregated by home.social.

fetched live
  1. httpx2 2.6.0 -- everyones favorite Python http client -- is out now! It includes native websocket support and also support for the brand new QUERY method for HTTP, and of course again bug fixes.

    If you did not upgrade yet from httpx, now is the time!
    --> github.com/pydantic/httpx2/rel

  2. httpx2 2.6.0 -- everyones favorite Python http client -- is out now! It includes native websocket support and also support for the brand new QUERY method for HTTP, and of course again bug fixes.

    If you did not upgrade yet from httpx, now is the time!
    --> github.com/pydantic/httpx2/rel

    #python #httpx #httpx2 #pydantic

  3. Мой мониторинг аптайма сам нагенерил 932 фантомных падения

    2 июня мой мониторинг аптайма разом отрапортовал, что упало почти всё: 932 инцидента за 25 минут. Сайты были живы — все до единого. Виноваты дефолтный лимит файловых дескрипторов 1024 и «оптимизация», тихо размножившаяся в 60 раз. Разбираю по приборам: /proc, ss, EMFILE и почему docker compose restart не спасает.

    habr.com/ru/articles/1052038/

    #EMFILE #ulimit #nofile #file_descriptors #Docker #httpx #connection_pool #FastAPI #postmortem #мониторинг

  4. Tilda и СБИС Presto: как мы синхронизируем остатки через стоп-лист, а не каталог

    Как мы избавили общепит от часа ручной работы каждое утро: разобрали реальный кейс синхронизации стоп-листа из СБИС Presto в каталог на Tilda через CommerceML. Поток на Python/FastAPI, дебаунс через SHA-256, eventual consistency без очередей и грабли, на которые наступили в проде. Решение и грабли

    habr.com/ru/articles/1043428/

    #python #fastapi #tilda #сбис #commerceml #интеграция #httpx #presto #синхронизация_остатков

  5. Tilda + СБИС Presto: пишем интеграцию на Python, когда готового решения не существует

    Клиент пришёл с простой задачей: заказы с сайта на Tilda должны автоматически попадать в СБИС Presto. Казалось бы, популярные инструменты — должно быть готовое решение. Его не оказалось. Написали свой сервис месяц в продакшене, всё работает. Рассказываем как — с кодом, граблями и объяснением неочевидных мест в документации СБИС. Стек: Python, FastAPI, Pydantic, httpx, cachetools.

    habr.com/ru/articles/1030324/

    #python #fastapi #сбис #tilda #webhook #интеграция #pydantic #httpx #presto

  6. Why I forked httpx | Blog

    🔥 Check out this must-read post from Hacker News 📖 📂 **Category**: 💡 **What You’ll Learn**: Why I forked httpx published on 2026-03-25 · tagged with #httpx, #httpxyz and #python Yesterday I forked httpx. The new fork is called httpxyz. Reasons for the fork HTTPX is a very popular HTTP client for Python. There is lots of code depending on it.

    viralpique.com/why-i-forked-ht

  7. There's a new piece explaining "The Slow Collapse of #MkDocs": "How personality clashes, an absent founder, and a controversial redesign fractured one of Python's most popular projects."

    fpgmaas.com/blog/collapse-of-m

    Well, that says a lot. But what's really interesting is that MkDocs 2.x is being developed as part of the "encode" organization. That's great, right? The people who gave us such great libraries as #httpx?

    Well, turns out no, not at all. It looks like encode has already crumbled and became immensely toxic.

    httpx is not allowing bug reports anymore, apparently because of "absurdly skewed gender representation", whatever that means.

    web.archive.org/web/2026022811

    That also explained why starlette moved out of the organization a while back:

    web.archive.org/web/2026032304

    There's a great rot in #OpenSource.

    #FreeSoftware #Python

  8. There's a new piece explaining "The Slow Collapse of #MkDocs": "How personality clashes, an absent founder, and a controversial redesign fractured one of Python's most popular projects."

    fpgmaas.com/blog/collapse-of-m

    Well, that says a lot. But what's really interesting is that MkDocs 2.x is being developed as part of the "encode" organization. That's great, right? The people who gave us such great libraries as #httpx?

    Well, turns out no, not at all. It looks like encode has already crumbled and became immensely toxic.

    httpx is not allowing bug reports anymore, apparently because of "absurdly skewed gender representation", whatever that means.

    web.archive.org/web/2026022811

    That also explained why starlette moved out of the organization a while back:

    web.archive.org/web/2026032304

    There's a great rot in #OpenSource.

    #FreeSoftware #Python

  9. Hey, in light of github.com/encode/httpx/discus , does anyone know of how to get in touch or give feedback?

    I guess there's a stackoverflow tag

    #Python #HTTPX

  10. Hey, in light of github.com/encode/httpx/discus , does anyone know of how to get in touch or give feedback?

    I guess there's a stackoverflow tag

    #Python #HTTPX

  11. Ok, I got a #Python #HTTPX problem.

    I have a few custom httpx.Auth implementations, but I want them to pull from some common flows--namely GitHub Actions get-an-OIDC.

    In the standard form, you can just use `yield from`, and then requests and responses get shuffled around correctly, and you can just be like `token = yield from do_github()`

    but then I need to do non-http async things, and it all gets messy.

    because async generator can't use `yield from`, and all i've got is manual pumping.

  12. Ok, I got a #Python #HTTPX problem.

    I have a few custom httpx.Auth implementations, but I want them to pull from some common flows--namely GitHub Actions get-an-OIDC.

    In the standard form, you can just use `yield from`, and then requests and responses get shuffled around correctly, and you can just be like `token = yield from do_github()`

    but then I need to do non-http async things, and it all gets messy.

    because async generator can't use `yield from`, and all i've got is manual pumping.

  13. HTTPX is a nice Python HTTP client. Here is a comparison of HTTPX synchronous and asynchronous clients.

    gavinw.me/notes/python/httpx-s

  14. HTTPX is a nice Python HTTP client. Here is a comparison of HTTPX synchronous and asynchronous clients.

    gavinw.me/notes/python/httpx-s

    #python #httpx #async

  15. Восемь высокопроизводительных Python-библиотек в копилку разработчикам

    Когда в 1991 году Гвидо ван Россум представил миру Python, никто не мог предсказать, какое место через несколько десятилетий этот язык займет в веб-разработке, Data Science и Machine Learning. Сейчас Python продолжает развиваться: с новым поколением инструментов в прошлое уходят традиционные ограничения — производительность, GIL и сложность параллельных вычислений. Привет, Хабр! С вами Леша Жиряков, я руковожу бэкенд-направлением витрины KION, возглавляю гильдию по Python и пишу для блога MWS на Хабре. Я каждый день сталкиваюсь с вызовами высоконагруженных систем и сформировался пул инструментов, которые помогают решать критические проблемы современной разработки — от обработки данных с Polars до управления зависимостями с UV. В этом материале я сделаю обзор Python-библиотек, с которыми можно создавать системы, сравнимые по производительности с Go и Rust.

    habr.com/ru/companies/ru_mts/a

    #библиотеки #python #fastapi #litestar #polars #httpx #dask #Pydantic_V2 #ruff #Pithon_UV

  16. In today's electrifying episode of "Overcomplicate Your Life," we've got the Fiber Concurrency plugin, because who doesn't want to juggle fibers like a circus clown while their code hangs by a thread? 🎪🤹‍♂️ Apparently, if you're using #HTTPX, this is your golden ticket to a world where "seamless" means "good luck!" 🍀
    honeyryderchuck.gitlab.io/http #OvercomplicateYourLife #FiberConcurrency #CodingJuggling #CircusClown #HackerNews #ngated

  17. In today's electrifying episode of "Overcomplicate Your Life," we've got the Fiber Concurrency plugin, because who doesn't want to juggle fibers like a circus clown while their code hangs by a thread? 🎪🤹‍♂️ Apparently, if you're using #HTTPX, this is your golden ticket to a world where "seamless" means "good luck!" 🍀
    honeyryderchuck.gitlab.io/http #OvercomplicateYourLife #FiberConcurrency #CodingJuggling #CircusClown #HackerNews #ngated

  18. Асинхронные тесты для UI и API на Python: примеры, подводные камни и трезвый вывод

    Асинхронность в тестах выглядит как способ «бесплатно» ускорить прогон: пока один тест ждёт ответа сервера, другой мог бы выполняться. Я переписал UI (Playwright) и API (HTTPX) тесты на async/await, прогнал их в CI/CD и посмотрели на результат. Спойлер: магического ускорения не произошло — разбираемся, почему так и когда асинхронность всё-таки нужна.

    habr.com/ru/articles/933652/

    #тестирование #pytest #async #asyncio #api_тестирование #ui_тестирование #python #httpx #playwright #qa_automation

  19. Нагрузочное тестирование на Python и Locust с запуском на CI/CD

    Разбираемся, как организовать нагрузочное тестирование на Python с Locust — с сидинговыми сценариями , кастомными API-клиентами на HTTPX, конфигурацией через Pydantic и автоматическим запуском в GitHub Actions . Всё — на практике, с архитектурой, фреймворком и публикацией отчётов в GitHub Pages.

    habr.com/ru/articles/929136/

    #нагрузка #нагрузочное_тестирование #нагрузочные_тесты #python #locust #тестирование_производительности #cicd #github_actions #httpx #pydantic

  20. I'm super excited about @thom's preview of the upcoming 1.0 of HTTPX. It's shaping up to be the Python HTTP toolkit I always wanted.

    Just go look at that server example on the homepage. And it gets better from there. 🥰

    encode.io/httpnext/ #Python #HTTP #HTTPX

  21. I'm super excited about @thom's preview of the upcoming 1.0 of HTTPX. It's shaping up to be the Python HTTP toolkit I always wanted.

    Just go look at that server example on the homepage. And it gets better from there. 🥰

    encode.io/httpnext/ #Python #HTTP #HTTPX

  22. State of client side HTTP in #python

    - stdlib http.client - HTTP/1.1 only, docs recommend to use requests instead.
    - requests - poorly maintained, in 2020 stopped working when servers deprecated older TLS versions. HTTP/1.1 only, sync only
    - #httpx - comparatively slow and API design is driven by compatibility with browsers. Some users plug-in aiohttp for better performance. Supports HTTP/2 but it's discouraged as not optimized.
    - #aiohttp - good API, both client and server but seems more focused on the server side; HTTP/1.1 only.
    - #niquests - async fork of requests with HTTP/2, but uses forked urllib3 with the same package name as the original, which messes up deployment.
    - #aioquic - client & server, HTTP/3 only

    🤦

    #pythonRequests #programming

  23. State of client side HTTP in #python

    - stdlib http.client - HTTP/1.1 only, docs recommend to use requests instead.
    - requests - poorly maintained, in 2020 stopped working when servers deprecated older TLS versions. HTTP/1.1 only, sync only
    - #httpx - comparatively slow and API design is driven by compatibility with browsers. Some users plug-in aiohttp for better performance. Supports HTTP/2 but it's discouraged as not optimized.
    - #aiohttp - good API, both client and server but seems more focused on the server side; HTTP/1.1 only.
    - #niquests - async fork of requests with HTTP/2, but uses forked urllib3 with the same package name as the original, which messes up deployment.
    - #aioquic - client & server, HTTP/3 only

    🤦

    #pythonRequests #programming

  24. Did some benchmarking of how fast #Python (3.13) w/ async #httpx and #Pydantic could query a JSON API vs. #GoLang (both including unmarshalling to native types and some regex validation).

    While Python could do about 2.5k requests per second against localhost when running singlecore, Go did 10k.

    However, not only is Go "only" 4× as fast, these differences quickly shrink to 30 % when you introduce an actual network between the hosts, and become irrelevant with rate limiting & DDoS protection.

  25. Did some benchmarking of how fast #Python (3.13) w/ async #httpx and #Pydantic could query a JSON API vs. #GoLang (both including unmarshalling to native types and some regex validation).

    While Python could do about 2.5k requests per second against localhost when running singlecore, Go did 10k.

    However, not only is Go "only" 4× as fast, these differences quickly shrink to 30 % when you introduce an actual network between the hosts, and become irrelevant with rate limiting & DDoS protection.

  26. Как построить асинхронное Python-приложение для рассылки уведомлений о событии

    В этой статье рассмотрим создание асинхронного приложения на Python с использованием библиотеки httpx для рассылки уведомлений пользователям о предстоящих событиях, на которые они зарегистрировались.

    habr.com/ru/companies/exolve/a

    #webразработка #api #sms_api #python #мтс_exolve #рассылка_сообщений #smsсервис #httpx #cron

  27. one issue i encountered: the official #bluesky #api works, you can add hashtags, links, and create longer messages (threads)

    however, the links are only clickable, no #thumbnail and other information are shown directly ⟶ which is done for you #automatically by #linkedin as an example

    so the solution is, we need to fetch some data ourselves and then pass them to the link card. we might use #requests, #httpx, #BeautifulSoup, #selenium, or my current favorite #playwright

  28. The #Python requests lib feels dead. So, with little effort, we switched to #httpx: github.com/cusyio/Python4DataS

    See also ‘A Retrospective on Requests’ by @sigmavirus24: blog.ian.stapletoncordas.co/20

    You can find more information about switching to httpx in the ‘Requests Compatibility Guide’: python-httpx.org/compatibility

  29. Played around with httpx and respx this weekend. Can thoroughly recommend respx for mocking httpx calls.

    github.com/lundberg/respx

    #Python #httpx #respx