Skip to content

scrandyb/compliance-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Compliance Bot

Detects compliance violations by sellers

How to run on your local machine

  1. Install Python 3
  2. Create a virtual python environment and activate it
  3. From the root directory (the directory where README.md lives), run python3 -m pip install -r requirements.txt -r requirements_test.txt to install required python packages.
  4. Run python3 setup.py develop to configure your local environment.
  5. From the root directory (the directory where README.md lives), run touch .env in the CLI
  6. Run echo "MVM_API_BEARER_TOKEN=your_bearer_token" >> .env, replacing your_bearer_token with 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")
  7. You are now ready to run the bot! To run the check use python3 compliance_bot/epr_violations_check.py. To run tests, use pytest or pytest tests/some_specific_test_file.

TODOs

  • Add unit tests
  • Dockerize
  • Test this code when there are a large number of stores (multiple pages)
  • Better exception handling for API errors

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages