hypergumbo-lang-mainstream 2.0.0__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 (75) hide show
  1. hypergumbo_lang_mainstream-2.0.0/.gitignore +43 -0
  2. hypergumbo_lang_mainstream-2.0.0/PKG-INFO +72 -0
  3. hypergumbo_lang_mainstream-2.0.0/README.md +29 -0
  4. hypergumbo_lang_mainstream-2.0.0/pyproject.toml +71 -0
  5. hypergumbo_lang_mainstream-2.0.0/src/hypergumbo_lang_mainstream/__init__.py +65 -0
  6. hypergumbo_lang_mainstream-2.0.0/src/hypergumbo_lang_mainstream/bash.py +438 -0
  7. hypergumbo_lang_mainstream-2.0.0/src/hypergumbo_lang_mainstream/c.py +528 -0
  8. hypergumbo_lang_mainstream-2.0.0/src/hypergumbo_lang_mainstream/cmake.py +480 -0
  9. hypergumbo_lang_mainstream-2.0.0/src/hypergumbo_lang_mainstream/cpp.py +658 -0
  10. hypergumbo_lang_mainstream-2.0.0/src/hypergumbo_lang_mainstream/csharp.py +1050 -0
  11. hypergumbo_lang_mainstream-2.0.0/src/hypergumbo_lang_mainstream/css.py +465 -0
  12. hypergumbo_lang_mainstream-2.0.0/src/hypergumbo_lang_mainstream/dockerfile.py +436 -0
  13. hypergumbo_lang_mainstream-2.0.0/src/hypergumbo_lang_mainstream/gitignore.py +295 -0
  14. hypergumbo_lang_mainstream-2.0.0/src/hypergumbo_lang_mainstream/go.py +856 -0
  15. hypergumbo_lang_mainstream-2.0.0/src/hypergumbo_lang_mainstream/groovy.py +674 -0
  16. hypergumbo_lang_mainstream-2.0.0/src/hypergumbo_lang_mainstream/html.py +158 -0
  17. hypergumbo_lang_mainstream-2.0.0/src/hypergumbo_lang_mainstream/ini.py +337 -0
  18. hypergumbo_lang_mainstream-2.0.0/src/hypergumbo_lang_mainstream/java.py +1179 -0
  19. hypergumbo_lang_mainstream-2.0.0/src/hypergumbo_lang_mainstream/js_ts.py +2713 -0
  20. hypergumbo_lang_mainstream-2.0.0/src/hypergumbo_lang_mainstream/json_config.py +692 -0
  21. hypergumbo_lang_mainstream-2.0.0/src/hypergumbo_lang_mainstream/kotlin.py +846 -0
  22. hypergumbo_lang_mainstream-2.0.0/src/hypergumbo_lang_mainstream/lua.py +430 -0
  23. hypergumbo_lang_mainstream-2.0.0/src/hypergumbo_lang_mainstream/make.py +403 -0
  24. hypergumbo_lang_mainstream-2.0.0/src/hypergumbo_lang_mainstream/markdown.py +372 -0
  25. hypergumbo_lang_mainstream-2.0.0/src/hypergumbo_lang_mainstream/objc.py +646 -0
  26. hypergumbo_lang_mainstream-2.0.0/src/hypergumbo_lang_mainstream/perl.py +528 -0
  27. hypergumbo_lang_mainstream-2.0.0/src/hypergumbo_lang_mainstream/php.py +975 -0
  28. hypergumbo_lang_mainstream-2.0.0/src/hypergumbo_lang_mainstream/powershell.py +436 -0
  29. hypergumbo_lang_mainstream-2.0.0/src/hypergumbo_lang_mainstream/properties.py +266 -0
  30. hypergumbo_lang_mainstream-2.0.0/src/hypergumbo_lang_mainstream/py.py +1971 -0
  31. hypergumbo_lang_mainstream-2.0.0/src/hypergumbo_lang_mainstream/requirements.py +402 -0
  32. hypergumbo_lang_mainstream-2.0.0/src/hypergumbo_lang_mainstream/ruby.py +956 -0
  33. hypergumbo_lang_mainstream-2.0.0/src/hypergumbo_lang_mainstream/rust.py +945 -0
  34. hypergumbo_lang_mainstream-2.0.0/src/hypergumbo_lang_mainstream/scala.py +641 -0
  35. hypergumbo_lang_mainstream-2.0.0/src/hypergumbo_lang_mainstream/sql.py +583 -0
  36. hypergumbo_lang_mainstream-2.0.0/src/hypergumbo_lang_mainstream/swift.py +560 -0
  37. hypergumbo_lang_mainstream-2.0.0/src/hypergumbo_lang_mainstream/toml_config.py +535 -0
  38. hypergumbo_lang_mainstream-2.0.0/src/hypergumbo_lang_mainstream/xml_config.py +565 -0
  39. hypergumbo_lang_mainstream-2.0.0/src/hypergumbo_lang_mainstream/yaml_ansible.py +370 -0
  40. hypergumbo_lang_mainstream-2.0.0/tests/test_bash.py +505 -0
  41. hypergumbo_lang_mainstream-2.0.0/tests/test_c.py +770 -0
  42. hypergumbo_lang_mainstream-2.0.0/tests/test_cmake_analyzer.py +379 -0
  43. hypergumbo_lang_mainstream-2.0.0/tests/test_cpp.py +762 -0
  44. hypergumbo_lang_mainstream-2.0.0/tests/test_csharp.py +1330 -0
  45. hypergumbo_lang_mainstream-2.0.0/tests/test_css_analyzer.py +300 -0
  46. hypergumbo_lang_mainstream-2.0.0/tests/test_dockerfile_analyzer.py +251 -0
  47. hypergumbo_lang_mainstream-2.0.0/tests/test_gitignore.py +405 -0
  48. hypergumbo_lang_mainstream-2.0.0/tests/test_go.py +1143 -0
  49. hypergumbo_lang_mainstream-2.0.0/tests/test_groovy.py +878 -0
  50. hypergumbo_lang_mainstream-2.0.0/tests/test_html_analysis.py +136 -0
  51. hypergumbo_lang_mainstream-2.0.0/tests/test_ini.py +346 -0
  52. hypergumbo_lang_mainstream-2.0.0/tests/test_java.py +2280 -0
  53. hypergumbo_lang_mainstream-2.0.0/tests/test_jni_linker.py +776 -0
  54. hypergumbo_lang_mainstream-2.0.0/tests/test_js_ts.py +4876 -0
  55. hypergumbo_lang_mainstream-2.0.0/tests/test_json_analyzer.py +348 -0
  56. hypergumbo_lang_mainstream-2.0.0/tests/test_kotlin.py +1085 -0
  57. hypergumbo_lang_mainstream-2.0.0/tests/test_lua.py +388 -0
  58. hypergumbo_lang_mainstream-2.0.0/tests/test_make_analyzer.py +330 -0
  59. hypergumbo_lang_mainstream-2.0.0/tests/test_markdown.py +344 -0
  60. hypergumbo_lang_mainstream-2.0.0/tests/test_objc.py +621 -0
  61. hypergumbo_lang_mainstream-2.0.0/tests/test_perl.py +356 -0
  62. hypergumbo_lang_mainstream-2.0.0/tests/test_php.py +1215 -0
  63. hypergumbo_lang_mainstream-2.0.0/tests/test_powershell.py +278 -0
  64. hypergumbo_lang_mainstream-2.0.0/tests/test_properties.py +340 -0
  65. hypergumbo_lang_mainstream-2.0.0/tests/test_python_ast_analysis.py +3775 -0
  66. hypergumbo_lang_mainstream-2.0.0/tests/test_requirements.py +347 -0
  67. hypergumbo_lang_mainstream-2.0.0/tests/test_ruby.py +1204 -0
  68. hypergumbo_lang_mainstream-2.0.0/tests/test_rust.py +1251 -0
  69. hypergumbo_lang_mainstream-2.0.0/tests/test_scala.py +838 -0
  70. hypergumbo_lang_mainstream-2.0.0/tests/test_sql_analyzer.py +301 -0
  71. hypergumbo_lang_mainstream-2.0.0/tests/test_swift.py +712 -0
  72. hypergumbo_lang_mainstream-2.0.0/tests/test_swift_objc_linker.py +246 -0
  73. hypergumbo_lang_mainstream-2.0.0/tests/test_toml_analyzer.py +342 -0
  74. hypergumbo_lang_mainstream-2.0.0/tests/test_xml_analyzer.py +353 -0
  75. hypergumbo_lang_mainstream-2.0.0/tests/test_yaml_ansible.py +313 -0
