Hack4U-Library-Project 0.0.1__py3-none-any.whl
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/__init__.py
ADDED
hack4u/courses.py
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
class Course:
|
|
2
|
+
|
|
3
|
+
def __init__(self, name, duration, link):
|
|
4
|
+
self.name = name
|
|
5
|
+
self.duration = duration
|
|
6
|
+
self.link = link
|
|
7
|
+
|
|
8
|
+
def __repr__(self):
|
|
9
|
+
return f"{self.name}: {self.duration} horas, {self.link}"
|
|
10
|
+
|
|
11
|
+
courses = [
|
|
12
|
+
Course("Introduccion a Linux", 15, "https://hack4u.io/cursos/introduccion-a-linux"),
|
|
13
|
+
Course("Personalizacion de Linux", 3, "https://hack4u.io/cursos/personalizacion-de-linux"),
|
|
14
|
+
Course("Arch Linux desde Cero", 1.5, "https://hack4u.io/cursos/arch-linux-desde-cero"),
|
|
15
|
+
Course("Python Ofensivo", 35, "https://hack4u.io/cursos/python-ofensivo"),
|
|
16
|
+
Course("Introduccion al Hacking", 53, "https://hack4u.io/cursos/introduccion-al-hacking"),
|
|
17
|
+
Course("Hacking Web", 51, "https://hack4u.io/cursos/hacking-web"),
|
|
18
|
+
Course("Scripting en Bash", 63, "https://hack4u.io/cursos/scripting-en-bash")
|
|
19
|
+
]
|
|
20
|
+
|
|
21
|
+
def list_courses():
|
|
22
|
+
for course in courses:
|
|
23
|
+
print(course)
|
|
24
|
+
|
|
25
|
+
def search_course_by_name(name):
|
|
26
|
+
for course in courses:
|
|
27
|
+
if course.name == name:
|
|
28
|
+
return course
|
|
29
|
+
|
|
30
|
+
return None
|
hack4u/utils.py
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: Hack4U-Library-Project
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: Una biblioteca para consultar los cursos de la academia Hack4U.
|
|
5
|
+
Home-page: https://hack4u.io
|
|
6
|
+
Author: JotaBWF
|
|
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 Library Project
|
|
15
|
+
|
|
16
|
+
Una biblioteca para consultar los cursos de la academia hack4U.
|
|
17
|
+
|
|
18
|
+
# Instalacion
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
python -m pip install hack4u
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
# Lista de cursos de la academia
|
|
25
|
+
|
|
26
|
+
- Introduccion a Linux [15 horas]
|
|
27
|
+
- Personalizacion de Linux [3 horas]
|
|
28
|
+
- Arch Linux desde Cero [1.5 horas]
|
|
29
|
+
- Python Ofensivo [35 horas]
|
|
30
|
+
- Introduccion al Hacking [53 horas]
|
|
31
|
+
- Hacking Web [51 horas]
|
|
32
|
+
- Scripting en Bash [63 horas]
|
|
33
|
+
|
|
34
|
+
## Uso basico
|
|
35
|
+
|
|
36
|
+
###Listar cursos
|
|
37
|
+
|
|
38
|
+
```python3
|
|
39
|
+
from hack4u import list_courses
|
|
40
|
+
|
|
41
|
+
list_courses()
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### Mostrar un curso por nombre
|
|
45
|
+
|
|
46
|
+
```python3
|
|
47
|
+
from hack4u import search_course_by_name
|
|
48
|
+
|
|
49
|
+
print(search_course_by_name("Introduccion de Linux"))
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### Mostrar duracion total entre todos los cursos
|
|
53
|
+
|
|
54
|
+
```python3
|
|
55
|
+
from hack4u import total_duration
|
|
56
|
+
|
|
57
|
+
print(total_duration())
|
|
58
|
+
```
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
hack4u/__init__.py,sha256=GHwT3lI2Ia79exVB6M6CJzkNKm2tcyfpnmHca4s7O_w,57
|
|
2
|
+
hack4u/courses.py,sha256=WJvnhL7xvJ2U0Bvbau4vcFIYtDCXpXl0nEsZKljb1D4,1064
|
|
3
|
+
hack4u/utils.py,sha256=ROMiW8X5JLIawET9mZlmV9jnc1BieJ9kCH6Vkp9C5Tw,102
|
|
4
|
+
hack4u_library_project-0.0.1.dist-info/METADATA,sha256=MUcDSNoh8Q2ZP4y_7TogJ9BybziRB0EY43J6-oqJTPc,1111
|
|
5
|
+
hack4u_library_project-0.0.1.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
|
6
|
+
hack4u_library_project-0.0.1.dist-info/top_level.txt,sha256=wDTJIbghmICH1q1iFNdtSlVqtOfw_ymrZ-juQGvORa8,7
|
|
7
|
+
hack4u_library_project-0.0.1.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
hack4u
|