https://github.com/davidism/mcafee-epo
Python client for McAfee ePolicy Orchestrator
https://github.com/davidism/mcafee-epo
mcafee python
Last synced: 8 months ago
JSON representation
Python client for McAfee ePolicy Orchestrator
- Host: GitHub
- URL: https://github.com/davidism/mcafee-epo
- Owner: davidism
- License: bsd-3-clause
- Created: 2019-08-22T14:07:42.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2021-03-12T19:43:12.000Z (about 5 years ago)
- Last Synced: 2025-03-24T12:56:16.560Z (about 1 year ago)
- Topics: mcafee, python
- Language: Python
- Homepage:
- Size: 26.4 KB
- Stars: 15
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.rst
- License: LICENSE.rst
Awesome Lists containing this project
README
Python client for McAfee ePolicy Orchestrator
=============================================
A straightforward wrapper around the ePO API. Manages authentication,
building requests, and interpreting responses. Simply treat the client
object as a callable function, passing the command name and parameters.
Install::
$ pip install mcafee-epo
Use::
>>> from mcafee_epo import Client
>>> client = Client('https://localhost:8443', 'user', 'password')
>>> systems = client('system.find', '')
Differences from "official" client
----------------------------------
This library was created in response to the fairly poor client
distributed by McAfee, which didn't support Python 3 and was generally
a mess. (You can find a cleaned up version of their client with Python 3
support in the first few commits.)
The official library requires copying files into the Python location to
"install" it. This library is an actual package installed using ``pip``.
The official client uses low level url libraries and numerous
workarounds to make http requests. This library uses the
`requests `_ library to greatly simplify
the work the previous code was doing while offering better security.
The official client uses a dynamic command discovery and dispatch
mechanism to make API calls seem like a nested set of objects. This
library forgoes that complexity (which wasn't understood by IDEs anyway)
for a more straightforward approach that just accepts command names when
calling.
Links
-----
- Releases: https://pypi.org/project/mcafee-epo/
- Code: https://github.com/davidism/mcafee-epo