{"id":17424606,"url":"https://github.com/isundaylee/code_runner","last_synced_at":"2025-03-28T00:28:55.648Z","repository":{"id":145730109,"uuid":"50291471","full_name":"isundaylee/code_runner","owner":"isundaylee","description":"A simple Sinatra app that runs scripts (currently supports Ruby and Python) and returns the output (stdout, stderr, as well as status code) in JSON format.","archived":false,"fork":false,"pushed_at":"2016-01-29T17:46:59.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-02T02:25:42.411Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/isundaylee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-24T14:34:27.000Z","updated_at":"2016-09-23T03:19:38.000Z","dependencies_parsed_at":"2023-04-23T06:41:23.670Z","dependency_job_id":null,"html_url":"https://github.com/isundaylee/code_runner","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isundaylee%2Fcode_runner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isundaylee%2Fcode_runner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isundaylee%2Fcode_runner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isundaylee%2Fcode_runner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/isundaylee","download_url":"https://codeload.github.com/isundaylee/code_runner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245948133,"owners_count":20698739,"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-10-17T05:42:32.945Z","updated_at":"2025-03-28T00:28:55.621Z","avatar_url":"https://github.com/isundaylee.png","language":"Ruby","readme":"# Code Runner\n\nCode Runner is a simple Sinatra app that runs scripts (currently supports Ruby and Python) and returns the output (stdout, stderr, as well as status code) in JSON format. \n\n# Usage\n\nTo run the server, \n\n```\nrackup -p 3000\n```\n\nTo run code, simply make a POST request to the root URL, with the parameter `code` being the file that you want to run. For example, \n\n```\ncurl \"localhost:3000\" -F \"code=@/somewhere/hello_world.py\"\n```\n\nwould give\n\n```\n{\"stdout\":\"Hello, world! \\n\",\"stderr\":\"\",\"status\":0,\"success\":true}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisundaylee%2Fcode_runner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fisundaylee%2Fcode_runner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisundaylee%2Fcode_runner/lists"}