Skip to content

[Full-Stack Project] Python sidecar responsible for circle-related calculations

Notifications You must be signed in to change notification settings

manuelFragata/circle-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Circle Tool 🔵

This is a simple Python "sidecar" application that calculates the geometric properties of a circle. It's designed to be called by a parent process (like the Tauri app) and communicates over standard input/output using JSON.

How It Works

  1. The script enters an infinite loop, waiting for input.
  2. It reads a single line from stdin.
  3. It parses the line as a JSON object (e.g., {"payload": {"radius": 10}, "metadata": {"center": {"x": 150, "y": 150}}}).
  4. It uses the calculator module to compute the circle's area and perimeter.
  5. It formats the result as a JSON object.
  6. It prints the resulting JSON string to stdout, followed by a newline, to signal completion to the calling process.

About

[Full-Stack Project] Python sidecar responsible for circle-related calculations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages