Skip to content

Helps the process of license housekeeping in a Django project, the spdx way.

License

Notifications You must be signed in to change notification settings

raratiru/django-quenv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Language grade: Python Codacy Badge

In Alpha phase, no tests exist and changes are possible to occur.

Django Quality Environment Report

This app uses setuptools to gather the names of all packages in a virtualenv.

From the metadata of each package, it collects all available information about its license(s).

It uses the lgtm api to query the quality metrics of github based packages.

All data are saved first to a json file and then loaded to the database. Only one fixture per day can be created.

Finally, it creates a report of any change occurred to a package, namely: If it was added, removed or its license has changed.

Installation

pip install django-quenv
INSTALLED_APPS = [
    ...,
    'quenv',
]
./manage.py migrate
./manage.py quenv

Configuration

In settings,py the following configuration can take place:

QUENV_PATH: The path where the fixtures are saved. Default: .

QUENV_UPDATE_DB: Default True, if False it only creates the fixtures.