From 45a5b5e2a2501ab7815bf350f13cbc13d1519a01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Quirin=20Zie=C3=9Fler?= <19915467+quirinziessler@users.noreply.github.com> Date: Thu, 18 Jan 2024 15:56:27 +0100 Subject: [PATCH] :tada: PyPi release --- .gitignore | 4 +++- README.md | 13 +++++++------ publish.sh | 3 +++ setup.cfg | 10 ++++++++-- setup.py | 4 +--- 5 files changed, 22 insertions(+), 12 deletions(-) create mode 100644 publish.sh diff --git a/.gitignore b/.gitignore index dc12cb7..314f8ef 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ .env -__pycache__ \ No newline at end of file +__pycache__ +wazuh_findings_exporter.egg-info +dist/wazuh_findings_exporter-1.0.tar.gz \ No newline at end of file diff --git a/README.md b/README.md index 4ef89fb..8dcd688 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,13 @@ -# wazuh-findings-exporter +# wazuh_findings_exporter + A simple python script which exports findings of a client group from wazuh and adds the agent-ip as well as hostname to every finding for better further processing. The script may not be perfect, so feel free to provide PRs and help to improve it. -``` -from wazuh_findings_exporter import Wazuh_Importer +## Usage + + from wazuh_findings_exporter import Wazuh_Importer -Wazuh = Wazuh_Importer(BASE_URL=None, BASE_URL=None, BASE_URL=None) + Wazuh = Wazuh_Importer(BASE_URL=None, BASE_URL=None, BASE_URL=None) -Wazuh.get_findings(group="Clients_AAAA", filedestination="") -``` \ No newline at end of file + Wazuh.get_findings(group="Clients_AAAA", filedestination="") diff --git a/publish.sh b/publish.sh new file mode 100644 index 0000000..a9ab1f5 --- /dev/null +++ b/publish.sh @@ -0,0 +1,3 @@ +python setup.py sdist +pip install twine +twine upload dist/* \ No newline at end of file diff --git a/setup.cfg b/setup.cfg index 117c50e..c8740a2 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,4 +1,10 @@ [metadata] -long_description = file: README.md license = MIT -version = 1 \ No newline at end of file +version = 1.1 +long_description = file: README.md +long_description_content_type = text/markdown + +[options] +install_requires = + requests + urllib3 \ No newline at end of file diff --git a/setup.py b/setup.py index fbaec72..eea207e 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name = 'wazuh_findings_exporter', packages = ['wazuh_findings_exporter'], - version = '1.0', + version = '1.1', license='MIT', description = 'Simple script that exports Wazuh Vulnerabilities by Agent groups', author = 'Quirin Hardy Zießler', @@ -15,10 +15,8 @@ 'requests', ], classifiers=[ - '5 - Production/Stable', 'Intended Audience :: Developers', 'Topic :: Software Development :: Build Tools', - 'MIT License', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7',