semvec/pypi-packages huggingface dataset:
iocparser 1.0.14
scrapes IOCs from plaintext

# IOC-parser 
IOC-Parser is a script that will extract the IOCs from a given (text-based) file and output it in .csv-format. Or - as a module - returns a list of instances with an IOC-value and an IOC-type.

### Installation 
* as a module: `pip install iocparser`
* as a stand-alone script: `git clone https://github.com/renzejongman/iocparser`

### Usage 
`./iocparser.py -s [source-file] -o [outputfile.csv]`

### Use in a custom script
```
from iocparser import IOCParser
textObj = IOCParser("text")
results = textObj.parse()
```

### Classes 
* `.IOC(kind, value)` </br>
Instances of this very simple class are generated by the IOCParser class. </br>
`kind` 	= _"IP", "uri", "md5", "sha1", "sha256", "CVE", "email" or "file"_ </br>
`value`	= _The value of the IOCParser-class and returned as a list._ </br>

* `.IOCParser(text)`
This class takes a text as input, extracts all the IOCs and returns them as a list of instances of the IOC-class. </br>
`text` 	= _the raw text (as a variable) to be parsed._ </br>

### Other files
* `extensions`:	_the file extensions needed to detect a filename (and not mistake them for URIs)_
* `tlds`:		_the Top Level Domains (TLDs) needed to recognise URI`s (and not mistake them for files)_ </br>
_feel free to manipulate those files, but make sure there are no empty lines in either of them, or the script will break._
loggui 0.2.5
GUI handler for python logging

# LogGui

## GUI for Python logging

## Installation

1. Install requirements
`pip3 install -r requirements.txt`

2. Install LogGui!
`python3 setup.py install`

3. (Optionally) Try it out!
`python3 -m loggui example/just_logging.py`

![LogGui](pics/LogGui.png)

## Usage

### Run script

`python3 -m loggui path_to_script`

### Include in your code

Add this in place where you want the GUI to show up:

```
import logging
from loggui import GUILoggerHandler
rlogger = logging.getLogger()
rlogger.setLevel(logging.DEBUG)
rlogger.addHandler(GUILoggerHandler())
```