<commit_before># Requirements Detector

[![Build Status](https://travis-ci.org/landscapeio/requirements-detector.png?branch=master)](https://travis-ci.org/landscapeio/requirements-detector) 
[![Code Quality](https://landscape.io/github/landscapeio/requirements-detector/badge/master.png)](https://landscape.io/github/landscapeio/requirements-detector)
[![Coverage Status](https://coveralls.io/repos/landscapeio/requirements-detector/badge.png)](https://coveralls.io/r/landscapeio/requirements-detector)
[![Latest Version](https://pypip.in/v/requirements-detector/badge.png)](https://crate.io/package/requirements-detector)
[![Downloads](https://pypip.in/d/requirements-detector/badge.png)](https://crate.io/package/requirements-detector)



`requirements-detector` is a simple Python tool which attempts to find and list the requirements of a Python project. 

When run from the root of a Python project, it will try to ascertain which libraries and the versions of those libraries that the project depends on.

It uses the following methods in order, in the root of the project:

1. Parse `setup.py`
2. Parse `requirements.txt`
3. Parse all `*.txt` files inside a folder called `requirements`
4. Parse all files in the root folder matching `*requirements*.txt` or `reqs.txt` (so for example, `pip_requirements.txt` would match, as would `requirements_common.txt`)

### Usage<commit_msg>Fixing badge URLs in README<commit_after># Requirements Detector

## Status

[![Build Status](https://travis-ci.org/landscapeio/requirements-detector.png?branch=master)](https://travis-ci.org/landscapeio/requirements-detector) 
[![Code Quality](https://landscape.io/github/landscapeio/requirements-detector/master/landscape.png)](https://landscape.io/github/landscapeio/requirements-detector)
[![Coverage Status](https://coveralls.io/repos/landscapeio/requirements-detector/badge.png)](https://coveralls.io/r/landscapeio/requirements-detector)
[![Latest Version](https://pypip.in/v/requirements-detector/badge.png)](https://crate.io/package/requirements-detector)
[![Downloads](https://pypip.in/d/requirements-detector/badge.png)](https://crate.io/package/requirements-detector)

## About

`requirements-detector` is a simple Python tool which attempts to find and list the requirements of a Python project. 

When run from the root of a Python project, it will try to ascertain which libraries and the versions of those libraries that the project depends on.

It uses the following methods in order, in the root of the project:

1. Parse `setup.py`
2. Parse `requirements.txt`
3. Parse all `*.txt` files inside a folder called `requirements`
4. Parse all files in the root folder matching `*requirements*.txt` or `reqs.txt` (so for example, `pip_requirements.txt` would match, as would `requirements_common.txt`)

### Usage
{'fraction_non_alphanumeric': 0.13091426538598364, 'fraction_numerical': 0.002845962290999644, 'mean_word_length': 5.616470588235294, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 20, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5226198', 'n_tokens_mistral': 877, 'n_tokens_neox': 856, 'n_words': 221}