Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I am looking to export some .py files so I can include them in a website. I am not sure any method to export the files however. Could someone please link some useful information or explain a procedure so the files can be executed using buttons on a website (particularly a HTML site)?
You can use UWSGI as an intermediary between your Python files and nginx (as a web server). But this is not as easy as executing php files, since the php executor comes with any web server. Or call python files as external programs from your existing site.
if your are looking to import function or classes in a file and use them in another file or project, then this might be what you are looking for imports in python
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 11 months ago.
Improve this question
We have a C++ web service that helps manage and run scripts for users. We have to offer 2 APIs:
RegisterScript API: Users can register scripts for a variety of languages(Python, Ruby, JavaScript etc.) through this api
RunScript API: Users can run their previously registered scripts through this API
Right now we’re not sure how we would go about this, any pointers would be nice but we’d prefer a solution that:
Doesn’t have to start an OS process for every RunScript invocation
Doesn’t rely on running shell commands from C++
Preferably there’s an open source library/framework with support for multiple languages out of the box?
Thanks!
Jessica
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 1 year ago.
Improve this question
I am trying to automate web scraping by Excel. It's just accessing the website and download the data as an excel file.
I have three options; any recommendation or suggestions?
Use VBA and manipulate browser
Use VBA and http requests.
Call Python script from VBA
I prefer Python so much. However,I need to make it environment-independent and useable for anyone else who's not familiar with codes at all, so I would like to avoid extra installation and setup.
Any advise will help. Thanks!
I'd say go with whatever you feel the most comfortable with.
What I personally do when I need to distribute my Python applications is to create a standalone using Pyinstaller. You should be able to create standalones for several environments.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I am new to machine learning & python. I found a predictive machine learning program on jupyter notebook. Is it possible to convert that jupyter project into a standalone web application? Do I need any libraries for it ? I want to demonstrate the chart & prediction formally. Suggestions?
You need to use django or pyramid or flask and use the same codes in a reorganized way.
Yeah it is possible. If you want to convert it to web application, you should use Flask, Django, etc. Flask is easy and light one, try it.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I want to write a python script that can detect when a pdf file is downloaded from a specific web page(s) and then automatically move that file from Downloads directory into another directory.
My problem (for the moment) is that I don't know how to monitor my downloads with python, in order for it to detect when a file is downloaded from a specific web address. I checked urllib/requests, but it doesn't seems to do what I need. Does anybody knows a module that I can use for this task?
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
I am a beginner of chatbot, I have developed python code to do pattern match from an intents.json file. code works fine and can answer questions.
But how to embed this python file and intents.json file into a site as a chatbot widget? Appreciate if any good tutorial for end-to-end chatbot project. Thank you.
Browsers do not run Python, so you would need to write an API. You can use Flask to do so fairly easily. Flask's tutorial is excellent.
An alternative would be to write a Javascript version that can run in the browser. This avoids the Flask server, but then people could easily jack your chatbot.