A simple Python application to understand how Python projects are licensed.
The src/license.py uses the GitHub REST API to lookup the licenses used by Python projects. It works by starting with a seed project to get a list of Python packages to search and looks up their licenses. The license frequencies are reported to standard output.
To run the application:
- Create a
.envfile, which contains your GitHub access token and username. You can use the.env.templateas an example. Note, you can still run the project without authentication, but you may need to increaseSLEEP_DURATIONto prevent being rate limited. - With GNU Make, run
make all. That will take care of creating the virtual environment and running thesrc/license.pyscript. - Without GNU Make, you'll need to use
requirements.txtto create the virtual environment and run thesrc/license.pyscript.
Results are cached for convenience; you may need to delete that caching directory. Running make clean takes care of removing the cache directory.
This project is distributed under the GNU General Public License. Please see COPYING for more information.