aSc to ManageBac
Getting started
Requires Python 3.6 or above. For Windows, install Python via the Microsoft Store. For Mac, install Python at python.org. Installing Python also installs a package manager (called pip) that can install the command asc2mb into your command line environment.
After installing Python, open the terminal or command line or PowerShell, and peform the following:
pip install asc2mb
If for some reason the pip command doesn't work, you can manually install it by following the relevant instructions for your system.
Upgrade
Should you need to update to the latest version, you can do:
pip install --upgrade asc2mb
Use
After pip install worked, it is now installed on your path, and the command asc2mb should be available:
asc2mb ~/path/to/xml.xml ~/path/to/save/timetable.csv ~/path/to/save/classes.csv
It takes only a second to run. It reports how many records it processed.
Algorithm
This script uses input from more than one international school to generate the expected output. The key to success is using aSc Divisions to match the uniq_ids found in ManageBac classes.
Help
For built-in help, and list of options and their functionality:
asc2mb --help
Miscellaneous
The command takes three required arguments, and there are additional options as well. The three required arguments tell the program where the xml file is located, and where to save the two csv files.
The options depend on your school's needs. For example, the class id is how ManageBac knows which class you are referring to, so that program helps you derive the class ID based on information contains in the xml file. It's up to you to ensure there are classes that have those IDs in ManageBac, but the program does produce a csv so that they can be uploaded in bulk.
By default, class id uses the pattern {class_.short}_{division.name}, which means "the short name of the class" plus an underscore, plus the name of the division." At the time of publication, having a different pattern is only possible by contacting the author (or, if you're a keen developer, add a pull request).
If you run the program without any options, it'll prompt you to enter them.
Release files for asc2mb 0.7.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| asc2mb-0.7.2.tar.gz | 7.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| asc2mb-0.7.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.6 kB
Release files / asc2mb-0.7.2.tar.gz
| Download URL | asc2mb-0.7.2.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e5772371a02dc5c92175668f5ddb1a1da9f39711bbdcdb5bd5740a7f3cde218e
|
|
BLAKE2b-256 checksum How to use checksums |
c36e81a6411013ed3845c47c338636ea474ac3a37e9efcbf50a52af5291a98b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.11.3 Darwin/22.2.0
|
Release files / asc2mb-0.7.2-py3-none-any.whl
| Download URL | asc2mb-0.7.2-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7292c5dda9e0dc35c5116ed49591f1aa2dd41416e28bb95958f640c459482065
|
|
BLAKE2b-256 checksum How to use checksums |
518506ff47dd79814be54e403a888a09edf88cba3f9a51507af1e6ff2a88161a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.11.3 Darwin/22.2.0
|