elmopi 0.5.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- elmopi-0.5.0/PKG-INFO +57 -0
- elmopi-0.5.0/README.md +44 -0
- elmopi-0.5.0/elmopi.egg-info/PKG-INFO +57 -0
- elmopi-0.5.0/elmopi.egg-info/SOURCES.txt +9 -0
- elmopi-0.5.0/elmopi.egg-info/dependency_links.txt +1 -0
- elmopi-0.5.0/elmopi.egg-info/top_level.txt +1 -0
- elmopi-0.5.0/hack4u/__init__.py +2 -0
- elmopi-0.5.0/hack4u/courses.py +26 -0
- elmopi-0.5.0/hack4u/utils.py +4 -0
- elmopi-0.5.0/setup.cfg +4 -0
- elmopi-0.5.0/setup.py +18 -0
elmopi-0.5.0/PKG-INFO
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: elmopi
|
|
3
|
+
Version: 0.5.0
|
|
4
|
+
Summary: Una biblioteca para consultar cursos de hack4u.
|
|
5
|
+
Home-page: https://hack4u.io
|
|
6
|
+
Author: Gael Molina
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
Dynamic: author
|
|
9
|
+
Dynamic: description
|
|
10
|
+
Dynamic: description-content-type
|
|
11
|
+
Dynamic: home-page
|
|
12
|
+
Dynamic: summary
|
|
13
|
+
|
|
14
|
+
# Hack4U Academy Courses Library
|
|
15
|
+
|
|
16
|
+
Una biblioteca Python para consultar cursos de la academia Hack4U.
|
|
17
|
+
|
|
18
|
+
## Cursos disponibles:
|
|
19
|
+
|
|
20
|
+
- Introducción a Linux [15 horas]
|
|
21
|
+
- Personalización de Linux [3 horas]
|
|
22
|
+
- Introducción al Hacking [53 horas]
|
|
23
|
+
|
|
24
|
+
## Instalación
|
|
25
|
+
|
|
26
|
+
Instala el paquete usando `pip3`:
|
|
27
|
+
|
|
28
|
+
```python3
|
|
29
|
+
pip3 install hack4u
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Uso básico
|
|
33
|
+
|
|
34
|
+
### Listar todos los cursos
|
|
35
|
+
|
|
36
|
+
```python
|
|
37
|
+
from hack4u import list_courses
|
|
38
|
+
|
|
39
|
+
for course in list_courses():
|
|
40
|
+
print(course)
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Obtener un curso por nombre
|
|
44
|
+
|
|
45
|
+
```python
|
|
46
|
+
from hack4u import get_course_by_name
|
|
47
|
+
|
|
48
|
+
course = get_course_by_name("Introducción a Linux")
|
|
49
|
+
print(course)
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### Calcular duración total de los cursos
|
|
53
|
+
|
|
54
|
+
```python3
|
|
55
|
+
from hack4u.utils import total_duration
|
|
56
|
+
|
|
57
|
+
print(f"Duración total: {total_duration()} horas")
|
elmopi-0.5.0/README.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Hack4U Academy Courses Library
|
|
2
|
+
|
|
3
|
+
Una biblioteca Python para consultar cursos de la academia Hack4U.
|
|
4
|
+
|
|
5
|
+
## Cursos disponibles:
|
|
6
|
+
|
|
7
|
+
- Introducción a Linux [15 horas]
|
|
8
|
+
- Personalización de Linux [3 horas]
|
|
9
|
+
- Introducción al Hacking [53 horas]
|
|
10
|
+
|
|
11
|
+
## Instalación
|
|
12
|
+
|
|
13
|
+
Instala el paquete usando `pip3`:
|
|
14
|
+
|
|
15
|
+
```python3
|
|
16
|
+
pip3 install hack4u
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Uso básico
|
|
20
|
+
|
|
21
|
+
### Listar todos los cursos
|
|
22
|
+
|
|
23
|
+
```python
|
|
24
|
+
from hack4u import list_courses
|
|
25
|
+
|
|
26
|
+
for course in list_courses():
|
|
27
|
+
print(course)
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Obtener un curso por nombre
|
|
31
|
+
|
|
32
|
+
```python
|
|
33
|
+
from hack4u import get_course_by_name
|
|
34
|
+
|
|
35
|
+
course = get_course_by_name("Introducción a Linux")
|
|
36
|
+
print(course)
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Calcular duración total de los cursos
|
|
40
|
+
|
|
41
|
+
```python3
|
|
42
|
+
from hack4u.utils import total_duration
|
|
43
|
+
|
|
44
|
+
print(f"Duración total: {total_duration()} horas")
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: elmopi
|
|
3
|
+
Version: 0.5.0
|
|
4
|
+
Summary: Una biblioteca para consultar cursos de hack4u.
|
|
5
|
+
Home-page: https://hack4u.io
|
|
6
|
+
Author: Gael Molina
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
Dynamic: author
|
|
9
|
+
Dynamic: description
|
|
10
|
+
Dynamic: description-content-type
|
|
11
|
+
Dynamic: home-page
|
|
12
|
+
Dynamic: summary
|
|
13
|
+
|
|
14
|
+
# Hack4U Academy Courses Library
|
|
15
|
+
|
|
16
|
+
Una biblioteca Python para consultar cursos de la academia Hack4U.
|
|
17
|
+
|
|
18
|
+
## Cursos disponibles:
|
|
19
|
+
|
|
20
|
+
- Introducción a Linux [15 horas]
|
|
21
|
+
- Personalización de Linux [3 horas]
|
|
22
|
+
- Introducción al Hacking [53 horas]
|
|
23
|
+
|
|
24
|
+
## Instalación
|
|
25
|
+
|
|
26
|
+
Instala el paquete usando `pip3`:
|
|
27
|
+
|
|
28
|
+
```python3
|
|
29
|
+
pip3 install hack4u
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Uso básico
|
|
33
|
+
|
|
34
|
+
### Listar todos los cursos
|
|
35
|
+
|
|
36
|
+
```python
|
|
37
|
+
from hack4u import list_courses
|
|
38
|
+
|
|
39
|
+
for course in list_courses():
|
|
40
|
+
print(course)
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Obtener un curso por nombre
|
|
44
|
+
|
|
45
|
+
```python
|
|
46
|
+
from hack4u import get_course_by_name
|
|
47
|
+
|
|
48
|
+
course = get_course_by_name("Introducción a Linux")
|
|
49
|
+
print(course)
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### Calcular duración total de los cursos
|
|
53
|
+
|
|
54
|
+
```python3
|
|
55
|
+
from hack4u.utils import total_duration
|
|
56
|
+
|
|
57
|
+
print(f"Duración total: {total_duration()} horas")
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
hack4u
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
class Course:
|
|
2
|
+
def __init__(self, name, duration, link):
|
|
3
|
+
self.name = name
|
|
4
|
+
self.duration = duration
|
|
5
|
+
self.link = link
|
|
6
|
+
def __str__(self):
|
|
7
|
+
return f"{self.name} [{self.duration} horas] ({self.link})"
|
|
8
|
+
def __repr__(self):
|
|
9
|
+
return self.__str__()
|
|
10
|
+
courses = [
|
|
11
|
+
Course("Introducción a Linux", 15, "https://hack4u.io/curso/introduccion-a-linux"),
|
|
12
|
+
Course("Personalización de Linux", 3, "https://hack4u.io/curso/personalizacion-de-entorno-en-linux"),
|
|
13
|
+
Course("Introducción al Hacking", 53, "https://hack4u.io/curso/introduccion-al-hacking")
|
|
14
|
+
]
|
|
15
|
+
|
|
16
|
+
def list_courses():
|
|
17
|
+
for course in courses:
|
|
18
|
+
print(course)
|
|
19
|
+
|
|
20
|
+
def search_course_by_name(name):
|
|
21
|
+
for course in courses:
|
|
22
|
+
if course.name == name:
|
|
23
|
+
return course
|
|
24
|
+
|
|
25
|
+
return None
|
|
26
|
+
|
elmopi-0.5.0/setup.cfg
ADDED
elmopi-0.5.0/setup.py
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
from setuptools import setup, find_packages
|
|
2
|
+
|
|
3
|
+
# Leer el contenido del archivo README.md
|
|
4
|
+
with open("README.md", "r", encoding="utf-8") as fh:
|
|
5
|
+
long_description = fh.read()
|
|
6
|
+
|
|
7
|
+
setup(
|
|
8
|
+
name="elmopi",
|
|
9
|
+
version="0.5.0",
|
|
10
|
+
packages=find_packages(),
|
|
11
|
+
install_requires=[],
|
|
12
|
+
author="Gael Molina",
|
|
13
|
+
description="Una biblioteca para consultar cursos de hack4u.",
|
|
14
|
+
long_description=long_description,
|
|
15
|
+
long_description_content_type="text/markdown",
|
|
16
|
+
url="https://hack4u.io",
|
|
17
|
+
)
|
|
18
|
+
|