Skip to content

Commit

Permalink
Merge pull request #24 from spark1security/ms/python39-fix
Browse files Browse the repository at this point in the history
Fixed backward compatibility with Python 3.9
  • Loading branch information
blupants authored Jul 17, 2024
2 parents 081ed19 + 8b2f2d4 commit 90f1490
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/n0s1/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.0.20"
__version__ = "1.0.21"
6 changes: 3 additions & 3 deletions src/n0s1/controllers/spark1.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/n0s1/n0s1.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
""",
)

Expand Down

0 comments on commit 90f1490

Please sign in to comment.