hack4u-cli 0.1.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.
- hack4u_cli-0.1.0/PKG-INFO +60 -0
- hack4u_cli-0.1.0/README.md +47 -0
- hack4u_cli-0.1.0/hack4u/__init__.py +2 -0
- hack4u_cli-0.1.0/hack4u/courses.py +26 -0
- hack4u_cli-0.1.0/hack4u/utils.py +4 -0
- hack4u_cli-0.1.0/hack4u_cli.egg-info/PKG-INFO +60 -0
- hack4u_cli-0.1.0/hack4u_cli.egg-info/SOURCES.txt +9 -0
- hack4u_cli-0.1.0/hack4u_cli.egg-info/dependency_links.txt +1 -0
- hack4u_cli-0.1.0/hack4u_cli.egg-info/top_level.txt +1 -0
- hack4u_cli-0.1.0/setup.cfg +4 -0
- hack4u_cli-0.1.0/setup.py +17 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: hack4u-cli
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Una biblioteca para consultar cursos de hack4u
|
|
5
|
+
Home-page: https://hack4u.io
|
|
6
|
+
Author: Ivan Trilla
|
|
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
|
+
- Python Ofensivo [35 horas]
|
|
23
|
+
- Introducción al Hacking [53 horas]
|
|
24
|
+
- Hacking Web [51 horas]
|
|
25
|
+
|
|
26
|
+
## Instalación
|
|
27
|
+
|
|
28
|
+
Instala el paquete usando `pip3`:
|
|
29
|
+
|
|
30
|
+
```python
|
|
31
|
+
pip3 install hack4u
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Uso básico
|
|
35
|
+
|
|
36
|
+
### Listar todos los cursos
|
|
37
|
+
|
|
38
|
+
```python
|
|
39
|
+
from hack4u import list_courses
|
|
40
|
+
|
|
41
|
+
for course in list_courses():
|
|
42
|
+
print(course)
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Obtener un curso por nombre
|
|
46
|
+
|
|
47
|
+
```python
|
|
48
|
+
from hack4u import get_course_by_name
|
|
49
|
+
|
|
50
|
+
course = get_course_by_name("Introducción a Linux")
|
|
51
|
+
print(course)
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Calcular duración total de los cursos
|
|
55
|
+
|
|
56
|
+
```python
|
|
57
|
+
from hack4u.utils import total_duration
|
|
58
|
+
|
|
59
|
+
print(f"Duración total: {total_duration()} horas")
|
|
60
|
+
```
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
- Python Ofensivo [35 horas]
|
|
10
|
+
- Introducción al Hacking [53 horas]
|
|
11
|
+
- Hacking Web [51 horas]
|
|
12
|
+
|
|
13
|
+
## Instalación
|
|
14
|
+
|
|
15
|
+
Instala el paquete usando `pip3`:
|
|
16
|
+
|
|
17
|
+
```python
|
|
18
|
+
pip3 install hack4u
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Uso básico
|
|
22
|
+
|
|
23
|
+
### Listar todos los cursos
|
|
24
|
+
|
|
25
|
+
```python
|
|
26
|
+
from hack4u import list_courses
|
|
27
|
+
|
|
28
|
+
for course in list_courses():
|
|
29
|
+
print(course)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### Obtener un curso por nombre
|
|
33
|
+
|
|
34
|
+
```python
|
|
35
|
+
from hack4u import get_course_by_name
|
|
36
|
+
|
|
37
|
+
course = get_course_by_name("Introducción a Linux")
|
|
38
|
+
print(course)
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Calcular duración total de los cursos
|
|
42
|
+
|
|
43
|
+
```python
|
|
44
|
+
from hack4u.utils import total_duration
|
|
45
|
+
|
|
46
|
+
print(f"Duración total: {total_duration()} horas")
|
|
47
|
+
```
|
|
@@ -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
|
+
|
|
7
|
+
def __repr__(self):
|
|
8
|
+
return f"{self.name} [{self.duration} horas] ({self.link})"
|
|
9
|
+
|
|
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("Python Ofensivo", 35, "https://hack4u.io/curso/python-ofensivo/"),
|
|
14
|
+
Course("Introducción al Hacking", 53, "https://hack4u.io/curso/introduccion-al-hacking/"),
|
|
15
|
+
Course("Hacking Web", 51, "https://hack4u.io/curso/hacking-web/")
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
def list_courses():
|
|
19
|
+
for course in courses:
|
|
20
|
+
print(course)
|
|
21
|
+
|
|
22
|
+
def search_course_by_name(name):
|
|
23
|
+
for course in courses:
|
|
24
|
+
if course.name == name:
|
|
25
|
+
return course
|
|
26
|
+
return None
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: hack4u-cli
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Una biblioteca para consultar cursos de hack4u
|
|
5
|
+
Home-page: https://hack4u.io
|
|
6
|
+
Author: Ivan Trilla
|
|
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
|
+
- Python Ofensivo [35 horas]
|
|
23
|
+
- Introducción al Hacking [53 horas]
|
|
24
|
+
- Hacking Web [51 horas]
|
|
25
|
+
|
|
26
|
+
## Instalación
|
|
27
|
+
|
|
28
|
+
Instala el paquete usando `pip3`:
|
|
29
|
+
|
|
30
|
+
```python
|
|
31
|
+
pip3 install hack4u
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Uso básico
|
|
35
|
+
|
|
36
|
+
### Listar todos los cursos
|
|
37
|
+
|
|
38
|
+
```python
|
|
39
|
+
from hack4u import list_courses
|
|
40
|
+
|
|
41
|
+
for course in list_courses():
|
|
42
|
+
print(course)
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Obtener un curso por nombre
|
|
46
|
+
|
|
47
|
+
```python
|
|
48
|
+
from hack4u import get_course_by_name
|
|
49
|
+
|
|
50
|
+
course = get_course_by_name("Introducción a Linux")
|
|
51
|
+
print(course)
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Calcular duración total de los cursos
|
|
55
|
+
|
|
56
|
+
```python
|
|
57
|
+
from hack4u.utils import total_duration
|
|
58
|
+
|
|
59
|
+
print(f"Duración total: {total_duration()} horas")
|
|
60
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
hack4u
|
|
@@ -0,0 +1,17 @@
|
|
|
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="hack4u-cli",
|
|
9
|
+
version="0.1.0",
|
|
10
|
+
packages=find_packages(),
|
|
11
|
+
install_requires=[],
|
|
12
|
+
author="Ivan Trilla",
|
|
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
|
+
)
|