aiwaf 0.1.9.0.1__tar.gz → 0.1.9.0.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of aiwaf might be problematic. Click here for more details.

Files changed (32) hide show
  1. {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/PKG-INFO +1 -1
  2. aiwaf-0.1.9.0.2/aiwaf/__init__.py +6 -0
  3. {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/aiwaf/trainer.py +1 -1
  4. {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/aiwaf.egg-info/PKG-INFO +1 -1
  5. {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/pyproject.toml +1 -1
  6. {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/setup.py +1 -1
  7. aiwaf-0.1.9.0.1/aiwaf/__init__.py +0 -24
  8. {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/LICENSE +0 -0
  9. {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/README.md +0 -0
  10. {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/aiwaf/apps.py +0 -0
  11. {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/aiwaf/blacklist_manager.py +0 -0
  12. {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/aiwaf/decorators.py +0 -0
  13. {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/aiwaf/management/__init__.py +0 -0
  14. {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/aiwaf/management/commands/__init__.py +0 -0
  15. {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/aiwaf/management/commands/add_ipexemption.py +0 -0
  16. {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/aiwaf/management/commands/aiwaf_diagnose.py +0 -0
  17. {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/aiwaf/management/commands/aiwaf_logging.py +0 -0
  18. {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/aiwaf/management/commands/aiwaf_reset.py +0 -0
  19. {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/aiwaf/management/commands/detect_and_train.py +0 -0
  20. {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/aiwaf/middleware.py +0 -0
  21. {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/aiwaf/middleware_logger.py +0 -0
  22. {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/aiwaf/models.py +0 -0
  23. {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/aiwaf/resources/model.pkl +0 -0
  24. {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/aiwaf/storage.py +0 -0
  25. {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/aiwaf/templatetags/__init__.py +0 -0
  26. {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/aiwaf/templatetags/aiwaf_tags.py +0 -0
  27. {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/aiwaf/utils.py +0 -0
  28. {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/aiwaf.egg-info/SOURCES.txt +0 -0
  29. {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/aiwaf.egg-info/dependency_links.txt +0 -0
  30. {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/aiwaf.egg-info/requires.txt +0 -0
  31. {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/aiwaf.egg-info/top_level.txt +0 -0
  32. {aiwaf-0.1.9.0.1 → aiwaf-0.1.9.0.2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aiwaf
3
- Version: 0.1.9.0.1
3
+ Version: 0.1.9.0.2
4
4
  Summary: AI-powered Web Application Firewall
5
5
  Home-page: https://github.com/aayushgauba/aiwaf
6
6
  Author: Aayush Gauba
@@ -0,0 +1,6 @@
1
+ default_app_config = "aiwaf.apps.AiwafConfig"
2
+
3
+ __version__ = "0.1.9.0.2"
4
+
5
+ # Note: Middleware classes are available from aiwaf.middleware
6
+ # Import them only when needed to avoid circular imports during Django app loading
@@ -17,7 +17,7 @@ from .utils import is_exempt_path
17
17
  from .storage import get_blacklist_store, get_exemption_store, get_keyword_store
18
18
 
19
19
  # ─────────── Configuration ───────────
20
- LOG_PATH = settings.AIWAF_ACCESS_LOG
20
+ LOG_PATH = getattr(settings, 'AIWAF_ACCESS_LOG', None)
21
21
  MODEL_PATH = os.path.join(os.path.dirname(__file__), "resources", "model.pkl")
22
22
 
23
23
  STATIC_KW = [".php", "xmlrpc", "wp-", ".env", ".git", ".bak", "conflg", "shell", "filemanager"]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aiwaf
3
- Version: 0.1.9.0.1
3
+ Version: 0.1.9.0.2
4
4
  Summary: AI-powered Web Application Firewall
5
5
  Home-page: https://github.com/aayushgauba/aiwaf
6
6
  Author: Aayush Gauba
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "aiwaf"
3
- version = "0.1.9.0.1"
3
+ version = "0.1.9.0.2"
4
4
  description = "AI-powered Web Application Firewall"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.8"
@@ -9,7 +9,7 @@ long_description = (HERE / "README.md").read_text(encoding="utf-8")
9
9
 
10
10
  setup(
11
11
  name="aiwaf",
12
- version="0.1.9.0.1",
12
+ version="0.1.9.0.2",
13
13
  description="AI‑driven, self‑learning Web Application Firewall for Django",
14
14
  long_description=long_description,
15
15
  long_description_content_type="text/markdown",
@@ -1,24 +0,0 @@
1
- default_app_config = "aiwaf.apps.AiwafConfig"
2
-
3
- __version__ = "0.1.9.0.1"
4
-
5
- # Note: Middleware classes are available from aiwaf.middleware
6
- # Import them only when needed to avoid circular imports during Django app loading= "aiwaf.apps.AiwafConfig"
7
-
8
- __version__ = "0.1.9.0.1"
9
-
10
- # Import main middleware classes for easier access
11
- try:
12
- from .middleware import (
13
- IPAndKeywordBlockMiddleware,
14
- RateLimitMiddleware,
15
- AIAnomalyMiddleware,
16
- HoneypotTimingMiddleware,
17
- UUIDTamperMiddleware
18
- )
19
- except ImportError as e:
20
- # Handle import errors gracefully during package installation
21
- import sys
22
- if 'runserver' in sys.argv or 'migrate' in sys.argv or 'shell' in sys.argv:
23
- print(f"Warning: Could not import middleware classes: {e}")
24
- print("Tip: Run 'python manage.py aiwaf_diagnose' to troubleshoot")
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes