Detects compliance violations by sellers
- Install Python 3
- Create a virtual python environment and activate it
- From the root directory (the directory where
README.mdlives), runpython3 -m pip install -r requirements.txt -r requirements_test.txtto install required python packages. - Run
python3 setup.py developto configure your local environment. - From the root directory (the directory where
README.mdlives), runtouch .envin the CLI - Run
echo "MVM_API_BEARER_TOKEN=your_bearer_token" >> .env, replacingyour_bearer_tokenwith your MVM API Bearer Token (To find tokens, in the MVM UI Admin view navigation bar, hover over three dots on the right of the navigation bar and click "Multivendor API") - You are now ready to run the bot! To run the check use
python3 compliance_bot/epr_violations_check.py. To run tests, usepytestorpytest tests/some_specific_test_file.
- Add unit tests
- Dockerize
- Test this code when there are a large number of stores (multiple pages)
- Better exception handling for API errors