Skip to content

hawzie197/llama-api

Repository files navigation

pyllama

Build Status codecov Maintainability Known Vulnerabilities Python 3.7 Django 2.0 Code style: black flake8

Overview

llama automatically compiles the main points of a privacy policy using Natural Language Processing whenever a user is on a signup page. On page load, the llama searches for its privacy policy. If found, the extension parses the privacy policy and then displays the main actions from the policy like: disclosing, selling, storing, deleting, and accessing of data. We also add a tier of colors and a confidence score on how well we think your privacy is protected. If no policy is found, a warning is displayed

Quick Setup

First, download docker desktop from here.

git clone https://github.com/hawzie197/pyllama.git
cd /pyllama

docker-compose up --build

navigate to http://localhost:8000

Registered API Urls

/api/accounts/users/
/api/accounts/groups/

Linting (Flake8)

Follow this to setup flake8 with pycharm

Code Formatting (Black)

Follow this, ctrl-f for Optionally, run Black on every file save

Testing (unittest)

docker-compose run django ./manage.py test

Example Case

http://localhost:8000/api/analyze/?url=https://www.nytimes.com/