Python script to upload a program and add multiple resources like Projects , Surveys , Observations (with and without rubrics) to it.
- Programs
- Projects
- Surveys
- Observation with out rubrics
- Observation with rubrics
- Observation with rubrics with IMPs
To know more about the resources : https://diksha.gov.in/help/getting-started/explore-diksha/index.html
- Pull the code only from
master
branch. - create a virtual environment in python.
python3 -m venv path/to/virtualEnv
- Once the virtual environment is created, activate the virtual environment.
In Linux
source { relative path to virtualEnv}/bin/activate
In Windows{ relative path to virtualEnv}/Scripts/activate
- Install all the dependencies using requirement.txt using following command.
pip3 install -r requirement.txt
- Make sure there are no errors in the install.
- If there are any errors in the install, try to install the same version of the libraries seperatly.
- Download the user given template and save it in the same file where the code is hosted.
- Command to run the script.
python3 main.py --env pre-prod --programFile input.xlsx
We havepre-prod
andproduction
as environment.