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

Clone repo and run locally #532

Closed
JeevankumarDharmalingam opened this issue Apr 25, 2024 · 12 comments
Closed

Clone repo and run locally #532

JeevankumarDharmalingam opened this issue Apr 25, 2024 · 12 comments

Comments

@JeevankumarDharmalingam

Can we clone this repo locally and run with available files for streamlit. Can you please throw some light upon it

@longxiaofei
Copy link
Member

Do you need to develop pygwalker, or just import it?

Local develop, refer it: https://pygwalker.kanaries.net/installation#local-development

Import it, download the built package, https://pypi.org/project/pygwalker/#files

@JeevankumarDharmalingam
Copy link
Author

I need to add some features like Authorization and Authentication, So i need to work on the api's coming back from communication.ts add security features and need to validate it in backend while using it in streamlit.
Will PYG-Walker Work with Gradio as well ?

@longxiaofei
Copy link
Member

Maybe you can consider putting authentication data into cookies, then patching pygwalker

from pygwalker.communications import streamlit_comm

class PrvivatePygwalkerHandler(streamlit_comm.PygwalkerHandler):
    def post(self, gid: str):
        print(self.cookies)
        return super().post(gid)

streamlit_comm.PygwalkerHandler = PrvivatePygwalkerHandler

@longxiaofei
Copy link
Member

@JeevankumarDharmalingam
Copy link
Author

Any plans to develop it as dashboard kind of app ?

@ObservedObserver
Copy link
Member

Basically, you can develop a dashboard system based on pygwalker with streamlit/gradio or even flask. If you want a out-of-box solution, you can connect your pygwalker with kanaries cloud, in which you can publish your work from pygwalker to cloud, edit, share and embed anywhere. We also provide OpenAPI for some developers to develop their own dashboard system without building the whole system by themselves.

For open source, we are considering wthether to open source an independent dashboard editing system in pygwalker ecosystem, not a part of pygwalker.

@JeevankumarDharmalingam
Copy link
Author

Is there demo where we can develop POC with Flask and having pygwalker part (section) of another Application, Or can you please guide this community how to do it

@JeevankumarDharmalingam
Copy link
Author

Hey Kindly lemme know the wrap up for flask getting started

@longxiaofei
Copy link
Member

Hi @JeevankumarDharmalingam , I will try to use flask or other web frameworks to build a POC in next week.

@JeevankumarDharmalingam
Copy link
Author

Thanks that would be helpful, Appreciate it !

@longxiaofei
Copy link
Member

@JeevankumarDharmalingam
Copy link
Author

Thanks for the demo , there's one more request in below api is called from pygwalker
http://127.0.0.1:8080/_pygwalker/comm/test0

Is it possible to add bearer token in the header of this api call ?

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

No branches or pull requests

3 participants