chinaski

Detect email addresses in files


License
GPL-3.0
Install
pip install chinaski==1.0.2

Documentation

chinaski

Detect email addresses in files. A tribute to the novel Post Office from Charles Bukowski.

PyPI GitHub release (latest by date) PyPI - Python Version PyPi downloads

Installation

Use the package manager pip to install chinaski.

pip install chinaski

Usage

As CLI

Usage: python -m chinaski [OPTIONS] PATH_TO_FILE_OR_DIR

  Detect emails addresses in files.

  PATH_TO_FILE_OR_DIR: Path to single file or directory to scan.

Options:
  --help  Show this message and exit.

Example:

# Detect in only 1 file
python -m chinaski ./file.txt

# Detect in a directory
python -m chinaski path/to/dir

Inside your code

from chinaski.henry import core

if __name__ == '__main__':
    core("file.txt")

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

GPLv3