A logical & physical lines counter for Python files
Project description
Lines Counter
- Versión recomendada de Python: 3.11
Instalar el entorno (Antes de ejecutar el programa):
- Crear el entorno de desarrollo:
python3 -m venv env
- Activar el entorno de desarrollo:
En Windows:
env\Scripts\activate
En Unix/Linux o MacOS:
source env/bin/activate
- Instalar las dependencias:
pip install -r requirements.txt
pre-commit install
- Copiar el contenido del archivo
example.enva un archivo.envy rellenar las variables necesarias para correr el proyecto.
cp example.env .env
Correr los tests del sistema:
Para ejecutar los tests unitarios y de integración basta con ejecutar:
python -m unittest discover -s tests -p "*_tests.py"
Correr el sistema en modo user-friendly:
Para ejecutar el sistema en modo prompt basta con ejecutar:
python -m src.main
Instalar como librería:
Es posible descargar el programa como librería para utilizarla en otros programas, para ello, basta con ejecutar:
pip install lines-counter
Importar las funciones necesarias en tu proyecto:
from lines_counter import count_logical_lines_from_project
from lines_counter import count_physical_lines_from_project
Project details
Release history Release notifications | RSS feed
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 lines-counter-1.0.2.tar.gz.
File metadata
- Download URL: lines-counter-1.0.2.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e57db203125a5c7392060c2cb708d16b036de95e8312a6c5381847ae1185fad0
|
|
| MD5 |
0ed0ce008130fdbf4dab7452a0b60458
|
|
| BLAKE2b-256 |
c1d4e4c16bda31247d5b889935b5fbb9c608d8817b145e0f06f373058e922c65
|
File details
Details for the file lines_counter-1.0.2-py3-none-any.whl.
File metadata
- Download URL: lines_counter-1.0.2-py3-none-any.whl
- Upload date:
- Size: 1.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1476666cca7207b70644c288dc653ab3a1ba7b1139c9903b0df36965f61e8690
|
|
| MD5 |
d82daaa07eb5c3226a603d2cb32b03be
|
|
| BLAKE2b-256 |
5411a6d75d660736ad0fdbcf62b8830d9432012d9248b33cf4790846acfa3b02
|