Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/haginara/PyCriminalIP

Python library for CriminalIP(https://www.criminalip.io/)
https://github.com/haginara/PyCriminalIP

criminalip python

Last synced: about 6 hours ago
JSON representation

Python library for CriminalIP(https://www.criminalip.io/)

Awesome Lists containing this project

README

        

# CriminalIP library for Pyhton(unofficial)

Integrated with CriminalIP API with Python.

## Installation
- Install from git
```
git clone https://github.com/haginara/PyCriminalIP.git
cd PyCriminalIP
python setup.py install
```

- Install from pypi
```
pip install pycriminalip
```

## How-to-Use
### Prepare the API Key from Criminalip.io

### Import classes and create an objects
```
import typing
from criminalip import CriminalIP

ip = IP('api_key_from_criminalip_io')
ip_data: dict[str, typing.Any] = ip.data('aispera.com')
print(ip_data)
```

## Development
It requires `pipenv` to manage the requirements. And it also requires make command as optional
```
pipenv install
```

## Unit Testing
```
pipenv run pytest
# or
pipenv run python -m unittest tests.test_CriminalIP
```