#httpx — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #httpx, aggregated by home.social.
-
Tilda + СБИС Presto: пишем интеграцию на Python, когда готового решения не существует
Клиент пришёл с простой задачей: заказы с сайта на Tilda должны автоматически попадать в СБИС Presto. Казалось бы, популярные инструменты — должно быть готовое решение. Его не оказалось. Написали свой сервис месяц в продакшене, всё работает. Рассказываем как — с кодом, граблями и объяснением неочевидных мест в документации СБИС. Стек: Python, FastAPI, Pydantic, httpx, cachetools.
https://habr.com/ru/articles/1030324/
#python #fastapi #сбис #tilda #webhook #интеграция #pydantic #httpx #presto
-
Tilda + СБИС Presto: пишем интеграцию на Python, когда готового решения не существует
Клиент пришёл с простой задачей: заказы с сайта на Tilda должны автоматически попадать в СБИС Presto. Казалось бы, популярные инструменты — должно быть готовое решение. Его не оказалось. Написали свой сервис месяц в продакшене, всё работает. Рассказываем как — с кодом, граблями и объяснением неочевидных мест в документации СБИС. Стек: Python, FastAPI, Pydantic, httpx, cachetools.
https://habr.com/ru/articles/1030324/
#python #fastapi #сбис #tilda #webhook #интеграция #pydantic #httpx #presto
-
Tilda + СБИС Presto: пишем интеграцию на Python, когда готового решения не существует
Клиент пришёл с простой задачей: заказы с сайта на Tilda должны автоматически попадать в СБИС Presto. Казалось бы, популярные инструменты — должно быть готовое решение. Его не оказалось. Написали свой сервис месяц в продакшене, всё работает. Рассказываем как — с кодом, граблями и объяснением неочевидных мест в документации СБИС. Стек: Python, FastAPI, Pydantic, httpx, cachetools.
https://habr.com/ru/articles/1030324/
#python #fastapi #сбис #tilda #webhook #интеграция #pydantic #httpx #presto
-
Tilda + СБИС Presto: пишем интеграцию на Python, когда готового решения не существует
Клиент пришёл с простой задачей: заказы с сайта на Tilda должны автоматически попадать в СБИС Presto. Казалось бы, популярные инструменты — должно быть готовое решение. Его не оказалось. Написали свой сервис месяц в продакшене, всё работает. Рассказываем как — с кодом, граблями и объяснением неочевидных мест в документации СБИС. Стек: Python, FastAPI, Pydantic, httpx, cachetools.
https://habr.com/ru/articles/1030324/
#python #fastapi #сбис #tilda #webhook #интеграция #pydantic #httpx #presto
-
Why I forked httpx - the popular python package:
-
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."
https://fpgmaas.com/blog/collapse-of-mkdocs/
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.
https://web.archive.org/web/20260228113715/https://github.com/encode/httpx/discussions/3784
That also explained why starlette moved out of the organization a while back:
https://web.archive.org/web/20260323042730/https://github.com/Kludex/starlette/issues/3180
There's a great rot in #OpenSource.
-
Hey, in light of https://github.com/encode/httpx/discussions/3784 , does anyone know of how to get in touch or give feedback?
I guess there's a stackoverflow tag
-
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.
-
HTTPX is a nice Python HTTP client. Here is a comparison of HTTPX synchronous and asynchronous clients.
-
Восемь высокопроизводительных Python-библиотек в копилку разработчикам
Когда в 1991 году Гвидо ван Россум представил миру Python, никто не мог предсказать, какое место через несколько десятилетий этот язык займет в веб-разработке, Data Science и Machine Learning. Сейчас Python продолжает развиваться: с новым поколением инструментов в прошлое уходят традиционные ограничения — производительность, GIL и сложность параллельных вычислений. Привет, Хабр! С вами Леша Жиряков, я руковожу бэкенд-направлением витрины KION, возглавляю гильдию по Python и пишу для блога MWS на Хабре. Я каждый день сталкиваюсь с вызовами высоконагруженных систем и сформировался пул инструментов, которые помогают решать критические проблемы современной разработки — от обработки данных с Polars до управления зависимостями с UV. В этом материале я сделаю обзор Python-библиотек, с которыми можно создавать системы, сравнимые по производительности с Go и Rust.
https://habr.com/ru/companies/ru_mts/articles/968776/
#библиотеки #python #fastapi #litestar #polars #httpx #dask #Pydantic_V2 #ruff #Pithon_UV
-
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!" 🍀
https://honeyryderchuck.gitlab.io/httpx/wiki/Fiber-Concurrency #OvercomplicateYourLife #FiberConcurrency #CodingJuggling #CircusClown #HackerNews #ngated -
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!" 🍀
https://honeyryderchuck.gitlab.io/httpx/wiki/Fiber-Concurrency #OvercomplicateYourLife #FiberConcurrency #CodingJuggling #CircusClown #HackerNews #ngated -
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!" 🍀
https://honeyryderchuck.gitlab.io/httpx/wiki/Fiber-Concurrency #OvercomplicateYourLife #FiberConcurrency #CodingJuggling #CircusClown #HackerNews #ngated -
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!" 🍀
https://honeyryderchuck.gitlab.io/httpx/wiki/Fiber-Concurrency #OvercomplicateYourLife #FiberConcurrency #CodingJuggling #CircusClown #HackerNews #ngated -
Асинхронные тесты для UI и API на Python: примеры, подводные камни и трезвый вывод
Асинхронность в тестах выглядит как способ «бесплатно» ускорить прогон: пока один тест ждёт ответа сервера, другой мог бы выполняться. Я переписал UI (Playwright) и API (HTTPX) тесты на async/await, прогнал их в CI/CD и посмотрели на результат. Спойлер: магического ускорения не произошло — разбираемся, почему так и когда асинхронность всё-таки нужна.
https://habr.com/ru/articles/933652/
#тестирование #pytest #async #asyncio #api_тестирование #ui_тестирование #python #httpx #playwright #qa_automation
-
Нагрузочное тестирование на Python и Locust с запуском на CI/CD
Разбираемся, как организовать нагрузочное тестирование на Python с Locust — с сидинговыми сценариями , кастомными API-клиентами на HTTPX, конфигурацией через Pydantic и автоматическим запуском в GitHub Actions . Всё — на практике, с архитектурой, фреймворком и публикацией отчётов в GitHub Pages.
https://habr.com/ru/articles/929136/
#нагрузка #нагрузочное_тестирование #нагрузочные_тесты #python #locust #тестирование_производительности #cicd #github_actions #httpx #pydantic
-
Нагрузочное тестирование на Python и Locust с запуском на CI/CD
Разбираемся, как организовать нагрузочное тестирование на Python с Locust — с сидинговыми сценариями , кастомными API-клиентами на HTTPX, конфигурацией через Pydantic и автоматическим запуском в GitHub Actions . Всё — на практике, с архитектурой, фреймворком и публикацией отчётов в GitHub Pages.
https://habr.com/ru/articles/929136/
#нагрузка #нагрузочное_тестирование #нагрузочные_тесты #python #locust #тестирование_производительности #cicd #github_actions #httpx #pydantic
-
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. 🥰
-
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🤦
-
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.
-
Collections des projets Encode https://www.encode.io/projects/
#starlette (toolkit asgi)
https://github.com/encode/starlette#HTTPX un client #async http (pas loin de requests)
https://github.com/encode/httpxLe fameux #DRF
https://github.com/encode/django-rest-framework -
Как построить асинхронное Python-приложение для рассылки уведомлений о событии
В этой статье рассмотрим создание асинхронного приложения на Python с использованием библиотеки httpx для рассылки уведомлений пользователям о предстоящих событиях, на которые они зарегистрировались.
https://habr.com/ru/companies/exolve/articles/834412/
#webразработка #api #sms_api #python #мтс_exolve #рассылка_сообщений #smsсервис #httpx #cron
-
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
-
The #Python requests lib feels dead. So, with little effort, we switched to #httpx: https://github.com/cusyio/Python4DataScience/commit/b99a8aa5015b06748fec601ba9e3e6d8c32a8444
See also ‘A Retrospective on Requests’ by @sigmavirus24: https://blog.ian.stapletoncordas.co/2024/02/a-retrospective-on-requests
You can find more information about switching to httpx in the ‘Requests Compatibility Guide’: https://www.python-httpx.org/compatibility/
-
LB: making stuff "for humans" (which IIRC is the "art statement" behind #requests) is a noble goal. And if the tool is the #1 download on pypi that means there's an actual appeal to that and I'd go as far as to say that "artful" stuff like that, even if a bit toy-like, is (partially, at least) responsible for Python's popularity. #Httpx API even follows somewhat the same ethos but with better engineering, it seems.
-
-
Played around with httpx and respx this weekend. Can thoroughly recommend respx for mocking httpx calls.
-
Scanning for CISA Top exploited vulnerabilities
subfinder -d site.com -all -silent | httpx -silent | nuclei -rl 50 -c 15 -timeout 10 -tags cisa -vv
https://github.com/projectdiscovery/subfinder
https://github.com/projectdiscovery/httpx
https://github.com/projectdiscovery/nuclei
https://github.com/projectdiscovery/nuclei-templates
#bugbounty #bugbountytips #subfinder #nuclei #httpx #cisa