@@ -0,0 +1,43 @@
1
+ # python
2
+ __pycache__/
3
+ *.py[cod]
4
+ *.egg-info/
5
+ dist/
6
+ build/
7
+ .venv/
8
+ .env
9
+
10
+ # tooling
11
+ .pytest_cache/
12
+ .mypy_cache/
13
+ .ruff_cache/
14
+
15
+ # hypergumbo
16
+ .hypergumbo/
17
+ hypergumbo_capsule/
18
+ hypergumbo.results.json
19
+ hypergumbo.results.*.json
20
+ slice.json
21
+
22
+ # Agent configuration
23
+ **/*.local.json
24
+ **/*.local.md
25
+ **/.claude/cache/
26
+ **/.gemini/cache/
27
+ **/.cursor/state/
28
+ **/*-session/
29
+ AUTONOMOUS_MODE.txt
30
+
31
+ # Coverage
32
+ .coverage
33
+ .coverage.*
34
+ htmlcov/
35
+ coverage-report.txt
36
+
37
+ # Node (bats testing)
38
+ node_modules/
39
+ package.json
40
+ package-lock.json
41
+
42
+ # Hypergumbo cache
43
+ .hypergumbo_cache/
@@ -0,0 +1,72 @@
1
+ Metadata-Version: 2.4
2
+ Name: hypergumbo-lang-mainstream
3
+ Version: 2.0.0
4
+ Summary: Mainstream language analyzers for hypergumbo
5
+ Author: Hypergumbo contributors
6
+ License: AGPL-3.0-or-later
7
+ Keywords: code-graph,language-support,static-analysis
8
+ Classifier: Development Status :: 3 - Alpha
9
+ Classifier: License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: 3 :: Only
12
+ Requires-Python: >=3.10
13
+ Requires-Dist: hypergumbo-core==2.0.0
14
+ Requires-Dist: tree-sitter-bash>=0.21
15
+ Requires-Dist: tree-sitter-c-sharp>=0.21
16
+ Requires-Dist: tree-sitter-c>=0.21
17
+ Requires-Dist: tree-sitter-cmake>=0.7
18
+ Requires-Dist: tree-sitter-cpp>=0.22
19
+ Requires-Dist: tree-sitter-css>=0.21
20
+ Requires-Dist: tree-sitter-dockerfile>=0.2
21
+ Requires-Dist: tree-sitter-go>=0.21
22
+ Requires-Dist: tree-sitter-groovy>=0.1
23
+ Requires-Dist: tree-sitter-html>=0.20
24
+ Requires-Dist: tree-sitter-java>=0.21
25
+ Requires-Dist: tree-sitter-javascript>=0.21
26
+ Requires-Dist: tree-sitter-json>=0.21
27
+ Requires-Dist: tree-sitter-kotlin>=1.0
28
+ Requires-Dist: tree-sitter-language-pack>=0.13
29
+ Requires-Dist: tree-sitter-lua>=0.0.14
30
+ Requires-Dist: tree-sitter-make>=1.1
31
+ Requires-Dist: tree-sitter-objc>=3.0
32
+ Requires-Dist: tree-sitter-php>=0.23
33
+ Requires-Dist: tree-sitter-ruby>=0.21
34
+ Requires-Dist: tree-sitter-rust>=0.21
35
+ Requires-Dist: tree-sitter-scala>=0.23
36
+ Requires-Dist: tree-sitter-sql>=0.3
37
+ Requires-Dist: tree-sitter-swift>=0.0.1
38
+ Requires-Dist: tree-sitter-toml>=0.6
39
+ Requires-Dist: tree-sitter-typescript>=0.21
40
+ Requires-Dist: tree-sitter-xml>=0.6
41
+ Requires-Dist: tree-sitter-yaml>=0.6
42
+ Description-Content-Type: text/markdown
43
+
44
+ # hypergumbo-lang-mainstream
45
+
46
+ Popular language analyzers for hypergumbo.
47
+
48
+ ## Supported Languages
49
+
50
+ Python, JavaScript/TypeScript, Java, C, C++, C#, Go, Rust, Ruby, PHP, Swift, Kotlin, Scala, Bash, SQL, HTML, CSS, Dockerfile, Lua, Perl, JSON, YAML, XML, TOML, Markdown, Make, CMake, Groovy, PowerShell, Objective-C, INI, Properties, Requirements, Gitignore
51
+
52
+ ## Installation
53
+
54
+ ```bash
55
+ # With core
56
+ pip install hypergumbo-core hypergumbo-lang-mainstream
57
+
58
+ # Full installation (recommended)
59
+ pip install hypergumbo
60
+ ```
61
+
62
+ ## Usage
63
+
64
+ ```python
65
+ from hypergumbo_lang_mainstream.py import analyze_python
66
+ from hypergumbo_lang_mainstream.java import analyze_java
67
+ from hypergumbo_lang_mainstream.js_ts import analyze_javascript
68
+ ```
69
+
70
+ ## Documentation
71
+
72
+ See https://codeberg.org/iterabloom/hypergumbo for full documentation.
@@ -0,0 +1,29 @@
1
+ # hypergumbo-lang-mainstream
2
+
3
+ Popular language analyzers for hypergumbo.
4
+
5
+ ## Supported Languages
6
+
7
+ Python, JavaScript/TypeScript, Java, C, C++, C#, Go, Rust, Ruby, PHP, Swift, Kotlin, Scala, Bash, SQL, HTML, CSS, Dockerfile, Lua, Perl, JSON, YAML, XML, TOML, Markdown, Make, CMake, Groovy, PowerShell, Objective-C, INI, Properties, Requirements, Gitignore
8
+
9
+ ## Installation
10
+
11
+ ```bash
12
+ # With core
13
+ pip install hypergumbo-core hypergumbo-lang-mainstream
14
+
15
+ # Full installation (recommended)
16
+ pip install hypergumbo
17
+ ```
18
+
19
+ ## Usage
20
+
21
+ ```python
22
+ from hypergumbo_lang_mainstream.py import analyze_python
23
+ from hypergumbo_lang_mainstream.java import analyze_java
24
+ from hypergumbo_lang_mainstream.js_ts import analyze_javascript
25
+ ```
26
+
27
+ ## Documentation
28
+
29
+ See https://codeberg.org/iterabloom/hypergumbo for full documentation.
@@ -0,0 +1,71 @@
1
+ [build-system]
2
+ requires = ["hatchling>=1.24"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "hypergumbo-lang-mainstream"
7
+ version = "2.0.0"
8
+ description = "Mainstream language analyzers for hypergumbo"
9
+ readme = "README.md"
10
+ requires-python = ">=3.10"
11
+ license = { text = "AGPL-3.0-or-later" }
12
+ authors = [{ name = "Hypergumbo contributors" }]
13
+ keywords = ["static-analysis", "code-graph", "language-support"]
14
+ classifiers = [
15
+ "Development Status :: 3 - Alpha",
16
+ "License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
17
+ "Programming Language :: Python :: 3",
18
+ "Programming Language :: Python :: 3 :: Only",
19
+ ]
20
+ dependencies = [
21
+ "hypergumbo-core==2.0.0",
22
+ # Tree-sitter grammars for mainstream languages
23
+ "tree-sitter-javascript>=0.21",
24
+ "tree-sitter-typescript>=0.21",
25
+ "tree-sitter-php>=0.23",
26
+ "tree-sitter-c>=0.21",
27
+ "tree-sitter-cpp>=0.22",
28
+ "tree-sitter-c-sharp>=0.21",
29
+ "tree-sitter-java>=0.21",
30
+ "tree-sitter-go>=0.21",
31
+ "tree-sitter-rust>=0.21",
32
+ "tree-sitter-ruby>=0.21",
33
+ "tree-sitter-kotlin>=1.0",
34
+ "tree-sitter-swift>=0.0.1",
35
+ "tree-sitter-scala>=0.23",
36
+ "tree-sitter-bash>=0.21",
37
+ "tree-sitter-lua>=0.0.14",
38
+ "tree-sitter-groovy>=0.1",
39
+ "tree-sitter-objc>=3.0",
40
+ "tree-sitter-css>=0.21",
41
+ "tree-sitter-html>=0.20",
42
+ "tree-sitter-sql>=0.3",
43
+ "tree-sitter-json>=0.21",
44
+ "tree-sitter-yaml>=0.6",
45
+ "tree-sitter-xml>=0.6",
46
+ "tree-sitter-toml>=0.6",
47
+ "tree-sitter-dockerfile>=0.2",
48
+ "tree-sitter-make>=1.1",
49
+ "tree-sitter-cmake>=0.7",
50
+ # Perl uses the language pack (not a separate tree-sitter-perl package)
51
+ "tree-sitter-language-pack>=0.13",
52
+ ]
53
+
54
+ [project.entry-points."hypergumbo.analyzers"]
55
+ mainstream = "hypergumbo_lang_mainstream:ANALYZER_SPECS"
56
+
57
+ [tool.hatch.build.targets.wheel]
58
+ packages = ["src/hypergumbo_lang_mainstream"]
59
+
60
+ [tool.ruff]
61
+ target-version = "py310"
62
+ line-length = 100
63
+ src = ["src", "tests"]
64
+
65
+ [tool.ruff.lint]
66
+ select = ["E", "W", "F", "B", "C4", "S", "RUF"]
67
+ ignore = ["E501", "S101", "S105", "S106", "S110", "RUF059", "RUF005", "B028"]
68
+
69
+ [tool.ruff.lint.per-file-ignores]
70
+ "tests/**/*.py" = ["S101", "S105", "S106", "S603", "S108", "E741", "F401", "F841", "RUF005"]
71
+ "src/hypergumbo_lang_mainstream/*.py" = ["E402"]
@@ -0,0 +1,65 @@
1
+ """Hypergumbo mainstream language analyzers.
2
+
3
+ This package provides analyzers for the most widely-used programming languages
4
+ in industry, including Python, JavaScript, Java, Go, Rust, and more.
5
+
6
+ These are languages that most developers will encounter regularly, representing
7
+ the core of modern software development stacks.
8
+ """
9
+ from hypergumbo_core.analyze.all_analyzers import AnalyzerSpec
10
+
11
+ __version__ = "2.0.0"
12
+
13
+ # Analyzer specifications for mainstream languages
14
+ # These are registered via entry_points in pyproject.toml
15
+ ANALYZER_SPECS = [
16
+ # Core languages (most popular)
17
+ AnalyzerSpec("python", "hypergumbo_lang_mainstream.py", "analyze_python", supports_max_files=True),
18
+ AnalyzerSpec("html", "hypergumbo_lang_mainstream.html", "analyze_html", supports_max_files=True),
19
+ AnalyzerSpec("javascript", "hypergumbo_lang_mainstream.js_ts", "analyze_javascript", supports_max_files=True),
20
+ AnalyzerSpec("java", "hypergumbo_lang_mainstream.java", "analyze_java", capture_symbols_as="java"),
21
+ AnalyzerSpec("c", "hypergumbo_lang_mainstream.c", "analyze_c", capture_symbols_as="c"),
22
+ AnalyzerSpec("cpp", "hypergumbo_lang_mainstream.cpp", "analyze_cpp"),
23
+ AnalyzerSpec("csharp", "hypergumbo_lang_mainstream.csharp", "analyze_csharp"),
24
+ AnalyzerSpec("go", "hypergumbo_lang_mainstream.go", "analyze_go"),
25
+ AnalyzerSpec("rust", "hypergumbo_lang_mainstream.rust", "analyze_rust"),
26
+ AnalyzerSpec("ruby", "hypergumbo_lang_mainstream.ruby", "analyze_ruby"),
27
+ AnalyzerSpec("php", "hypergumbo_lang_mainstream.php", "analyze_php"),
28
+ AnalyzerSpec("swift", "hypergumbo_lang_mainstream.swift", "analyze_swift"),
29
+ AnalyzerSpec("kotlin", "hypergumbo_lang_mainstream.kotlin", "analyze_kotlin"),
30
+ AnalyzerSpec("scala", "hypergumbo_lang_mainstream.scala", "analyze_scala"),
31
+
32
+ # Scripting and shell
33
+ AnalyzerSpec("bash", "hypergumbo_lang_mainstream.bash", "analyze_bash"),
34
+ AnalyzerSpec("lua", "hypergumbo_lang_mainstream.lua", "analyze_lua"),
35
+ AnalyzerSpec("perl", "hypergumbo_lang_mainstream.perl", "analyze_perl"),
36
+ AnalyzerSpec("powershell", "hypergumbo_lang_mainstream.powershell", "analyze_powershell"),
37
+ AnalyzerSpec("groovy", "hypergumbo_lang_mainstream.groovy", "analyze_groovy"),
38
+
39
+ # JVM ecosystem
40
+ AnalyzerSpec("objc", "hypergumbo_lang_mainstream.objc", "analyze_objc"),
41
+
42
+ # Web and markup
43
+ AnalyzerSpec("css", "hypergumbo_lang_mainstream.css", "analyze_css_files"),
44
+ AnalyzerSpec("markdown", "hypergumbo_lang_mainstream.markdown", "analyze_markdown"),
45
+
46
+ # Database and query
47
+ AnalyzerSpec("sql", "hypergumbo_lang_mainstream.sql", "analyze_sql_files"),
48
+
49
+ # Config files
50
+ AnalyzerSpec("json", "hypergumbo_lang_mainstream.json_config", "analyze_json_files"),
51
+ AnalyzerSpec("yaml_ansible", "hypergumbo_lang_mainstream.yaml_ansible", "analyze_ansible"),
52
+ AnalyzerSpec("xml", "hypergumbo_lang_mainstream.xml_config", "analyze_xml_files"),
53
+ AnalyzerSpec("toml", "hypergumbo_lang_mainstream.toml_config", "analyze_toml_files"),
54
+ AnalyzerSpec("ini", "hypergumbo_lang_mainstream.ini", "analyze_ini"),
55
+ AnalyzerSpec("properties", "hypergumbo_lang_mainstream.properties", "analyze_properties"),
56
+ AnalyzerSpec("gitignore", "hypergumbo_lang_mainstream.gitignore", "analyze_gitignore"),
57
+ AnalyzerSpec("requirements", "hypergumbo_lang_mainstream.requirements", "analyze_requirements"),
58
+
59
+ # Build systems
60
+ AnalyzerSpec("dockerfile", "hypergumbo_lang_mainstream.dockerfile", "analyze_dockerfiles"),
61
+ AnalyzerSpec("make", "hypergumbo_lang_mainstream.make", "analyze_make_files"),
62
+ AnalyzerSpec("cmake", "hypergumbo_lang_mainstream.cmake", "analyze_cmake_files"),
63
+ ]
64
+
65
+ __all__ = ["ANALYZER_SPECS", "__version__"]