Python Library Challenges
Run ./init.sh
in terminal for basic setup.
To use virtual envrironment, run pipenv shell
and when you wish to exit from it, run exit
. Recommended is to keep one environment for each challenge.
To install new libraries inside this environment, run pipenv install <library_name>
. For example, pipenv install request
.
While you are inside the shell, run python main.py
for importing the module to check your own code.
- Fork Repo
- Run
./init.sh
- Open challenge directory and add code to the module
- Run
./test_code.sh
. Fix any errors. If no error, coverage report must give 100% result - You are done
The command ./test_code.sh
inside each challange folder is used to verify if you have completed challenge successfully. The main.py
file can be run to check the code runing inside a main function.
You are only allowed to change files other than test_code.sh
file and files in test
folder inside each challenge folder.
This is sample module written for reference. Do not edit this folder.
Create a simple database by using a file to store in json format.
Create a module to parse a Yaml file to python dictionary.