135201
You will be muted until you read the rules. Read them! @Rules_for_Python A group about the Python programming language. Offtopic things go here: @pythonofftopic Resources to learn python: @pythonres Group for Hy: @hylang Selenium: @SeleniumPython
If you mean writing python, you can use any text editor, code is text
Читать полностью…
This is not a Python specific question, please delete your offtopic message, move to @PythonOfftopic and ask there.
Читать полностью…
Please don't send useless messages. Also, please delete all those useless messages you have already sent! (rule #3)
Читать полностью…
hi = "nigeria"
hie = "lagos"
oss = f"I live in ${hie}, ${hi}"
print(oss)
Hey it's my first do python and I want to get a high Certificate so can anyone help me please I am still only 18 and from SA......
Читать полностью…
ROOT = Path(__file__).parent
SRC = ROOT / "src"
OUT = ROOT / "docs"
if OUT.exists():
shutil.rmtree(OUT)
OUT.mkdir()
Semaphore:
https://docs.python.org/3/library/asyncio-sync.html#semaphore
See Friends, when i request to a public endpoint it gives me a file to download, now i want to download the files in parallel so i am using the async.gather there, but suppose i have to download 100 files, but i want only 5 download at once max, so for this what is easiest way to achieve as 5 download req to endpoint will send in a single time.
Читать полностью…
In one of my learning fastapi project i did uv run uvicorn main:app which runs the fastapi server there, what i got a new thigns in the terminal output it shows like this i send below here.
i want to know it shows localhost:random_int what is this why sometime this is same and sometime it is different what is this called is this any important, i rather want to shows timestamp when the req came in log in terminal what do you say will those number 47360,48572... needs when?
INFO: Started server process [9693]Читать полностью…
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:9999 (Press CTRL+C to quit)
INFO: 127.0.0.1:47360 - "GET /api/health HTTP/1.1" 200 OK
INFO: 127.0.0.1:47374 - "GET /api/health HTTP/1.1" 200 OK
INFO: 127.0.0.1:48572 - "GET /api/health HTTP/1.1" 200 OK
INFO: 127.0.0.1:48572 - "GET /api/health HTTP/1.1" 200 OK
INFO: 127.0.0.1:48572 - "GET /api/health HTTP/1.1" 200 OK
INFO: 127.0.0.1:60242 - "GET /api/health HTTP/1.1" 200 OK
INFO: 127.0.0.1:60250 - "GET /api/health HTTP/1.1" 200 OK
INFO: 127.0.0.1:60242 - "GET /api/health HTTP/1.1" 200 OK
Hi guys please I want build an app which measures the morphometric traits of livestock. It should snap the animals in the field and provide the estimated result of the measurement. It can run on Android devices.
How do I do it?
i find that JWT, i am currently using fastapi to make normal website with html,css,js here jwt will a good choice ???
Читать полностью…
When using a Flask web app with Flask-Login, a cookie is saved in the browser. If a user attempts to modify the cookie key, Flask detects and blocks the login attempt. What is the best equivalent approach in FastAPI? I have heard that I need to manually implement something with middleware, but I do not understand what is required here. Based on your experience, what do I need to learn to implement a standard email and password login mechanism in FastAPI or any better easy way ?
Читать полностью…
Hello
I want to know what application software is best to practice python
Hey , can anyone help me
I want to make this type website
https://studymonkeyrwa.vercel.app/
How can I make?
Please don't send useless messages. Also, please delete all those useless messages you have already sent! (rule #3)
Читать полностью…
Then you need to wait until it works again. In the meantime, you can try https://realpython.com/
Читать полностью…
We can't help with certificates. But if you want to learn Python, we may have some pointers.
Читать полностью…
As always
Docs has everything you need
https://docs.python.org/3/library/pathlib.html
looks like you need an offtopic group, please delete the off-topic message(s) and continue this conversation at @pythonofftopic
Читать полностью…
https://docs.python.org/3/library/asyncio-sync.html#semaphore
Читать полностью…
As for the *random ports*
They are called Ephemeral port
https://en.wikipedia.org/wiki/Ephemeral_port
As for the logging see https://apitally.io/blog/fastapi-logging-guide
looks like you need an offtopic group, please delete the off-topic message(s) and continue this conversation at @pythonofftopic
Читать полностью…
Well yeah, you can
You can store whatever in a cookie
But that is not the usual way how APIs work
Of course, it always depends on the use case
https://fastapi.tiangolo.com/tutorial/middleware/
https://fastapi.tiangolo.com/tutorial/security/first-steps/
And no, in APIs you do not use cookies
You use JWT (usually)