Files
edx-platform/scripts/xblock
Jeremy Bowman 7bbd229526 Unpin more outdated dependencies (#22898)
Unpin several more outdated dependencies whose changelogs don't contain any significant backwards incompatible changes. Also add "moto" to the list of packages to uninstall from existing environments, since it requires a jsondiff version that clashes with the one we now use (triggering a harmless but distracting warning on dependency updates).

We can potentially stop using path.py/path altogether by switching to pathlib in the Python 3 standard library, but that merits a separate PR of its own.

Also, note that I'm not actually unpinning freezegun; different PRs restricted it in both constraints.txt and test.in, I'm just removing the latter redundant constraint.
2020-01-23 06:59:32 -05:00
..
2019-12-30 10:35:30 -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.