From 8b2f2d4d19c43e4a894fcfb3692592b46b310105 Mon Sep 17 00:00:00 2001 From: blupants Date: Wed, 17 Jul 2024 00:27:27 -0500 Subject: [PATCH] Fixed backward compatibility with Python 3.9 --- setup.py | 4 ++-- src/n0s1/__init__.py | 2 +- src/n0s1/controllers/spark1.py | 6 +++--- src/n0s1/n0s1.py | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/setup.py b/setup.py index 88d7595..1d9ec3a 100644 --- a/setup.py +++ b/setup.py @@ -27,7 +27,7 @@ def get_version(): setup( name="n0s1", version=get_version(), - description="Secret Scanner for Jira, Confluence, Asana, Wrike and Linear. Prevent credential leaks with n0s1.", + description="Secret Scanner for Slack, Jira, Confluence, Asana, Wrike and Linear. Prevent credential leaks with n0s1.", long_description=long_description, long_description_content_type="text/markdown", url="https://spark1.us/n0s1", @@ -47,7 +47,7 @@ def get_version(): "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", ], # Classifiers help users find your project by categorizing it https://pypi.org/classifiers/ - keywords="security, cybersecurity, scanner, secret scanner, secret leak, data leak, Jira, Confluence, Asana, Wrike, Linear, security scanner", + keywords="security, cybersecurity, scanner, secret scanner, secret leak, data leak, Slack, Jira, Confluence, Asana, Wrike, Linear, security scanner", package_dir={"": "src"}, packages=find_packages(where="src"), python_requires=">=3.8, <4", diff --git a/src/n0s1/__init__.py b/src/n0s1/__init__.py index 6e3c058..c916e68 100644 --- a/src/n0s1/__init__.py +++ b/src/n0s1/__init__.py @@ -1 +1 @@ -__version__ = "1.0.20" +__version__ = "1.0.21" diff --git a/src/n0s1/controllers/spark1.py b/src/n0s1/controllers/spark1.py index e9d8623..6a4054d 100644 --- a/src/n0s1/controllers/spark1.py +++ b/src/n0s1/controllers/spark1.py @@ -20,10 +20,10 @@ def _get_local_ip(): class Spark1(http_client.HttpClient): - def __init__(self, headers: dict = None, server: str = None, options: dict[str, str | bool] = None, - basic_auth: tuple[str, str] | None = None, token_auth: str | None = None, validate=False, + def __init__(self, headers: dict = None, server: str = None, options: dict[str, str] = None, + basic_auth: tuple[str, str] = None, token_auth: str = None, validate=False, get_server_info: bool = True, async_: bool = False, async_workers: int = 5, - max_retries: int = 3, timeout: None | float | tuple[float, float] | tuple[float, None] | None = None, + max_retries: int = 3, timeout: int = None, auth: tuple[str, str] = None): self.base_url = "https://api.spark1.us" # self.base_url = "http://127.0.0.1:5000" diff --git a/src/n0s1/n0s1.py b/src/n0s1/n0s1.py index d08d9b8..90ef2f6 100755 --- a/src/n0s1/n0s1.py +++ b/src/n0s1/n0s1.py @@ -65,7 +65,7 @@ def init_argparse() -> argparse.ArgumentParser: install_path = os.path.dirname(os.path.abspath(__file__)) parser = argparse.ArgumentParser( prog="n0s1", - description="""Secret scanner for Project Management platforms such as Jira, Confluence, Asana, Wrike and Linear. + description="""Secret scanner for Slack, Jira, Confluence, Asana, Wrike and Linear. """, )