Metadata-Version: 2.4
Name: blagbl
Version: 0.1.1
Summary: CLI tool for fetching and checking BLAG block list information.
Project-URL: Homepage, https://github.com/hardaker/blagbl
Author-email: Wes Hardaker <opensource@hardakers.net>
License: MIT License
        
        Copyright (c) 2025 University of Southern California, Information Sciences Institute
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
License-File: LICENSE.txt
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.7
Requires-Dist: dateparser
Requires-Dist: msgpack
Requires-Dist: pyfsdb
Requires-Dist: requests
Requires-Dist: rich
Description-Content-Type: text/markdown

# About

This package is a BLAG block list lookup module and command line tool.
See the [BLAG webpage](https://steel.isi.edu/projects/BLAG) for
details on the BLAG aggregated blocklist.

# Installation

Install using `pip` or any of the other module management tools:

``` sh
$ pip install blagbl
```

# CLI Usage

Fetch the most recent dataset:

``` sh
$ blagbl --fetch
```

And use it to look up an address:

``` sh
$ blagbl 112.207.220.102
112.207.220.102                          cruzit_web_attacks
```

Display information about the current database:

``` sh
$ blagbl --info
Data from:           None
IP Count:            1072961
```

# Module Usage

``` python
from blagbl import BlagBL

blag = BlagBL()
# blag.fetch()  # do this rarely
blag.parse_blag_contents()
print(blag.ips["112.207.220.102"])
```
