Skip to content

djembenj/ecoindex_python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ECOINDEX PYTHON

This basic module provides a simple interface to get the Ecoindex based on 3 parameters:

  • The number of DOM elements in the page
  • The size of the page
  • The number of external requests of the page

Requirements

  • Python ^3.8

Install

pip install ecoindex

Use

from ecoindex import get_ecoindex
from pprint import pprint

result = get_ecoindex(dom=100, size=100, requests=100)
pprint(result)
Ecoindex(grade='B', score=67, ges=1.66, water=2.49)

Tests

pytest

Releases

No releases published

Packages

 
 
 

Languages

  • Python 100.0%