question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

st.text_input: support password input

See original GitHub issue

st.text_input should support setting the input type to “password”

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:17
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

16reactions
tconklingcommented, May 29, 2020

Hi @Laksh1997 - this feature was shipped in January, in PR #963, so if you’re using a recent-ish version of Streamlit, you can create a password input like this:

password = st.text_input("Enter a password", type="password")
5reactions
mo-jancommented, Dec 17, 2019

Is anyone currently using Streamlit to access APIs or services with OAuth2? I am trying to build a hosted app where users can access a Rest API by providing their clientID and password.

A feature similar to the Python Getpass library, living within the Streamlit UI would be awesome.

Or is there already a solution for this? Seems to me a very common use case.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Password Text Fields - Using Streamlit
I'm creating a Streamlit app to interact with a cloud based ML platform, and I was wondering if there was a way to...
Read more >
How do you style a TextInput in react native for password input
Save this answer. Show activity on this post. An TextInput must include secureTextEntry={true}, note that the docs of React state that you must ......
Read more >
<input type="password"> - HTML: HyperText Markup Language
<input> elements of type password provide a way for the user to securely enter a password. The element is presented as a one-line...
Read more >
Enabling Password AutoFill on a text input view
Explicitly defining a view's text content type improves the performance of Password AutoFill's heuristics and lets you support login workflows that couldn't ...
Read more >
Mask a text entry as if a password. - Power Platform Community
You can mask a text input control by setting the mode to 'password'. timl_0-1626098378740.png. Message 2 of 4. 2,897 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found