Skip to content

Commit 4942140

Browse files
committed
FIX: 1.7.1
1 parent b64d781 commit 4942140

File tree

7 files changed

+51
-6
lines changed

7 files changed

+51
-6
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,4 +157,6 @@ cython_debug/
157157
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
158158
# and can be added to the global gitignore or merged into this file. For a more nuclear
159159
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
160-
#.idea/
160+
#.idea/
161+
162+
bk

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "rafnixg"
7-
version = "1.6.0"
7+
version = "1.7.1"
88
description = "Rafnix Guzman Personal Card"
99
readme = "README.md"
1010
authors = [{ name = "Rafnix Guzman", email = "rafnixg@gmail.com" }]
@@ -31,7 +31,7 @@ Homepage = "https://github.com/rafnixg/rafnixg-lib"
3131
[project.scripts]
3232
rafnixg = "rafnixg.__main__:main"
3333
[tool.bumpver]
34-
current_version = "1.6.0"
34+
current_version = "1.7.1"
3535
version_pattern = "MAJOR.MINOR.PATCH"
3636
commit_message = "bump version {old_version} -> {new_version}"
3737
commit = true

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ mdurl==0.1.2
1010
# via markdown-it-py
1111
pygments==2.15.1
1212
# via rich
13-
rich==13.3.5
13+
rich>=13.3.5
1414
# via rafnixg (pyproject.toml)

src/rafnixg/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
Resume,
1414
)
1515

16-
__version__ = "1.6.0"
16+
__version__ = "1.7.1"

src/rafnixg/__main__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44

55
def main():
6+
"""Main function."""
67
me = RafnixG()
8+
me.get_links()
79
me.display()
810

911
if __name__ == '__main__':

src/rafnixg/links.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
"""Links Personal Library."""
2+
3+
4+
class Links:
5+
"""Links Personal Library."""
6+
7+
def __init__(self):
8+
self.links = self.get_links()
9+
10+
def get_links(self):
11+
"""Get links."""
12+
return [
13+
{
14+
"name": "Git",
15+
"url": "https://github.com/rafnixg",
16+
},
17+
]

src/rafnixg/rafnixg.py

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
"""RafnixG - Personal Card"""
2+
23
from rich.console import Console
34
from rich.table import Table
5+
46
from .blog_posts import BlogPosts
7+
from .links import Links
58

69

710
class RafnixG:
@@ -11,9 +14,10 @@ def __init__(self):
1114
self.username = "rafnixg"
1215
self.name = "Rafnix Guzmán"
1316
self.position = "Python Software Developer"
17+
self.links = "https://links.rafnixg.dev"
1418
self.web = "https://rafnixg.dev"
1519
self.blog = "https://blog.rafnixg.dev"
16-
self.cv = "https://rafnixg.dev/resume"
20+
self.cv = "https://resume.rafnixg.dev"
1721
self.github = "https://github.com/rafnixg"
1822
self.twitter = "@rafnixg"
1923
self.about = "Experienced software developer with 10+ years of expertise in designing, developing and implementing web systems across various sectors. Backend specialist skilled in Python, Linux, and Git. Passionate about continuous learning and open-source technology."
@@ -68,3 +72,23 @@ def posts(self):
6872
table.add_row(post.title, post.link)
6973

7074
console.print(table)
75+
76+
def get_links(self):
77+
"""Display links"""
78+
console = Console()
79+
80+
table = Table(
81+
show_header=False,
82+
title="Links",
83+
highlight=True,
84+
title_style="bold magenta",
85+
)
86+
table.add_column("Name", style="bold", width=16)
87+
table.add_column("URL")
88+
89+
links = Links().links
90+
91+
for link in links:
92+
table.add_row(link["name"], link["url"])
93+
94+
console.print(table)

0 commit comments

Comments
 (0)