GithubHelp home page GithubHelp logo

sinipelto / repo-license-crawler Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 24 KB

Collects and summarizes license information on Python and NPM packages into output files.

License: MIT License

Python 100.00%
license license-management licensing licenses license-checking license-checker license-crawler crawler crawler-python python

repo-license-crawler's Introduction

(Universal) Repository License Crawler

License collector tool for Python PIP and NodeJS NPM package licenses.

The aim is to get a complete collection of what kind of licenses are being used in the given repository (path), in any form, as parts of the application or individual libraries.

This helps identify the legitimacy of the current software project, especially in larger repos with dozens of libraries or dependencies.

This tool collects the licenses into human and machine-readable JSON files. From there it should be relatively easy to detect any conflicting licenses and take actions based on that information.

Getting Started

Install / ensure installed the following:

After installation, ensure both python and npm are available through PATH directly.

Ensure pip is up-to-date:

pip -V
pip install -U pip
pip -V

Or through python if pip is not globally available

python -m pip -V
python -m pip install -U pip
python -m pip -V

Ensure NPM is globally up-to-date:

npm -v
npm install -g npm@latest
npm -v

Create an empty Python Virtual Environment (VENV) for the tool:

python -m venv C:\path\to\venv

Activate the newly created VENV:

.\venv\Scripts\activate

Ensure pip is up-to-date (inside VENV):

pip -V
pip install -U pip
pip -V

Or through python if pip is not globally available (inside VENV):

python -m pip -V
python -m pip install -U pip
python -m pip -V

Install the required dependencies for the tool into the VENV (if applicable):

pip install -r requirements.txt

OR

python -m pip install -r requirements.txt

Run the main file

python main.py

Once successfully finished, check the output file for results (default: ./out/output.json)

repo-license-crawler's People

Contributors

sinipelto avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.