code-analyser 1.0.0__tar.gz → 1.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.
Files changed (49) hide show
  1. {code_analyser-1.0.0 → code_analyser-1.0.2}/PKG-INFO +4 -4
  2. {code_analyser-1.0.0 → code_analyser-1.0.2}/README.md +3 -3
  3. {code_analyser-1.0.0 → code_analyser-1.0.2}/pyproject.toml +1 -1
  4. {code_analyser-1.0.0 → code_analyser-1.0.2}/src/code_analyser/api.py +1 -0
  5. code_analyser-1.0.2/uv.lock +827 -0
  6. code_analyser-1.0.0/CODE-LENS.md +0 -223
  7. code_analyser-1.0.0/uv.lock +0 -1671
  8. {code_analyser-1.0.0 → code_analyser-1.0.2}/.dockerignore +0 -0
  9. {code_analyser-1.0.0 → code_analyser-1.0.2}/.env.example +0 -0
  10. {code_analyser-1.0.0 → code_analyser-1.0.2}/.gitignore +0 -0
  11. {code_analyser-1.0.0 → code_analyser-1.0.2}/LICENSE +0 -0
  12. {code_analyser-1.0.0 → code_analyser-1.0.2}/docs/superpowers/plans/2026-05-06-code-analyser-rewrite.md +0 -0
  13. {code_analyser-1.0.0 → code_analyser-1.0.2}/docs/superpowers/specs/2026-05-05-code-analyser-design.md +0 -0
  14. {code_analyser-1.0.0 → code_analyser-1.0.2}/src/code_analyser/__init__.py +0 -0
  15. {code_analyser-1.0.0 → code_analyser-1.0.2}/src/code_analyser/cli.py +0 -0
  16. {code_analyser-1.0.0 → code_analyser-1.0.2}/src/code_analyser/core/__init__.py +0 -0
  17. {code_analyser-1.0.0 → code_analyser-1.0.2}/src/code_analyser/core/css_.py +0 -0
  18. {code_analyser-1.0.0 → code_analyser-1.0.2}/src/code_analyser/core/html_.py +0 -0
  19. {code_analyser-1.0.0 → code_analyser-1.0.2}/src/code_analyser/core/javascript_.py +0 -0
  20. {code_analyser-1.0.0 → code_analyser-1.0.2}/src/code_analyser/core/notebook_.py +0 -0
  21. {code_analyser-1.0.0 → code_analyser-1.0.2}/src/code_analyser/core/python_.py +0 -0
  22. {code_analyser-1.0.0 → code_analyser-1.0.2}/src/code_analyser/core/sql_.py +0 -0
  23. {code_analyser-1.0.0 → code_analyser-1.0.2}/src/code_analyser/core/typescript_.py +0 -0
  24. {code_analyser-1.0.0 → code_analyser-1.0.2}/src/code_analyser/detect.py +0 -0
  25. {code_analyser-1.0.0 → code_analyser-1.0.2}/src/code_analyser/llm.py +0 -0
  26. {code_analyser-1.0.0 → code_analyser-1.0.2}/src/code_analyser/models.py +0 -0
  27. {code_analyser-1.0.0 → code_analyser-1.0.2}/src/code_analyser/pipeline.py +0 -0
  28. {code_analyser-1.0.0 → code_analyser-1.0.2}/src/code_analyser/settings.py +0 -0
  29. {code_analyser-1.0.0 → code_analyser-1.0.2}/tests/__init__.py +0 -0
  30. {code_analyser-1.0.0 → code_analyser-1.0.2}/tests/api/__init__.py +0 -0
  31. {code_analyser-1.0.0 → code_analyser-1.0.2}/tests/api/test_api.py +0 -0
  32. {code_analyser-1.0.0 → code_analyser-1.0.2}/tests/cli/__init__.py +0 -0
  33. {code_analyser-1.0.0 → code_analyser-1.0.2}/tests/cli/test_cli.py +0 -0
  34. {code_analyser-1.0.0 → code_analyser-1.0.2}/tests/conftest.py +0 -0
  35. {code_analyser-1.0.0 → code_analyser-1.0.2}/tests/integration/__init__.py +0 -0
  36. {code_analyser-1.0.0 → code_analyser-1.0.2}/tests/integration/test_full_pipeline.py +0 -0
  37. {code_analyser-1.0.0 → code_analyser-1.0.2}/tests/integration/test_pipeline.py +0 -0
  38. {code_analyser-1.0.0 → code_analyser-1.0.2}/tests/unit/__init__.py +0 -0
  39. {code_analyser-1.0.0 → code_analyser-1.0.2}/tests/unit/test_css_.py +0 -0
  40. {code_analyser-1.0.0 → code_analyser-1.0.2}/tests/unit/test_detect.py +0 -0
  41. {code_analyser-1.0.0 → code_analyser-1.0.2}/tests/unit/test_html_.py +0 -0
  42. {code_analyser-1.0.0 → code_analyser-1.0.2}/tests/unit/test_javascript_.py +0 -0
  43. {code_analyser-1.0.0 → code_analyser-1.0.2}/tests/unit/test_llm.py +0 -0
  44. {code_analyser-1.0.0 → code_analyser-1.0.2}/tests/unit/test_models.py +0 -0
  45. {code_analyser-1.0.0 → code_analyser-1.0.2}/tests/unit/test_notebook_.py +0 -0
  46. {code_analyser-1.0.0 → code_analyser-1.0.2}/tests/unit/test_python_.py +0 -0
  47. {code_analyser-1.0.0 → code_analyser-1.0.2}/tests/unit/test_scaffold.py +0 -0
  48. {code_analyser-1.0.0 → code_analyser-1.0.2}/tests/unit/test_sql_.py +0 -0
  49. {code_analyser-1.0.0 → code_analyser-1.0.2}/tests/unit/test_typescript_.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: code-analyser
