Files
edx-platform/scripts/xblock
edX requirements bot f452798565 chore: Upgrade Python requirements (#36076)
* chore: Upgrade Python requirements

* chore: Upgrade Python requirements (#36079)

* feat: Upgrade Python dependency urllib3 (#36081)

upgrade: upgrade urllib3 version

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`

Co-authored-by: mumarkhan999 <42294172+mumarkhan999@users.noreply.github.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: mumarkhan999 <42294172+mumarkhan999@users.noreply.github.com>
2025-01-08 16:45:31 +05:00
..

## XBlocks count script

The script in this directory, xblock_counts.py, when run will produce 2 csv files containing a summary
of the XBlock usage in courses.

This script requires a list of XBlock types. The xblock_studio_configuration.json file included is an example. The file
contains a list of types for the tool to summarize with counts.

{
  "data": [
    {
      "name": "problem",
    },
    {
      "name": "video",
    },
    ...
  ]
}

### Steps for usage

1. Ensure all python requirements are up to date including those listed in the requirements.txt file.

2. Request a OAUTH2_Client ID on the api platform you are querying.

3. Execute the command line to run the script.

### Example command line usage

python xblock_counts.py -u <email> -p <password> -c <OAUTH2 Client_id> -m 12 -x xblock_studio_configuration.json -a https://courses.edx.org

Use python xblock_counts.py -h to get a list of command line options.