Useful or not, from you.
safety-db JSON files not found on import

This package seems broken. Steps to reproduce:

$ which python3
$ python3 -m venv ~/.venv/safteydb
$ source ~/.venv/safteydb/bin/activate
$ pip install safety-db
$ python                                                                                                                                                                                                                                                                                                                             
>>> from safety_db import INSECURE, INSECURE_FULL
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/cladam/.venv/safteydb/lib/python3.7/site-packages/safety_db/", line 13, in <module>
    with open("data/insecure.json") as __f:
FileNotFoundError: [Errno 2] No such file or directory: 'data/insecure.json'
That's a useful answer
Without any help

The files are included, they just aren't referenced properly. I installed safety-db into a virtualenv and the files are at:


The code expects them in a data directly below your current working directory.