semvec/pypi-packages huggingface dataset:
mozreport 18.12.0
CLI for generating experiment reports
Requires Python: >=3.6

# mozreport [![Build Status](https://travis-ci.org/mozilla/mozreport.svg?branch=master)](https://travis-ci.org/mozilla/mozreport) [![PyPI](https://img.shields.io/pypi/v/mozreport.svg)](https://pypi.org/project/mozreport/)

mozreport is a CLI tool that intends to help streamline
the process of preparing an experiment report.

## Using mozreport

```
$ mozreport --help

Usage: mozreport [OPTIONS] COMMAND [ARGS]...

  Mozreport helps you write experiment reports.

  The workflow looks like:

  * `mozreport setup` the first time you use Mozreport

  * `mozreport new` to declare a new experiment and generate an analysis
  script

  * `mozreport submit` to run an analysis script on Databricks

  * `mozreport fetch` to download the result

  * `mozreport report` to set up a report template

  The local configuration directory is /Users/tsmith/Library/Application Support/mozreport.
```

## What's a template?

A report template is any collection of code that operates on a file named `summary.csv`
in the current working directory,
and renders a report.
To add a template,
add a folder to the `mozreport/templates` folder in this repository,
or the `templates` folder inside your local configuration directory
(see the bottom of `mozreport --help`).

You may wish to adopt the convention of including a script named `build.py`
that performs the necessary steps to render the report.

## Hacking on mozreport

To run unit tests only:

`tox -- -m "not integration"`

To run all tests, including integration tests that hit our live Databricks account:

* Run `mozreport setup` once
* `tox`
rm-logger 0.0.1
A generic logging class

<img src="https://i.imgur.com/FPfSM65.png" width="300">

# Generic Logger
[![built with Python2](https://img.shields.io/badge/Built%20with-Python2-blue.svg)](https://www.python.org/)

### A generic logging class for Python

Basic setup and usage are simple.  Just import the class and create a Logger instance with a location to save the log file, it will handle everything else!  
The log files will even be capped at a configurable limit and rotated after they have reached the limit.

To install:
Download the source files as an archive and extract them on your computer.

Next run the install command:
```bash
python setup.py install
```

Usage:
```python
from logger import Logger

def main():
    log = Logger("./logs/test.log")

    log.info("This is a test...")
    log.warning("I know what you did last summer...")

if __name__ == "__main__":
    main()
```

### Attributes
*   Log File Location
*   Logger Name (Default: Calling script)
*   Max Log File Size {in Megabytes} (Default: 1 MB)
*   Log File Backup Count (Default: 3)
*   Logging Level (Default: INFO)
*   Log Format (Default: %(levelname)s: [%(name)s]: %(asctime)s - %(message)s)
*   Date Format (Default: %m/%d/%Y %H:%M:%S)

All attributes are configurable, and all except log file location have default values.

### Logging Levels
*   DEBUG
*   INFO
*   WARNING
*   ERROR
*   CRITICAL

### Log File Output Example
<img src="https://i.imgur.com/SBNtE18.png">