codesize 1.0.0b1__py3-none-any.whl
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.
- codesize/__init__.py +24 -0
- codesize/__main__.py +28 -0
- codesize/_version.py +1 -0
- codesize/argbuilder.py +1426 -0
- codesize/cli.py +169 -0
- codesize/output.py +281 -0
- codesize/scanner.py +237 -0
- codesize/version.py +35 -0
- codesize-1.0.0b1.dist-info/METADATA +109 -0
- codesize-1.0.0b1.dist-info/RECORD +13 -0
- codesize-1.0.0b1.dist-info/WHEEL +4 -0
- codesize-1.0.0b1.dist-info/entry_points.txt +2 -0
- codesize-1.0.0b1.dist-info/licenses/LICENSE +24 -0
codesize/__init__.py
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# ----------------------------------------------------------------------------------------
|
|
2
|
+
# __init__.py
|
|
3
|
+
# -----------
|
|
4
|
+
#
|
|
5
|
+
# codesize package initialisation.
|
|
6
|
+
#
|
|
7
|
+
# (c) 2026 WaterJuice — Unlicense; see LICENSE in the project root.
|
|
8
|
+
#
|
|
9
|
+
# Authors
|
|
10
|
+
# -------
|
|
11
|
+
# bena (via Claude)
|
|
12
|
+
#
|
|
13
|
+
# Version History
|
|
14
|
+
# ---------------
|
|
15
|
+
# Mar 2026 - Created
|
|
16
|
+
# ----------------------------------------------------------------------------------------
|
|
17
|
+
|
|
18
|
+
"""codesize: A CLI tool to analyse code statistics in a directory."""
|
|
19
|
+
|
|
20
|
+
from codesize.version import VERSION_STR
|
|
21
|
+
|
|
22
|
+
__all__ = ["__version__"]
|
|
23
|
+
|
|
24
|
+
__version__ = VERSION_STR
|
codesize/__main__.py
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# ----------------------------------------------------------------------------------------
|
|
2
|
+
# __main__.py
|
|
3
|
+
# -----------
|
|
4
|
+
#
|
|
5
|
+
# Entry point for python -m codesize.
|
|
6
|
+
#
|
|
7
|
+
# (c) 2026 WaterJuice — Unlicense; see LICENSE in the project root.
|
|
8
|
+
#
|
|
9
|
+
# Authors
|
|
10
|
+
# -------
|
|
11
|
+
# bena (via Claude)
|
|
12
|
+
#
|
|
13
|
+
# Version History
|
|
14
|
+
# ---------------
|
|
15
|
+
# Mar 2026 - Created
|
|
16
|
+
# ----------------------------------------------------------------------------------------
|
|
17
|
+
|
|
18
|
+
import sys
|
|
19
|
+
|
|
20
|
+
MIN_PYTHON = (3, 12)
|
|
21
|
+
if sys.version_info < MIN_PYTHON:
|
|
22
|
+
print(f"Python {MIN_PYTHON[0]}.{MIN_PYTHON[1]}+ is required.", file=sys.stderr)
|
|
23
|
+
sys.exit(1)
|
|
24
|
+
|
|
25
|
+
from codesize.cli import main # noqa: E402
|
|
26
|
+
|
|
27
|
+
if __name__ == "__main__":
|
|
28
|
+
raise SystemExit(main())
|
codesize/_version.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "1.0.0b1"
|