<commit_before># Expense Tracker
A simple Pyramid app for listing and displaying expenses.

**Authors**:

- <NAME> (<EMAIL>)
- the class of Code Fellows Python 401d5

## Routes:

- `/` - the home page and a listing of all expenses
- `/new-expense` - to create a new expense
- `/expense/{id:\d+}` - the page for an individual expense
- `/expense/{id:\d+}/edit` - for editing existing expenses
- `/expense/{cat:\w+}` - list all expenses by category

## Usage:

- Clone this repository to your local machine.

- Once downloaded, `cd` into the `expense_tracker` directory.

- Begin a new Virtual Environment with Python 3 and activate it.

- `cd` into the next `expense_tracker` directory. It should be at the same level of `setup.py`

- `pip install` this package as well as the `testing` set of extras.

## To Test

- If you have the `testing` extras installed, testing is simple. If you're in the same directory as `setup.py` type the following.

```bash
$ py.test expense_tracker
```<commit_msg>More extensive readme<commit_after># Expense Tracker
A simple Pyramid app for listing and displaying expenses.

**Authors**:

- <NAME> (<EMAIL>)
- the class of Code Fellows Python 401d5

## Routes:

- `/` - the home page and a listing of all expenses
- `/new-expense` - to create a new expense
- `/expense/{id:\d+}` - the page for an individual expense
- `/expense/{id:\d+}/edit` - for editing existing expenses
- `/expense/{cat:\w+}` - list all expenses by category

## Set Up and Installation:

- Clone this repository to your local machine.

- Once downloaded, `cd` into the `expense_tracker` directory.

- Begin a new virtual environment with Python 3 and activate it.

- `cd` into the next `expense_tracker` directory. It should be at the same level of `setup.py`

- `pip install` this package as well as the `testing` set of extras into your virtual environment.

- `$ initialize_db development.ini` to initialize the database, populating with random models.

- `$ pserve development.ini --reload` to serve the application on `http://localhost:6543`

## To Test

- If you have the `testing` extras installed, testing is simple. If you're in the same directory as `setup.py` type the following:

```
$ py.test expense_tracker
```
{'fraction_non_alphanumeric': 0.11215791834903545, 'fraction_numerical': 0.006280843427545985, 'mean_word_length': 3.7547974413646057, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '1808408', 'n_tokens_mistral': 700, 'n_tokens_neox': 665, 'n_words': 297}