DEV Community

Ethern Myth
Ethern Myth

Posted on • Edited on

Playing with Python in node

Good days of playing with 🔥 just to get burned are still alive. Just like playing with python in node and forcing the square in a circle. What an experience!

Just like that, 👻 has a lot of brain to injure.

Just wrote a quick package to tryout for 🏃‍♂️ python in a node environment.Can we argue, if this is native or just trying to be native? Guess it is for you to find out.

Hit that click on your computer and head to npm, search py-em-node. Found it already. Read the guide and try it out on your python project. Tiny video will be coming soon for a sample usage.

Py-em-node

Py-em-node-sample-video

By default, I had it tested on a flask project. It worked amazing! Not really amazing like amazing but amazing 😅, Something is totally working...

Updates on testing

  • Works with FastAPI via explicitly controlling unicorn this way in your entryPoint like main.py:
# Import uvicorn at start of `entryPoint` file could be app.py, main.py or other

import uvicorn

if __name__ == "__main__":
# Configure to needs of project, this is the same as command on terminal or cmd
   uvicorn.run("main:app", reload=True)
Enter fullscreen mode Exit fullscreen mode

Changes

  • Use python.config.json for py-em-node, python.config.tson has been removed from support

  • Documentation is updated to the latest version released.

All was needed was to setup python like the venv stuff and have requirements met.

Go check it out, if you have anything to ask or add, feel free to visit the repo on GitHub and create an issue or something good to make a difference.

Must have been a quick read, 👻 have already disappeared.

Billboard image

The fastest way to detect downtimes

Join Vercel, CrowdStrike, and thousands of other teams that trust Checkly to streamline monitoring.

Get started now

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay