Relative Content

Tag Archive for pythonrust

Embedding Python in Rust to Call External Python Libraries

I’m trying to learn how to embed Python into a Rust application. For learning purposes, I want to create a Rust script/app that runs a forever loop. This loop sleeps for a set interval, and upon waking, it uses the Python requests library to fetch the current time from an internet time server. While this isn’t a practical application, my goal is to understand how to call external Python libraries from Rust.