{"id":44315553,"url":"https://github.com/fccn/nau-database-exporter","last_synced_at":"2026-02-11T05:08:09.359Z","repository":{"id":37419670,"uuid":"362258782","full_name":"fccn/nau-database-exporter","owner":"fccn","description":"Exports data from Open edX MySQL Database into an Excel Spreedsheet or Google Sheet","archived":false,"fork":false,"pushed_at":"2024-10-17T16:06:24.000Z","size":113,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-10-19T23:39:05.260Z","etag":null,"topics":["docker-container","openedx","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fccn.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-04-27T21:42:49.000Z","updated_at":"2024-10-17T16:06:29.000Z","dependencies_parsed_at":"2024-10-19T19:36:09.518Z","dependency_job_id":"93f8513a-8161-4ddc-a97e-a80d5a589cdb","html_url":"https://github.com/fccn/nau-database-exporter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fccn/nau-database-exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fccn%2Fnau-database-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fccn%2Fnau-database-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fccn%2Fnau-database-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fccn%2Fnau-database-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fccn","download_url":"https://codeload.github.com/fccn/nau-database-exporter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fccn%2Fnau-database-exporter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29327111,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T03:52:29.695Z","status":"ssl_error","status_checked_at":"2026-02-11T03:52:23.094Z","response_time":97,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["docker-container","openedx","python"],"created_at":"2026-02-11T05:08:09.258Z","updated_at":"2026-02-11T05:08:09.350Z","avatar_url":"https://github.com/fccn.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DatabaseExporter\n\nExports Open edX data from MySQL database into a spreadsheet. \nIt is possible to export the sheets to a single multi sheet xlsx file or alternatively \nupdate a Google Sheet file. On the NAU project it is used the second option.\nThe NAU dashboard, based on Google Data Studio, use that Google Sheet has one of\nits data source.\n\nThe mysql database user needs a read grant for the `edxapp` database.\n\nThose scripts should be run at least once a day, preference after the midnight, so your\nGoogle Sheet file always contains the yesterday's data in full.\n\nThe queries don't have any reference to individual users, and don't have specific\nidentification numbers, like user id, emails or similar data; so it's GDPR compliant.\n\n# Usage\n\n - Setup a Virtual Environment\n - Set the `config.ini` file based on the `config.init.sample`.\n - Execute `report_xlsx.py` or `report_google.py`.\n\n\n### Activate virtual environment and install its dependencies\n\nUse python `3.11`.\n\n\n```bash\nvirtualenv venv --python=python3\nsource venv/bin/activate\npip install -r requirements.txt --upgrade\n```\n\n### Set the \"config.ini\" file based on the \"config.init.sample\".\n```bash\ncp config.init.sample config.ini\nvim config.ini\n```\n\n### Export data to a xlsx file\n```bash\npython export.py --config config.ini --export xlsx\n```\n\n### Export data to a Google Sheet\n```bash\npython export.py --config config.ini --export google_sheets\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffccn%2Fnau-database-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffccn%2Fnau-database-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffccn%2Fnau-database-exporter/lists"}