{"id":20514769,"url":"https://github.com/pgvalle/discal","last_synced_at":"2025-03-05T23:16:55.522Z","repository":{"id":259905668,"uuid":"878753785","full_name":"pgvalle/Discal","owner":"pgvalle","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-21T19:35:42.000Z","size":57,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"thread","last_synced_at":"2025-01-16T09:45:25.618Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pgvalle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-26T02:57:50.000Z","updated_at":"2024-11-21T19:35:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"912b42c9-e09a-495b-8c23-ec6776abc718","html_url":"https://github.com/pgvalle/Discal","commit_stats":null,"previous_names":["pgvalle/discal"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgvalle%2FDiscal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgvalle%2FDiscal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgvalle%2FDiscal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgvalle%2FDiscal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pgvalle","download_url":"https://codeload.github.com/pgvalle/Discal/tar.gz/refs/heads/thread","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242117707,"owners_count":20074438,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T21:18:07.317Z","updated_at":"2025-03-05T23:16:55.514Z","avatar_url":"https://github.com/pgvalle.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Discal\n\nDiscal is a distributed calculator coded in python using only sockets. It's a project for my Distributed Systems class.\n\n## Project requirements\n\n...\n\n## How it works\n\n...\n\n## How to use\n\n**IMPORTANT:** Before anything, install [psutil](https://pypi.org/project/psutil/) and [tkinter](https://docs.python.org/3/library/tkinter.html) with `pip install -r dependencies.txt`\n\nYou have to run [client.py](./client.py), [server.py](./server.py) and [balancer.py](./balancer.py). balancer.py must be run after server.py.\n\n### Running the load balancer\n\nBefore running the load balancer, you should configuree what server instances you want it to connect to. That is done via editing the variable `SERVERS` in balancer.py.\n\nThe actual host and port it's going to serve are arguments from the command-line\n\n```\n$ python balancer.py {host} {port}\n```\n\n### Running the server\n\n```\n$ python server.py {host} {calculator_port} {cpu_usage_port}\n```\n\n### Client\n\nSimply run:\n```\n$ python client.py\n```\n\nIt's really simple to use the client application. You just place the load balancer host and port, then the values v1, v2 and op (+, -, * or /). After that, just hit **send** and you should see the result on top of the **???**.\n\n![DiscalC](./readme/discalc-screenshot.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgvalle%2Fdiscal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpgvalle%2Fdiscal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgvalle%2Fdiscal/lists"}