{"id":21866828,"url":"https://github.com/connor-makowski/edx_pygration","last_synced_at":"2026-05-20T10:03:05.353Z","repository":{"id":40959235,"uuid":"269467231","full_name":"connor-makowski/edx_pygration","owner":"connor-makowski","description":"A repo to help with the pygration from 2 \u003e 3","archived":false,"fork":false,"pushed_at":"2023-07-13T13:23:16.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-26T16:12:49.189Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/connor-makowski.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":"2020-06-04T21:15:58.000Z","updated_at":"2022-04-04T13:26:53.000Z","dependencies_parsed_at":"2022-08-28T11:41:38.022Z","dependency_job_id":null,"html_url":"https://github.com/connor-makowski/edx_pygration","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/connor-makowski%2Fedx_pygration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/connor-makowski%2Fedx_pygration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/connor-makowski%2Fedx_pygration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/connor-makowski%2Fedx_pygration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/connor-makowski","download_url":"https://codeload.github.com/connor-makowski/edx_pygration/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244870789,"owners_count":20523931,"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-28T05:07:38.424Z","updated_at":"2026-05-20T10:03:05.252Z","avatar_url":"https://github.com/connor-makowski.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# edx_pygration\nTest in problem python code for [edX] courses\n\n## Features\n\n- Users can:\n  - Get all problem based python code out of the course automatically\n  - Get python_lib.zip python code out of the course automatically\n  - Test environment based functionality for all pulled python code.\n\n## Requires\nA UNIX based OS (tested on Ubuntu 20.04 Focal Fassa)\n\n## Use\n\n### Clone the Repo to your local machine\n```\ngit clone https://github.com/connor-makowski/edx_pygration.git\n```\n\n### Chmod the Repo\n```\nsudo chmod -R 777 ./edx_pygration/\n```\n\n### Export Course Data\nIn edx Studio:\n  - Navigate to Tools \u003e Export\n  - Export the course content\n  - Download the exported course content\nOn your local machine\n  - Place the exported `tar.gz` file in `edx_pygration/course_dumps`\n\n### Extract all courses in course_dumps and preprocess all python data\n```\n./extract.sh\n./preprocess.sh\n```\nNote: All python code should now cleanly be located in each item in `edx_pygration/extracted_courses/{course_name}/python`\nNote: You should check this to make sure that your code does not have caveats that prevent the preprocess step from working properly.\n\n### Set up a test virtualenv\n```\nvirtualenv -p python36 venv\nsource venv/bin/activate\npip install -r requirements.txt\n```\nNote: You can use any python environment you want to test with.\n\n### Using extra python imports\nYou can install extra python packages into your local `venv` for testing purposes.\n\nIf you use extra requirements or imports in your python scripts in edx, you can adjust `edx_pygration/preprocess.sh` to meet your needs by adding the following line:\n```\necho \"import mypackage\" \u003e\u003e \"./$folder/python/$(basename $xmlfile .xml).py\"\n```\n\nThis line should go between the following two lines:\n```\necho \"import math, random, scipy, numpy\" \u003e \"./$folder/python/$(basename $xmlfile .xml).py\"\nsed -n '/^.*\u003cscript.*python.*$/,/^.*\u003c\\/script\u003e.*$/p' $xmlfile | sed '1d;$d' \u003e\u003e \"./$folder/python/$(basename $xmlfile .xml).py\"\n```\n- Note: Make sure to adjust `mypackage` to any package you want to import.\n- Note: Feel free to add multiple lines here.\n\n### Test all python files in all courses for errors\n```\n./test.sh\n```\nNote: Only files that throw flags or return content to the console are logged when running `./test.sh`. This means that no results are good results.\n\n\n\n[//]: # (These are reference links used in the body of this note and get stripped out when the markdown processor does its job.)\n\n[edX]: \u003chttps://www.edx.org/\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconnor-makowski%2Fedx_pygration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fconnor-makowski%2Fedx_pygration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconnor-makowski%2Fedx_pygration/lists"}