https://github.com/pacifio/loci
A simple python script that will show you how many lines you've written inside your code project !
https://github.com/pacifio/loci
cli codelines python script
Last synced: 9 months ago
JSON representation
A simple python script that will show you how many lines you've written inside your code project !
- Host: GitHub
- URL: https://github.com/pacifio/loci
- Owner: pacifio
- Created: 2020-11-01T11:55:22.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-10T04:23:47.000Z (almost 5 years ago)
- Last Synced: 2025-04-02T08:35:53.597Z (9 months ago)
- Topics: cli, codelines, python, script
- Language: Python
- Homepage:
- Size: 3.21 MB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LOCI
LOCI means Lines Of Codes Indicator . A simple python script that will show you how many lines you've written inside your code project !
```bash
git clone https://github.com/pacifio/loci.git
cd loci
```
Now add loci to the path
Now in your project use loci
```bash
cd YOUR_PROJECT
loci.py LANG
```
Suported languages
* html
* css
* javascript
* typescript
* python
* dart
* c
* c++
You can add custom languages . The configuration file lives under ```~/.config/loci.json```
The configuration for your language is set like this
```json
"LANGUAGE_NAME": {
"extension": "LANGUAGE_EXTENSION",
"ids": ["LANGUAGE_ID"]
}
```
Example configuration for ```dart```:
```json
"dart": {
"extension": ".dart",
"ids": ["dart", "flutter", ".dart"]
}
```
here the ids are how loci identifies differet languages . For dart
```bash
loci.py dart
```
and
```bash
loci.py flutter
```
both of these commands are the same . These are ids . You can add more languages in the main configuration file which lives at ```~/.config/loci.json```