Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix out-and-out errors in the app (etc) #40

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed .DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.DS_Store
#Pipfile
#Pipfile.lock

Expand Down
6 changes: 5 additions & 1 deletion .streamlit/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@
fastReruns = true

[client]
showErrorDetails = false
showErrorDetails = false

[server]
headless = true # This option is set to true to suppress the "Welcome to Streamlit! [blah blah blah] Email:" message, and keep streamlit from generating a .streamlit folder in my home dir with the config file that has that email address, which I find annoying. You can also run streamlit run with the --server.headless true flag if you're outside this directory but still want this behavior.
runOnSave = true # We always want to rerun when the files change, for a smooth development experience.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@
Explore all custom components for Streamlit on one page – animated, ranked, searchable, and with category filters. Check it out at <a href="https://components.streamlit.app">components.streamlit.app</a>!<br><br>
<img src="https://user-images.githubusercontent.com/16867691/205152146-36fa64a3-0f41-43c7-99c9-b58be2cf63a1.gif" width="500px"></img>
</p>

To run a local copy of this app, you will need a secrets.toml file with a gh_token entry.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
streamlit==1.15.2
altair<5
beautifulsoup4==4.11.1
stqdm==0.0.4
pypistats==1.1.0
Expand Down
5 changes: 3 additions & 2 deletions streamlit_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ def get_components():
name = name.strip()
c.name = name

links = [a.get("href") for a in li.find_all("a")]
links = [a.get("href") for a in li.find_all("a") if a.get("href")]
for l in links:
if l.startswith("https://github.com"):
c.github = l
Expand All @@ -387,7 +387,8 @@ def get_components():
c.forum_post = l
elif l.startswith("https://pypi.org"):
c.pypi = l
c.package = re.match("https://pypi.org/project/(.*?)/", l).group(1)
if tmp_re := re.match("https://pypi.org/project/(.*?)/", l):
c.package = tmp_re.group(1)

if c.github and not c.package:
repo_name = (
Expand Down