{"id":19005153,"url":"https://github.com/naseem1amjad/python-based-process-executor-and-controller","last_synced_at":"2026-05-08T14:03:09.999Z","repository":{"id":244175048,"uuid":"412280304","full_name":"naseem1amjad/Python-Based-Process-Executor-And-Controller","owner":"naseem1amjad","description":"Run Python Within Python Script demonstration. The web based python script controls another script execution.","archived":false,"fork":false,"pushed_at":"2021-10-01T01:13:39.000Z","size":2889,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-06T10:39:37.492Z","etag":null,"topics":["execution","flask","monitor","python3","scripts","shell","website"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/naseem1amjad.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":"2021-10-01T01:05:35.000Z","updated_at":"2021-10-17T04:56:45.000Z","dependencies_parsed_at":"2024-06-13T09:02:57.312Z","dependency_job_id":"aa00a635-7089-4e09-adaa-ab05d03bd944","html_url":"https://github.com/naseem1amjad/Python-Based-Process-Executor-And-Controller","commit_stats":null,"previous_names":["naseem1amjad/python-based-process-executor-and-controller"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/naseem1amjad/Python-Based-Process-Executor-And-Controller","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naseem1amjad%2FPython-Based-Process-Executor-And-Controller","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naseem1amjad%2FPython-Based-Process-Executor-And-Controller/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naseem1amjad%2FPython-Based-Process-Executor-And-Controller/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naseem1amjad%2FPython-Based-Process-Executor-And-Controller/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/naseem1amjad","download_url":"https://codeload.github.com/naseem1amjad/Python-Based-Process-Executor-And-Controller/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naseem1amjad%2FPython-Based-Process-Executor-And-Controller/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273892836,"owners_count":25186561,"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","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["execution","flask","monitor","python3","scripts","shell","website"],"created_at":"2024-11-08T18:26:25.876Z","updated_at":"2026-05-08T14:03:04.952Z","avatar_url":"https://github.com/naseem1amjad.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Python-Based-Process-Executor-And-Controller\n\nREADME file by Naseem Amjad\n\nRun Python From Another Python Script (using Web)\n=====================================\n\nIntroduction:\n-------------\nThere are 2 main open source scripts developed by me called control.py and test_run.py , this is a demonstration of how you can run a python script within another script. As control.py can be accessed through web (Flask), this means you can control test_run.py script remotely using a web browser.\n\n![Gif Image to demo working of python script](python-flask-run-another-process.gif \"Python based Process/Script Controller\")\n\nMaking Script (control.py) ready to run:\n----------------------------------------\n\nCreate Virtual Environment by issuing following command:\n\u003e\u003e python3 -m venv ./myenv/ \n\n(you may need to use sudo for getting enough permission and issue above command)\n\nUse following command to activate the Virtual Environment just created\n\u003e\u003e source myenv/bin/activate\n\nTo install Flask, use following command.\n\n\u003e\u003e sudo apt install python3-flask  \n\n___________________________\n      \n\nConfiguration of Environment:\n-----------------------------\n\n\u003e\u003e export FLASK_APP=control\n\nthen enter following command\n\n\u003e\u003e flask run\n\nGive following url in your web browser http://127.0.0.1:5000/check\n\nNote: to make server accessible on net then issue following command\n\n\u003e\u003e flask run --host=0.0.0.0\n\nNow you can use http://yourIP:5000/ to access the web page.\n  ___________________________\n\n\nABOUT test_run.py:\n------------------\n\ntest_run.py is a sample script called from controll.py , you may click on web page to Start/Stop/Monitor test_run.py \n\ntest_run.py shows current datetime and runs for 30 seconds approx.\n\n______________________________\n\nAbout Developer:\n----------\nYou may contact me @ naseem[at]technologist.com for further detail / assistance.\n\nhttps://www.ajsoftpk.com/naseem_amjad/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaseem1amjad%2Fpython-based-process-executor-and-controller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnaseem1amjad%2Fpython-based-process-executor-and-controller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaseem1amjad%2Fpython-based-process-executor-and-controller/lists"}