{"id":16871661,"url":"https://github.com/phase/omgos","last_synced_at":"2025-03-18T19:53:25.075Z","repository":{"id":86155166,"uuid":"58976530","full_name":"phase/omgos","owner":"phase","description":"HTTP Server with a command+file architecture for embedded languages or anything else you can run in a shell","archived":false,"fork":false,"pushed_at":"2016-05-17T04:45:36.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-24T22:31:38.268Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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/phase.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-17T00:08:29.000Z","updated_at":"2021-09-24T22:44:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"09f49235-2ca1-40bb-afb7-dc65e8983c74","html_url":"https://github.com/phase/omgos","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/phase%2Fomgos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phase%2Fomgos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phase%2Fomgos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phase%2Fomgos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phase","download_url":"https://codeload.github.com/phase/omgos/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244297053,"owners_count":20430336,"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-13T15:09:23.853Z","updated_at":"2025-03-18T19:53:25.070Z","avatar_url":"https://github.com/phase.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# omgos\n`omgos` is a small HTTP Server used for running commands for certain files\ntypes.\n\nIf your `commands.json` contains:\n\n```json\n{\n    \"py\": \"python $file\"\n}\n```\n\nThen accessing `server:80/hello.py` will run `python hello.py` and the output\nwill be sent to the client.\n\n## config.json\n`omgos` can be configured with a local `config.json`.\n\n* `blocked`: Requests matching any files in the array will return a _403 Forbidden_.\n\n  ```\n  \"blocked\": [\"config.json\", \"commands.json\", \"src/(.*)\"]\n  ```\n\n  This blocks `config.json`, `commands.json`, and anything in the `src` folder. Full regex is supported.\n\n## pygos\nIncluded in this repository is a Python embedder called `pygos`. This will\nread a file and run any Python code within `\u003c% %\u003e`.\n\n```python\n\u003ch1\u003eAwesome stuff\u003c/h1\u003e\n\u003cp\u003e Python Version: \n\u003c%\nimport sys\nprint(sys.version,end='')\n%\u003e\n\u003c/p\u003e\n```\n\nThis will output the Python version as well as the surrounding HTML.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphase%2Fomgos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphase%2Fomgos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphase%2Fomgos/lists"}