3
- Version: 1.0.0
3
+ Version: 1.0.2
4
4
  Summary: Source code analyser — part of the analyser family
5
5
  License-File: LICENSE
6
6
  Requires-Python: >=3.10
@@ -46,7 +46,7 @@ Requires Python 3.11+.
46
46
  ### Python
47
47
 
48
48
  ```python
49
- from codelens import analyse
49
+ from code_analyser import analyse
50
50
 
51
51
  result = analyse("submission.py")
52
52
 
@@ -59,7 +59,7 @@ print(f"Issues: {len(result['issues'])}")
59
59
 
60
60
  ```bash
61
61
  # Start the server
62
- uvicorn codelens.main:app --port 8004
62
+ uvicorn code_analyser.main:app --port 8004
63
63
 
64
64
  curl -X POST http://localhost:8004/api/v1/analyze/python \
65
65
  -H "Content-Type: application/json" \
@@ -105,7 +105,7 @@ Low-level analysis tools. Each accepts files directly and returns structured JSO
105
105
  | [document-analyser](https://github.com/michael-borck/document-analyser) | PDF, DOCX, PPTX, TXT — text and readability |
106
106
  | [code-analyser](https://github.com/michael-borck/code-analyser) | source code — style, complexity, and quality metrics |
107
107
  | [records-analyser](https://github.com/michael-borck/records-analyser) | CSV, Excel, SQLite, Parquet, JSON — data profiling |
108
- | [multi-analyser](https://github.com/michael-borck/multi-analyser) | any file — detects format and routes to the right tool |
108
+ | [auto-analyser](https://github.com/michael-borck/auto-analyser) | any file — detects format and routes to the right tool |
109
109
 
110
110
  ## License
111
111
 
@@ -19,7 +19,7 @@ Requires Python 3.11+.
19
19
  ### Python
20
20
 
21
21
  ```python
22
- from codelens import analyse
22
+ from code_analyser import analyse
23
23
 
24
24
  result = analyse("submission.py")
25
25
 
@@ -32,7 +32,7 @@ print(f"Issues: {len(result['issues'])}")
32
32
 
33
33
  ```bash
34
34
  # Start the server
35
- uvicorn codelens.main:app --port 8004
35
+ uvicorn code_analyser.main:app --port 8004
36
36
 
37
37
  curl -X POST http://localhost:8004/api/v1/analyze/python \
38
38
  -H "Content-Type: application/json" \
@@ -78,7 +78,7 @@ Low-level analysis tools. Each accepts files directly and returns structured JSO
78
78
  | [document-analyser](https://github.com/michael-borck/document-analyser) | PDF, DOCX, PPTX, TXT — text and readability |
79
79
  | [code-analyser](https://github.com/michael-borck/code-analyser) | source code — style, complexity, and quality metrics |
80
80
  | [records-analyser](https://github.com/michael-borck/records-analyser) | CSV, Excel, SQLite, Parquet, JSON — data profiling |
81
- | [multi-analyser](https://github.com/michael-borck/multi-analyser) | any file — detects format and routes to the right tool |
81
+ | [auto-analyser](https://github.com/michael-borck/auto-analyser) | any file — detects format and routes to the right tool |
82
82
 
83
83
  ## License
84
84
 
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "code-analyser"
7
- version = "1.0.0"
7
+ version = "1.0.2"
8
8
  description = "Source code analyser — part of the analyser family"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -3,6 +3,7 @@ import tempfile
3
3
  import time
4
4
  from pathlib import Path
5
5
 
6
+ from importlib.metadata import version
6
7
  from fastapi import FastAPI, File, HTTPException, UploadFile
7
8
 
8
9
  from .models import CodeAnalysis