W
Wasp2mo ago
LifeTaker

I want to python batch

I was wondering what could be the easiest way to implent a python batch to the app. Whitout need to add another server to the app since i cant modify the yaml for docker.
3 Replies
kapa.ai
kapa.ai2mo ago
Hi @LifeTaker. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Based on the knowledge sources provided, I can offer some insights on integrating Python functionality with a Wasp application, although Wasp primarily works with JavaScript-based technologies. Here are the key points to consider: 1. Wasp is designed to work with React, Node.js, and Prisma, which are all JavaScript-based technologies. It doesn't natively support Python applications Discord support thread: adding python apps (https://discord.com/channels/686873244791210014/1204014940512452639). 2. However, there are a couple of ways you could potentially integrate Python functionality without adding another server: a. You could write a Python program and run it as a child process from your Wasp server/Node.js code. This can be done using Node.js's child process functionality. The Python script could be added to the files under the src/ directory or installed via pip in your Dockerfile Discord support thread: adding python apps (https://discord.com/channels/686873244791210014/1204014940512452639). b. Another approach is to extract your Python code to an executable and then invoke it from Wasp. This is similar to how the Wasp team implemented MAGE (with a Haskell binary instead of Python) Discord support thread: Replit intégration (https://discord.com/channels/686873244791210014/1205875759936446474). 3. If your Python code is not too complex, it might be worth considering rewriting the functionality in JavaScript/Node.js to fully integrate with Wasp Discord support thread: Replit intégration (https://discord.com/channels/686873244791210014/1205875759936446474). 4. It's important to note that these approaches might require some additional setup and could be more complicated than native Wasp features. Remember that implementing these solutions may require more advanced knowledge of both Wasp and system integration. If you need more detailed guidance, it might be helpful to consult with a developer who has experience in both Wasp and Python integration. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @LifeTaker, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
LifeTaker
LifeTakerOP2mo ago
supposing i want to use node.js to create my batch where can i launch the scheduler @kapa.ai
miho
miho2mo ago
What do you mean when you say "python batch to app"?

Did you find this page helpful?