Hack4U-Library-Project 0.0.1__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.
@@ -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,9 @@
1
+ README.md
2
+ setup.py
3
+ Hack4U_Library_Project.egg-info/PKG-INFO
4
+ Hack4U_Library_Project.egg-info/SOURCES.txt
5
+ Hack4U_Library_Project.egg-info/dependency_links.txt
6
+ Hack4U_Library_Project.egg-info/top_level.txt
7
+ hack4u/__init__.py
8
+ hack4u/courses.py
9
+ hack4u/utils.py
@@ -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,45 @@
1
+ # Hack4U Library Project
2
+
3
+ Una biblioteca para consultar los cursos de la academia hack4U.
4
+
5
+ # Instalacion
6
+
7
+ ```bash
8
+ python -m pip install hack4u
9
+ ```
10
+
11
+ # Lista de cursos de la academia
12
+
13
+ - Introduccion a Linux [15 horas]
14
+ - Personalizacion de Linux [3 horas]
15
+ - Arch Linux desde Cero [1.5 horas]
16
+ - Python Ofensivo [35 horas]
17
+ - Introduccion al Hacking [53 horas]
18
+ - Hacking Web [51 horas]
19
+ - Scripting en Bash [63 horas]
20
+
21
+ ## Uso basico
22
+
23
+ ###Listar cursos
24
+
25
+ ```python3
26
+ from hack4u import list_courses
27
+
28
+ list_courses()
29
+ ```
30
+
31
+ ### Mostrar un curso por nombre
32
+
33
+ ```python3
34
+ from hack4u import search_course_by_name
35
+
36
+ print(search_course_by_name("Introduccion de Linux"))
37
+ ```
38
+
39
+ ### Mostrar duracion total entre todos los cursos
40
+
41
+ ```python3
42
+ from hack4u import total_duration
43
+
44
+ print(total_duration())
45
+ ```
@@ -0,0 +1,2 @@
1
+ from .courses import *
2
+ from .utils import total_duration
@@ -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
@@ -0,0 +1,4 @@
1
+ from .courses import courses
2
+
3
+ def total_duration():
4
+ return sum(course.name for course in courses)
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,16 @@
1
+ from setuptools import setup, find_packages
2
+
3
+ with open("README.md", "r", encoding="utf-8") as fh:
4
+ long_description = fh.read()
5
+
6
+ setup(
7
+ name="Hack4U-Library-Project",
8
+ version="0.0.1",
9
+ packages=find_packages(),
10
+ install_requires=[],
11
+ author="JotaBWF",
12
+ description="Una biblioteca para consultar los cursos de la academia Hack4U.",
13
+ long_description=long_description,
14
+ long_description_content_type="text/markdown",
15
+ url="https://hack4u.io",
16
+ )