I think it would encourage more custom component creation if there was an easier way to get all the boilerplate in place. I felt this could be a nice addition while I was working with ng-cli.
Something along these lines would be awesome, What are your thoughts?
As a workaround, we talked about providing cookiecutters for the generate part, then I guess have a Makefile/Invoke in the template run the commands build and run pointing to the package.json location. Not branded streamlit but would work decently enough.
Yes I think cookiecutter should do it. Atleast for the generate part. I like the idea of makefile as well. Will try to whip up something on the same lines.
I’d love to see such commands directly embedded in streamlit as well!
Makefiles are great, I overly use them (already have one to build yarn + bdist_wheel, and launch twine). However, although you can use them almost out of the box on Linux, on Windows you’d need an additional installation step.
Frankly I’ve never been able to run Makefiles correctly on Windows (sad because Streamlit dev setup is mostly Makefile too…), which is why I’m more used to Invoke
+1 for the point about Makefiles on windows.
I was just wondering if we had this CLI functionality will it encourage more custom development in this sense,
Like suppose I start a streamlit project and needed to simply use geolocation api of html5, if I had this option maybe I could setup my project like this,
myproject->
|- components
| |- geolocation_component
|- main.py <- import geolocation component and use it here
I know its pretty vague, but if I could do something like this it would drastically change the extent of usage of streamlit for me.
Maybe this approach would make my project more of a react project than a python project but the flexibility to do this quick-plugin-in based development would be pretty handy for some usecases.
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.