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

You learn them in parallel
Testing your software is as important as building it.

Testing helps you make informed decisions and make sure you dont brake something that works.

That being said, its not about Pytest or any other testing framework.
Its about testing itself which you need to learn and realize.

There are also diffrent kind of tests (unit tests, integration tests, end to end tests)
They all do testing, just on a diffrent scope.

So go start learning how testing software actually looks like, then you can start writing your own tests

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

Python

Search online for "decode Flask session cookie". It's a handy script to have around for Flask development work.

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

Python

so u means any frontend user sitting on the browser side, can get the to know the original string or key value pair written on the cookie without knowing my flask's secret key, but he can't modify this value without knowing the secret key!!!
is this what u means he xan see original things but can't modify, there why not to keep otp in session cookie

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

Python

Okay, it looks like, on user registration, you email them an OTP, then expect them to get it from the email and enter it on the website. In that case, you can't store it in the session cookie because, as I said above, the user can see the contents of the cookie and hence read the OTP from there instead of from the email.

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

Python

Flask signs its session cookie using the secret key, so it can tell if it has been tampered with. You don't need to reimplement this. The session cookie is not encrypted, so the user can see the contents (with a simple Python script to decode it), but they can't change the value without knowing the secret key and have the server accept the cookie.

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

Python

Hello i have started using the flask_login and by the some of the docs i found it say when i will use flask_login library, they say the behind the idea of login the user and later request to check if user is login alreay or not is to keep a user_id in the session of the user as a cookie in the browser storage, and later request my flask will get the id and retrieve the user object and by this it will know what the user is what his credential is.
So basic idea i will use a secret_key and store the user_id =str value in encrypted way in the browser, so that even the user try to change the cookie value by himself my flask will know that he try to modefy this so it will not valid to another user, right this concept is working like this?
i think yes what i need a confirmation if this is right ?

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

Python

docs.python.org
check some courses.

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

Python

https://codeberg.org/Ingwerperium/Ingwerperium/src/branch/main/Python_Lernplan_100_Projekte_en.text Looking for a Random Python Task Generator?

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

Python

Does I can access my gmail using python

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

Python

Hello,
Data science,
Could you specify more

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

Python

Anyone with link for python documentation?

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

Python

i wish to get basic from of pytest to learn 🤧

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

Python

Check out @PythonRes, a channel for Python resources - video courses, pdf books, tutorials and other info to help you learn Python.

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

Python

It is useful on any kind of projects, nor only web dev.

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

Python

i wish but didn't know about this before. how which

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

Python

Guys I want to know yours opinion now, as i go to make web app with flask i found pytest is a very must needy things what do you say, should we start learning pytest before flask or how i want to make a real python ecommerce app. what is ur opinion based on flask vs pytest???

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

Python

Thanks for clearify this, from now i will never think to use cookie like this what i thoght in past. you have change a lot of my thinking of web dev matters.

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

Python

Thanks for clear my confusion.
What i understand is suppose user_id is :- 1938292
so in th3 cookie it get saved as a random string like the id:- "yeiekndjsiiekwpsmnsmepw", you means any user who can see the upper random string, he can generate or see 1938292, i thought they cannot know what is written there,
so now i fully understand that i should to make a mechanism to store the otp in the backend not in cookie, as far as i understand any user maybe pro hacker type user can see what is stored in the cookie but can't change this... 😋

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

Python

What are you trying to achieve with the OTP?

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

Python

and then i listen that not keep private sensitivity data into the cookie of the user, like user request for register, and after he enter the email id, i send the otp and i need store the otp value in redis, but what would i store this in the session cookie, as they say not to store sensitivity data like otp there, so i am confused here in this scenerio, if keeping storing the user_id in the sesion is secure so why not keep session[otp_valid_for_10_minut] = 12221 liek this is so bad?
i have this problem anyone know this pls say what i should to do there

storing otp in session rather in redis is really critical, as my main login string of user_id is in the sesion coookie, why this is not bad tehre

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

Python

https://pythonbooks.org/free-books/

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

Python

I am a student of bca first of all wht should learn in python anyone help by sharing any lessons or document

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

Python

access means seeing all old email or sending email, i knew sending email using smtplib '

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

Python

More a topic for @pythonofftopic. When you post there, please remove your post from here.

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

Python

hi every one
I am working on Python for Data Science and am looking for a partner to help me along the way and study together.

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

Python

Read this please:
http://www.catb.org/~esr/faqs/smart-questions.html

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

Python

https://pythonbooks.org/free-books/

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

Python

btw from full basic as i not know anything what what docs and article do you guys prefer so that i can start from know what and how to use and then learn what code to write properly what any articles u say feom user friendly

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

Python

How Do You Developer, say to learn Pytest, is this will help me only in web dev or in what other case it helps us, i mostly found using in web dev, is this really so necessary to learn in real production! what u think in real mind

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

Python

ok i will do making the project first 💚 thanks for you support btw

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