NeonLoc
A blazingly fast, cyber-styled source code counter. Count your lines with pure edge.
Installation
Install directly from PyPI:
pip install neonloc
From source:
git clone https://github.com/debeski/neonloc.git
cd neonloc
pip install .
Usage
Simply run neonloc in your terminal and pass a directory. By default, it will use the current directory (.).
neonloc .
Or target a specific folder:
neonloc /path/to/project
List line metrics by layout-aware paths:
neonloc . -L auto
Use -L files, --list-loc dirs, or --list-loc both to force file, directory, or combined LOC tables.
When -L is passed, NeonLoc shows only the detailed path table view plus the final scan summary.
Export the scan result as JSON:
neonloc . -e
Use -e or --export to write result.json and a matching console-style result.txt report under the scanned directory's .neonloc folder.
Features
- Categorized Metrics: Distinct, color-coded tables for
Code,Documentation,Config,Data,Markup, andStyle. - Cyber Aesthetic: Pure neon glory in your terminal, rendered with
Rich. - Lightning Fast: Scans and parses directories in the blink of an eye.
- Language Support: Python, JavaScript, TypeScript, Go, C/C++, Rust, HTML, CSS, YAML, JSON, Markdown, Bash, Ruby, Java, PHP, Vue, Svelte, TOML, Dockerfile.
- Deep Metrics: Counts true code logic, comments, blanks, and total lines.
- Path LOC Tables: Optional file and directory tables replace the generic category report, with
autochoosing flat, modular, or mixed layout output. - Export Files: Optional
-e/--exportwrites the scan payload to.neonloc/result.jsonand the rendered report to.neonloc/result.txt.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file neonloc-0.5.2.tar.gz.
File metadata
- Download URL: neonloc-0.5.2.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c46596e6a4ce6611007b592411b9ac49756ab547bcd1cf93f4a88b74a3290d8e
|
|
| MD5 |
b90338b8e7ed0c1c33ddf51c4658b9bf
|
|
| BLAKE2b-256 |
b54d05cd28a9f2e6758270ab6d7189235e93393228898d3fb515d3bfa61eec0d
|
Provenance
The following attestation bundles were made for neonloc-0.5.2.tar.gz:
Publisher:
release.yml on debeski/neonloc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
neonloc-0.5.2.tar.gz -
Subject digest:
c46596e6a4ce6611007b592411b9ac49756ab547bcd1cf93f4a88b74a3290d8e - Sigstore transparency entry: 2411118330
- Sigstore integration time:
-
Permalink:
debeski/neonloc@3c7fdb7f528b5cc56f9e0b89ab89e83a73d4dc1b -
Branch / Tag:
refs/tags/v0.5.2 - Owner: https://github.com/debeski
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@3c7fdb7f528b5cc56f9e0b89ab89e83a73d4dc1b -
Trigger Event:
push
-
Statement type:
File details
Details for the file neonloc-0.5.2-py3-none-any.whl.
File metadata
- Download URL: neonloc-0.5.2-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
699337b3d64c48edfed6665653d2c3057a429f16a5da9fbdf981f6e882f4dd97
|
|
| MD5 |
028095baa79eab6cbb13d6d916f37506
|
|
| BLAKE2b-256 |
fc46e1b89bce305b3a58bdbef39caee1d9ecbf8c5338a11dafa34cc960a58916
|
Provenance
The following attestation bundles were made for neonloc-0.5.2-py3-none-any.whl:
Publisher:
release.yml on debeski/neonloc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
neonloc-0.5.2-py3-none-any.whl -
Subject digest:
699337b3d64c48edfed6665653d2c3057a429f16a5da9fbdf981f6e882f4dd97 - Sigstore transparency entry: 2411118394
- Sigstore integration time:
-
Permalink:
debeski/neonloc@3c7fdb7f528b5cc56f9e0b89ab89e83a73d4dc1b -
Branch / Tag:
refs/tags/v0.5.2 - Owner: https://github.com/debeski
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@3c7fdb7f528b5cc56f9e0b89ab89e83a73d4dc1b -
Trigger Event:
push
-
Statement type: