Skip to content

Conversation

@shubhamashish33
Copy link
Contributor

ATTENTION: before clicking "Create Pull Request" please submit some meta data, thanks!

Difficulty level (1-10): [5]
Estimated time spent (hours): [1]
Completed (yes/no): [Yes]
I stretched my coding skills (if yes what did you learn?): [working of pyshorteners and pyperclip packages]
Other feedback (what can we improve?): []

@bbelderbos bbelderbos merged commit cf1d6b8 into pybites:community Oct 6, 2022
@@ -0,0 +1,3 @@
streamlit
pyperclip
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I love this package, using it for pybites-carbon to make a carbon image from code on clipboard. Next time you could pin the requirements.

st.write("Enter the URL to shorten")
url = st.text_input("URL")
if st.button("Shorten"):
shortener = pyshorteners.Shortener()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wrote one from scratch the other day, it makes sense to use a library, nice. I would put any code in functions for easier re-use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants