Nicolas Steinmetz · @nsteinmetz
79 followers · 60 posts · Server piaille.fr

Pour ceux qui font du python et utilisent FastAPI, la version 0.92 fixe un bug de s茅curit茅 avec la mise 脿 jour de Startlette en 0.25.0.

Le bug peut conduire 脿 un DoS si votre api permet l'upload de fichiers au travers de formulaires. L'envoi d'une multititudes de petits fichiers peut provoquer une grosse consommation CPU & RAM.

github.com/tiangolo/fastapi/re

#python #fastapi #starlette #security

Last updated 3 years ago

Matt Layman · @mblayman
119 followers · 403 posts · Server mastodon.social

馃悕 I needed a mock web service to mimic the behavior of a third party service in a large testing environment. This article shows how I created that service using in . mattlayman.com/blog/2019/starl

#starlette #python

Last updated 3 years ago

TsDeijahVu · @TsDeijahVu
0 followers · 1 posts · Server mindly.social
Micha艂 G贸rny :gentoo: · @mgorny
149 followers · 285 posts · Server fosstodon.org

Yet another package started using `multipart`causing impossible blocker against `python-multipart` used by . Unfortunately, this just proves how rotten packaging () is at the core.

github.com/lorien/test_server/

#starlette #python #pypi

Last updated 3 years ago

Fredrik Averpil :python: · @fredrikaverpil
132 followers · 218 posts · Server fosstodon.org

Did you know that FastAPI provides the TestClient only as a convenience for you?
You can also do `from starlette import TestClient`. This is stated in the FastAPI docs.

Turns out that with Starlette 0.21.0 (used by FastAPI 0.87.0), they replaced requests with httpx for this TestClient. This actually introduces som breaking changes... they even introduced a tool called bump-testclient for this migration.

Read more here about bump-testclient: github.com/Kludex/bump-testcli

#python #fastapi #starlette

Last updated 3 years ago

NaamanHirschfeld · @nhirschfeld
3 followers · 2 posts · Server fosstodon.org

is signficantly faster rendering response headers and cookies than and

#starlite #starlette #fastapi

Last updated 3 years ago

Micha艂 G贸rny · @mgorny
43 followers · 29 posts · Server fosstodon.org

packaging fun: requires httpx and python-multipart, requires multipart (and both are part of the same organization on GitHub). python-multipart and multipart are two packages colliding over multipart module/package, so they cannot be installed simultaneously.

github.com/encode/starlette/di

#gentoo #python #starlette #httpx

Last updated 3 years ago

Marcelo Trylesinski · @marcelotryle
98 followers · 10 posts · Server fosstodon.org

Let's do my

I'm a smiley person, and my hobbies are soccer, gym and coding.

I'm also a expert, and maintainer of & .

My week days are pretty much the same: I wake up, I eat 3 eggs, yogurt with cereal, and a coffee. Followed by some open source, gym, work, and at night I do more open source.

On my weekends I do open source, gym and soccer. 馃榿

I lived in 馃嚙馃嚪馃嚭馃嚲馃嚘馃嚪馃嚠馃嚬馃嚜馃嚫馃嚠馃嚤馃嚝馃嚪, and now I live in 馃嚦馃嚤.

I speak 馃嚙馃嚪馃嚭馃嚲馃嚠馃嚬馃嚭馃嚥, and I want to learn 馃嚝馃嚪馃嚦馃嚤馃嚭馃嚘.

#introduccion #fastapi #starlette #uvicorn

Last updated 3 years ago

FoxMaSk 馃尩 · @foxmask
51 followers · 1201 posts · Server framapiaf.org

je cherche 脿 lacher mon VPS chez OVH.

si quelqu'un aurait du rab de CPU/RAM/DISK pour 3 projets python ( et sont les fwk ) les bases sont minusculus :D (la plus grosse 80Mo la plus petite: 8ko :)

les appli sont
shaarpy.foxmask.org
mb.foxmask.org
la troisieme n'utilise pas d'app web (celle avec 8ko de db;)

#starlette #django #demenagement

Last updated 3 years ago

FoxMaSk 馃尩 · @foxmask
51 followers · 1202 posts · Server framapiaf.org

j'avais la flemme de le faire en anglais et en cor茅en mais voil脿 qd meme le 1掳 billet 2022 :)

Piq没re de rappel sur les projets home made

foxmask.org/post/2022/01/02/de

#starlette #django #python

Last updated 4 years ago

FoxMaSk 馃尩 · @foxmask
51 followers · 1202 posts · Server framapiaf.org

Une petite version de plus pour gitlab.com/annyong/yeoboseyo qui permet maintenant de poster dans :P ou pire encore dans :D

#microservice #python #starlette #telegram #wallabag

Last updated 4 years ago

FoxMaSk 馃尩 · @foxmask
51 followers · 1202 posts · Server framapiaf.org

I'm a little bit disappointed by encode.io/databases/
there is no problem with sqlite but I could not use Postgresql. The scripts tried to connect the server but said the server is not started, which is, of course completly false... :/

#postgresql #database #starlette #python

Last updated 4 years ago