python | Unsorted

Telegram-канал python - Python

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

Subscribe to a channel

Python

Guys who live usa???

Читать полностью…

Python

also read
https://flask.palletsprojects.com/en/stable/web-security/#set-cookie-options

Читать полностью…

Python

Yes i will do this session changin myself, i need to learn these things, as i am very beginner, i am all confused with this cookie, sesison like this things all time, and also i listen client side user can modefy with some hacking tools, i am not familiar with those things, about how to change cookie in a way the backend will not notice this, like this things i am trying to learn also.
Now i will try to check this by modefying and using api_dog like this right and check from there?

Читать полностью…

Python

Form validation compares the CSRF token submitted with the form to the CSRF token in the session. If you're still not convinced about the session cookie, try to edit a value in your own session cookie and see what happens.

Читать полностью…

Python

its the best for AI and machine learning

and it can be good for backend (but its not the best)

Читать полностью…

Python

Flask does this automatically. If it detects the session has been tampered with, you won't get the values in session. This is separate to form validation.

Читать полностью…

Python

Python is the most powerful language currently and you can do tons of things using it 💯

Learning it is a never ending process 👍🏻

Читать полностью…

Python

Try pywebview. It's like tauri and wails3 but for python, you develop your frontend use HTML, JS and CSS, communicate with your python code without taking any port

Читать полностью…

Python

read
https://flask.palletsprojects.com/en/stable/quickstart/#sessions

Читать полностью…

Python

I’m starting with Python programming. Which topics should I focus on first as a beginner? Any suggestions?”

Читать полностью…

Python

read the rules carefully
crossposting is forbidden

Читать полностью…

Python

I know it’s a bit off-topic, but I asked because I’m genuinely worried about my future. I don’t really have another skill or career besides programming, and given the very difficult political situation in my country, I’m especially concerned about what the future might look like.

A few years ago, building even a simple frontend could be extremely difficult for me and I had to struggle with every line of code. But now, with AI agents, I can build things much more easily, sometimes without writing a single line of code myself.

That’s why I’m wondering where this leaves programmers like me in the future.

Читать полностью…

Python

What’s your opinion on the future of software development and coding in the age of AI tools like Claude? Do you think AI will replace programmers, or will it mainly change the way we build software?

Читать полностью…

Python

Honestly, I don't really know yet. I just thought learning Python would be useful for my career. But you're right. I should have a clearer goal. Any advice on how to figure that out?

Читать полностью…

Python

You can sustain "watching" other people. You need to be able to learn yourself. The job is about learning yourself. Not being taught everything.

Читать полностью…

Python

Yes i will research on these topics and try to learn these, btw thanks for so much helpful thigns and idea i never thought like this before that i can do changing myself and check, this is very informative btw 💚

Читать полностью…

Python

try to assign to the session['login_pending']

wont that do the trick?

Читать полностью…

Python

please give us an update with your experiment if you'll do it

happy coding

Читать полностью…

Python

the duration of learning depend on you

a professional programmer can learn it in less than a day

you probably will take a week or two

and if you took a deep course it will take more than a month

Читать полностью…

Python

now i maybe understand, for flask_wtf it check the csrf thats why it had form.validate_on_submit, and it detect the if the session cookie got tampred and csrf random value got submitted.

And in this case for normal flask.session's .get(key) if this key got tampered the
sesssion.get(key_name) will returns me the None, if this got tampred i will always get none, so i am fully relax now to check the pending_email like this which are in the session cookie.

Читать полностью…

Python

My question was that after learning only Python language, in which fields can one go and what is the duration of learning this language?

Читать полностью…

Python

What can we do by just learning python and what is the duration of learning phyton?

Читать полностью…

Python

A programming language is a language used to communicate with a computer.

Читать полностью…

Python

do u know what is a programming language?

Читать полностью…

Python

🤔 i have a fllask + flask-login session security question
When I use login_user(user_obj), I understand Flask protects the session cookie from client-side modification/tampering.
But I also store things like:

session['login_pending'] = {'email': 'a@gmail.com'}

and later access it with:
session.get('login_pending')

🔐 My question: How can I be sure the user hasn't modified the email inside the session cookie to someone else's email?
Does Flask automatically detect/prevent this when I read session manually, or do I need to verify/sign/check it separately in my route?
And is this protection related to Flask-WTF's form.validate_on_submit(), or are these two things completely separate? is notmal session data reads protect lile form.validate_on_submit()

Читать полностью…

Python

looks like you need an offtopic group, please delete the off-topic message(s) and continue this conversation at @pythonofftopic

Читать полностью…

Python

its offtopic, however, will not replace programmers (at least, will not replace who know how to play good with the agents), and yeah, agents will change the way we write software on the speed and efficiency face

Читать полностью…

Python

Fair point, i get it.

Читать полностью…

Python

Think about why you're learning Python. What problems do you want to use it to solve?

Читать полностью…

Python

That actually makes sense. The problem is, I have no idea what project to start with. I'm literally a total beginner - all I know right now is 'Hello, World!' Do you have any suggestions for someone who's just starting out?

Читать полностью…
Subscribe to a channel