FireEye Client Library for Python
Project description
FireEye Client Library for Python
This is the Python client library for all things FireEye API. Currently it only supports FireEye's Detection On Demand but will have support for other FireEye API's soon.
Installation
To install the Python client library:
pip install fireeyepy
To upgrade your installed library:
pip install fireeyepy --upgrade
Alternatively, you can clone the repository via the command line:
git clone https://github.com/fireeye/fireeye-python.git
Usage
Begin by importing the 'fireeye' module:
import fireeyepy
Detection On Demand
Construct a Detection object with your api key:
detection = fireeyepy.Detection(key=api_key)
Upload A File
response = detection.submit_file(
files={
"file": ('filename', open('./path/to/filename', 'r'))
}
)
Retrieve File Report
response = detection.get_report(report_id)
You may also provide the optional extended=True
flag to get the full, in-depth report:
response = detection.get_report(report_id, extended=True)
Perform Hash Lookup
response = detection.get_hash(hash)
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
fireeyepy-0.0.1.tar.gz
(5.0 kB
view hashes)
Built Distribution
Close
Hashes for fireeyepy-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 416a94e44589b32a044058b565fa2a081a077488e446c4a6e28721286d31421a |
|
MD5 | 81fe16e9ff1de6db3fc6d6a00a55925c |
|
BLAKE2b-256 | f6b1a31e9c547dea838b674102cfd4a0f00a7c9b895cbc4a67f8b8713d4a1b62 |