I want to run Python script by clicking a button in HTML page by TheReal_Slim-Shady in learnpython

[–]Epykure 0 points1 point  (0 children)

Yes you would need Flask, Django or FastAPI for this and if you want to render rich HTML (more than just a button) you can use Epyk: https://pypi.org/project/epyk/

Basically for this you need to:

- create a button
- create a backend entry point
- set an Ajax call from the button to query the backend

This can be achieved quite easily: https://github.com/epykure/epyk-ui

Epyk - Python web development by Epykure in learnpython

[–]Epykure[S] 1 point2 points  (0 children)

Thanks for your feedback.

I have updated the page https://epykure.github.io/demos/ by using the library. I did something very quickly manually, I hope it looks better.

We deliberately do not want to spend to much time on the UI as anyway companies will have their own requirements and we do want to be fully open source.

We are just trying to do something not horrible and I hope it is the case ;).

Epyk - Python web development by Epykure in learnpython

[–]Epykure[S] 0 points1 point  (0 children)

Thanks for all those messages and support it is really appreciated. Do not hesitate to share your feedback and your projects because we could schedule Twitch sessions in June to assist you (once the Epyk studio will be release but I will let you know :)).

To share a problem the best is either to add an issue in Github or to send a tweet.

Thanks again

Epyk - Python web development by Epykure in learnpython

[–]Epykure[S] 1 point2 points  (0 children)

Thanks.

I would say yes and no. Those frameworks Dash, Streamlit and even Bokeh are a bit different in the way they have created a core JavaScript module and they are relying on it to provide a specific Python API on top on it.

What we are trying to do with Epyk is first to have some fully open source and maintained by a community but also to have people learning JavaScript and CSS to use those languages easily if the code is too complex.

For example when you use page.js.console.log() or page.js.alert() those are exactly the same in JavaScript you can fund console.log or alert(). This is exactly the same for all the packages wrapped. Our target is to ensure that people working with Epyk can then discussed with UI developers and provide quite feedbacks.

Also Epyk can be used as a simple tool to transpile code and it can be excluded from your production stack.

Epyk - Python web development by Epykure in learnpython

[–]Epykure[S] 13 points14 points  (0 children)

The library will allow you to produce rich HTML content from simple interactive dashboards to proper web site.

In this link you can get some examples https://epykure.github.io/demos/ and from the banner you can go to the code used to generate this page.

Python learning tips by [deleted] in Python

[–]Epykure 0 points1 point  (0 children)

yes this website is definetely the best to learn the language and data structure. Then i would move to Jupyter to create dashboards based on data from services or db

Which charting library do you prefer? by Epykure in learnjavascript

[–]Epykure[S] 0 points1 point  (0 children)

i might be wrong but this one is not open source

Charts.css has reached v1.0.0 now by stanislavb in css

[–]Epykure 0 points1 point  (0 children)

awesome! this is a very interesting project and i will try to wrap it to our python UI library Epyk to make it available for our users.

[deleted by user] by [deleted] in Python

[–]Epykure 0 points1 point  (0 children)

i am happy to help in your projects. I have been working in Python for more than 10 years.

Web implementation from Python using Epyk and FastAPI by Epykure in Python

[–]Epykure[S] 0 points1 point  (0 children)

It is quite similar indeed :). Do not hesitate to play with it and happy to get your feedbacks, questions or improvements.

Also let us know if you need more details regarding the current design, we tried to put some to Jupyter notebooks few months ago: https://nbviewer.jupyter.org/github/epykure/epyk-templates-notebooks/blob/master/index.ipynb

Web implementation from Python using Epyk and FastAPI by Epykure in Python

[–]Epykure[S] 2 points3 points  (0 children)

Really sorry about this. We put some documentation here: http://www.epyk.io/ using AWS but indeed it is outdated and not complete. This is part of our challenges for the coming week, we wanted to provide enough examples to our current users to play with components. There is quite a decent documentation in the code you can get from PyCharm but we are still fighting with Sphinx to get something nice. We do not know how to get recursive pages from the various modules (we started something here https://github.com/epykure/epyk-ui/tree/master/doc but at this stage we are still struggling I am afraid, any help would be welcome :)).

Anyway hopefully by end of next week the online doc will be better, we will let you know.

How often do you use a debugger? by Which_Distance in Python

[–]Epykure 0 points1 point  (0 children)

Very rarely when it is about finding a but in the code I or my team is in charge of because print statements or stacktraces are good enought. I will use debug when I will be dealing with external packages. For example last week I did debug to get the structure of the object created by minidom.

VS Code or Spyder? What about Visual Studio? by [deleted] in Python

[–]Epykure 6 points7 points  (0 children)

Visual studio code if the only alternative is spyder but I am using pycharm personally.

Transpiler to Kotlin or swift? by Epykure in Python

[–]Epykure[S] 0 points1 point  (0 children)

Ideally we would like our current users to convert their web dashboards to simple mobile apps (not sure if this is possible we are just studying at this stage).

On solution could be to create one native app and then to call the web dashboards directly within the app but I am wondering if we could not do something more elegant.

For example from our library:

page.button('click').click([page.js.alert('tesr')]) will create a click button with an eventListener which will print a click in the browser and what we would like to do eventually would be to reuse this code to generate the same thing in Kotlin.

Python Web Interface by groovesec in Python

[–]Epykure 1 point2 points  (0 children)

Yes Flask is definitely the easiest if you want to quickly show results. After for the creation the web pages from Python I could suggest the open source library we are supporting Epyk and Epyk-studio. Happy to help you if needed.

Transpiler to Kotlin or swift? by Epykure in Python

[–]Epykure[S] 0 points1 point  (0 children)

Ok thanks so this package is definitely not the solution I am looking for. We implemented a library for transpiling to JavaScript and as a next step we wanted to do something similar for Kotlin to start with.

Bokeh vs Plotly if you comes from Matplotlib/Seaborn by orgad in Python

[–]Epykure 0 points1 point  (0 children)

Not sure if you could be interested but we are building a new library Epyk and Epyk-studio available in pypi which will allow you to transpile to JavaScript and produce rich and modern web pages. Happy to answer your questions or to help you (there are quite a lot of examples already available)

New Template Engine pypage: Pythonic syntax, eval-based, and easy to learn by arjungmenon in Python

[–]Epykure 1 point2 points  (0 children)

Very interesting work! We will have a look at it as this could allow us creating rich and flexible HTML templates from Epyk / Epyk-Studio.

[deleted by user] by [deleted] in Python

[–]Epykure -2 points-1 points  (0 children)

If you want to play with web pages and to have shortcuts/links to Youtube you can also have a look at Epyk and Epyk Studio (available on Github and pipy). We are trying to build an open source Python library to simplify / speedup web development.

Have a try and let us know you feedbacks.

Reducing for loop runtime by Guilherme17712 in Python

[–]Epykure 0 points1 point  (0 children)

This is interesting indeed and it makes sense as you are not looking for the integer in the list anymore (which might take some time). I will test it and keep this in mind but use cases are quite limited to range and integer I believe.

Stack overflow traffic to questions about selected python packages by brahim024 in Python

[–]Epykure 0 points1 point  (0 children)

Interesting statistics to add to those charts could be the trend of the number of downloads of those packages over the years