Skip to main content

Robust Python SDK and CLI for IntelOwl's API

Project description

PyIntelOwl

PyPI version PyPI Supported Python Versions Language grade: Python CodeFactor

Robust Python SDK and Command Line Client for interacting with IntelOwl's API.

Features

  • Easy one-time configuration with self documented help and hints along the way.
  • Request new analysis for observables and files.
    • Select which analyzers you want to run for every analysis you perform.
    • Choose whether you want to HTTP poll for the analysis to finish or not.
  • List all jobs or view one job in a prettified tabular form.
  • List all tags or view one tag in a prettified tabular form.
  • Tabular view of the analyzer_config.json and connector_config.json from IntelOwl with RegEx matching capabilities.

Demo

pyintelowl asciicast

Installation

$ pip3 install pyintelowl

For development/testing, pip3 install pyintelowl[dev]

Quickstart

As Command Line Client

On successful installation, The pyintelowl entryscript should be directly invokable. For example,

$ pyintelowl
Usage: pyintelowl [OPTIONS] COMMAND [ARGS]...

Options:
  -d, --debug  Set log level to DEBUG
  --version    Show the version and exit.
  -h, --help   Show this message and exit.

Commands:
  analyse                Send new analysis request
  analyzer-healthcheck   Send healthcheck request for an analyzer...
  config                 Set or view config variables
  connector-healthcheck  Send healthcheck request for a connector
  get-analyzer-config    Get current state of `analyzer_config.json` from...
  get-connector-config   Get current state of `connector_config.json` from...
  jobs                   Manage Jobs
  tags                   Manage tags

As a library / SDK

from pyintelowl import IntelOwl
obj = IntelOwl("<your_api_key>", "<your_intelowl_instance_url>", "optional<path_to_pem_file>")

For more comprehensive documentation, please see https://pyintelowl.readthedocs.io/.

Changelog

View CHANGELOG.md.

FAQ

Generate API key

You need a valid API key to interact with the IntelOwl server. Keys should be created from the admin interface of IntelOwl: you have to go in the Durin section (click on Auth tokens) and generate a key there.

Incompatibility after version 3.0

We did a complete rewrite of the PyIntelOwl client and CLI both for the version 3.0.0. We very much recommend you to update to the latest version to enjoy all new features.

(old auth method) JWT Token Authentication

this auth was available in IntelOwl versions <1.8.0 and pyintelowl versions <2.0.0

From the admin interface of IntelOwl, you have to go in the Outstanding tokens section and generate a token there.

You can use it by pasting it into the file api_token.txt.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyintelowl-4.1.0.tar.gz (42.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyintelowl-4.1.0-py3-none-any.whl (45.9 kB view details)

Uploaded Python 3

File details

Details for the file pyintelowl-4.1.0.tar.gz.

File metadata

  • Download URL: pyintelowl-4.1.0.tar.gz
  • Upload date:
  • Size: 42.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for pyintelowl-4.1.0.tar.gz
Algorithm Hash digest
SHA256 9ac5727e5fe1234921f3d23469ce32e984a4c715431edcef61dbc452bef378d3
MD5 fcfa2539ad06e01a7c63d5bc511cbd11
BLAKE2b-256 5f58e32abeaecdf8d71f7796421d856411fbd9b63ef4e52e051f80c3ecedd5f7

See more details on using hashes here.

File details

Details for the file pyintelowl-4.1.0-py3-none-any.whl.

File metadata

  • Download URL: pyintelowl-4.1.0-py3-none-any.whl
  • Upload date:
  • Size: 45.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for pyintelowl-4.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 448ad00c4f4366eb88b588f8bd3bfac14c13c9afb657959051d7d9068ebda96e
MD5 b7378f6d688e33209d4eeab26794c96f
BLAKE2b-256 976f4ad8d5bd8475f98e7c5afa87fd21e0a6926cb1211bf528746c9b1a20448b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page