-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a64d67b
commit a50c9c9
Showing
7 changed files
with
57 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
__pycache__ | ||
/.vscode | ||
/tests.py | ||
.venv | ||
api_m.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Herramientas de desarrollo | ||
En esta carpeta encontrarás diferentes utilidades | ||
|
||
## Dependencias | ||
Antes de emepezar, instala las dependencias de Python con: | ||
|
||
```bash | ||
pip3 install -r requirements.txt | ||
``` | ||
|
||
## Checker | ||
Puedes ejecutar manualmente los tests con el comando | ||
```bash | ||
kodi-addon-checker .. | ||
``` | ||
|
||
NOTA: Usamos el path `..` para ir al directorio raíz donde está el addon | ||
|
||
## Api | ||
Puedes ejecutar la API manualmente copiando el script `api_m.example.py` a `api_m.py`. | ||
|
||
Aquí puedes hacer todas las pruebas que quieras sin tener que usar Kodi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import sys | ||
sys.path.append('..') # Add parent path to searchable list | ||
|
||
from resources.lib.api import Api | ||
|
||
DOMAIN = "es" | ||
|
||
api = Api(DOMAIN) | ||
|
||
# .. You can keep testing the api here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
certifi==2023.11.17 | ||
charset-normalizer==3.3.2 | ||
colorama==0.4.6 | ||
elementpath==4.1.5 | ||
idna==3.6 | ||
kodi-addon-checker==0.0.31 | ||
mando==0.7.1 | ||
packaging==23.2 | ||
Pillow==10.1.0 | ||
polib==1.2.0 | ||
radon==6.0.1 | ||
requests==2.31.0 | ||
six==1.16.0 | ||
urllib3==2.1.0 | ||
xmlschema==2.5.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
ISO_639_1 = 0 | ||
|
||
def getLanguage(format: int = 0, region: bool = False) -> str: | ||
return "es_ES" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
class Dialog: | ||
def ok(self, header: str, msg: str): | ||
print("--- {0} --- {1}".format(header, msg)) |