chrotrixum 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.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 programador777lolxddd-dot
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,60 @@
1
+ Metadata-Version: 2.4
2
+ Name: chrotrixum
3
+ Version: 0.1.0
4
+ Summary: Navegador de escritorio experimental basado en PyQt6 y QtWebEngine.
5
+ License-Expression: MIT
6
+ Requires-Python: >=3.10
7
+ Description-Content-Type: text/markdown
8
+ License-File: LICENSE
9
+ Requires-Dist: PyQt6>=6.7
10
+ Requires-Dist: PyQt6-WebEngine>=6.7
11
+ Dynamic: license-file
12
+
13
+ # Chrotrixum
14
+
15
+ Chrotrixum es un navegador de escritorio experimental construido con Python, PyQt6 y QtWebEngine.
16
+
17
+ > **Estado:** desarrollo temprano. No se considera listo para manejar información sensible.
18
+
19
+ ## Requisitos
20
+
21
+ - Python 3.10 o posterior.
22
+ - Dependencias de sistema necesarias para QtWebEngine en tu distribución de Linux.
23
+
24
+ ## Instalación en Fedora/Linux
25
+
26
+ ```bash
27
+ git clone https://github.com/programador777lolxddd-dot/Chrotrixum.git
28
+ cd Chrotrixum
29
+
30
+ python -m venv .venv
31
+ source .venv/bin/activate
32
+ python -m pip install --upgrade pip
33
+ python -m pip install -e .
34
+ ```
35
+
36
+ ## Ejecutar
37
+
38
+ ```bash
39
+ python main.py
40
+ # O, tras instalar el proyecto:
41
+ chrotrixum
42
+ ```
43
+
44
+ ## Desarrollo
45
+
46
+ Instala herramientas de revisión opcionales:
47
+
48
+ ```bash
49
+ python -m pip install ruff pytest
50
+ ruff check .
51
+ pytest
52
+ ```
53
+
54
+ ## Seguridad
55
+
56
+ Chrotrixum está en una fase inicial. Antes de recomendarlo para uso diario, el proyecto necesita una revisión específica de seguridad, incluyendo gestión de permisos web, descargas, certificados TLS, perfiles y datos privados. No desactives la validación de certificados para hacer que un sitio cargue.
57
+
58
+ ## Licencia
59
+
60
+ Este proyecto se distribuye bajo la licencia MIT. Consulta el archivo LICENSE.
@@ -0,0 +1,48 @@
1
+ # Chrotrixum
2
+
3
+ Chrotrixum es un navegador de escritorio experimental construido con Python, PyQt6 y QtWebEngine.
4
+
5
+ > **Estado:** desarrollo temprano. No se considera listo para manejar información sensible.
6
+
7
+ ## Requisitos
8
+
9
+ - Python 3.10 o posterior.
10
+ - Dependencias de sistema necesarias para QtWebEngine en tu distribución de Linux.
11
+
12
+ ## Instalación en Fedora/Linux
13
+
14
+ ```bash
15
+ git clone https://github.com/programador777lolxddd-dot/Chrotrixum.git
16
+ cd Chrotrixum
17
+
18
+ python -m venv .venv
19
+ source .venv/bin/activate
20
+ python -m pip install --upgrade pip
21
+ python -m pip install -e .
22
+ ```
23
+
24
+ ## Ejecutar
25
+
26
+ ```bash
27
+ python main.py
28
+ # O, tras instalar el proyecto:
29
+ chrotrixum
30
+ ```
31
+
32
+ ## Desarrollo
33
+
34
+ Instala herramientas de revisión opcionales:
35
+
36
+ ```bash
37
+ python -m pip install ruff pytest
38
+ ruff check .
39
+ pytest
40
+ ```
41
+
42
+ ## Seguridad
43
+
44
+ Chrotrixum está en una fase inicial. Antes de recomendarlo para uso diario, el proyecto necesita una revisión específica de seguridad, incluyendo gestión de permisos web, descargas, certificados TLS, perfiles y datos privados. No desactives la validación de certificados para hacer que un sitio cargue.
45
+
46
+ ## Licencia
47
+
48
+ Este proyecto se distribuye bajo la licencia MIT. Consulta el archivo LICENSE.
@@ -0,0 +1,60 @@
1
+ Metadata-Version: 2.4
2
+ Name: chrotrixum
3
+ Version: 0.1.0
4
+ Summary: Navegador de escritorio experimental basado en PyQt6 y QtWebEngine.
5
+ License-Expression: MIT
6
+ Requires-Python: >=3.10
7
+ Description-Content-Type: text/markdown
8
+ License-File: LICENSE
9
+ Requires-Dist: PyQt6>=6.7
10
+ Requires-Dist: PyQt6-WebEngine>=6.7
11
+ Dynamic: license-file
12
+
13
+ # Chrotrixum
14
+
15
+ Chrotrixum es un navegador de escritorio experimental construido con Python, PyQt6 y QtWebEngine.
16
+
17
+ > **Estado:** desarrollo temprano. No se considera listo para manejar información sensible.
18
+
19
+ ## Requisitos
20
+
21
+ - Python 3.10 o posterior.
22
+ - Dependencias de sistema necesarias para QtWebEngine en tu distribución de Linux.
23
+
24
+ ## Instalación en Fedora/Linux
25
+
26
+ ```bash
27
+ git clone https://github.com/programador777lolxddd-dot/Chrotrixum.git
28
+ cd Chrotrixum
29
+
30
+ python -m venv .venv
31
+ source .venv/bin/activate
32
+ python -m pip install --upgrade pip
33
+ python -m pip install -e .
34
+ ```
35
+
36
+ ## Ejecutar
37
+
38
+ ```bash
39
+ python main.py
40
+ # O, tras instalar el proyecto:
41
+ chrotrixum
42
+ ```
43
+
44
+ ## Desarrollo
45
+
46
+ Instala herramientas de revisión opcionales:
47
+
48
+ ```bash
49
+ python -m pip install ruff pytest
50
+ ruff check .
51
+ pytest
52
+ ```
53
+
54
+ ## Seguridad
55
+
56
+ Chrotrixum está en una fase inicial. Antes de recomendarlo para uso diario, el proyecto necesita una revisión específica de seguridad, incluyendo gestión de permisos web, descargas, certificados TLS, perfiles y datos privados. No desactives la validación de certificados para hacer que un sitio cargue.
57
+
58
+ ## Licencia
59
+
60
+ Este proyecto se distribuye bajo la licencia MIT. Consulta el archivo LICENSE.
@@ -0,0 +1,10 @@
1
+ LICENSE
2
+ README.md
3
+ main.py
4
+ pyproject.toml
5
+ chrotrixum.egg-info/PKG-INFO
6
+ chrotrixum.egg-info/SOURCES.txt
7
+ chrotrixum.egg-info/dependency_links.txt
8
+ chrotrixum.egg-info/entry_points.txt
9
+ chrotrixum.egg-info/requires.txt
10
+ chrotrixum.egg-info/top_level.txt
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ chrotrixum = main:main
@@ -0,0 +1,2 @@
1
+ PyQt6>=6.7
2
+ PyQt6-WebEngine>=6.7
@@ -0,0 +1,177 @@
1
+ """Punto de entrada de Chrotrixum."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import sys
6
+ from urllib.parse import quote_plus, urlsplit
7
+
8
+ from PyQt6.QtCore import QUrl
9
+ from PyQt6.QtWidgets import (
10
+ QApplication,
11
+ QLineEdit,
12
+ QMainWindow,
13
+ QPushButton,
14
+ QToolBar,
15
+ )
16
+ from PyQt6.QtWebEngineCore import QWebEngineSettings
17
+ from PyQt6.QtWebEngineWidgets import QWebEngineView
18
+
19
+
20
+ HOME_URL = "https://www.google.com/"
21
+
22
+
23
+ class ChrotrixumBrowser(QMainWindow):
24
+ """Ventana principal del navegador."""
25
+
26
+ def __init__(self) -> None:
27
+ super().__init__()
28
+ self.setWindowTitle("Chrotrixum")
29
+ self.resize(1200, 800)
30
+
31
+ self.browser = QWebEngineView()
32
+ self.url_bar = QLineEdit()
33
+ self.url_bar.setPlaceholderText("Escribe una URL o busca en la web…")
34
+ self.url_bar.setClearButtonEnabled(True)
35
+ self.url_bar.returnPressed.connect(self.navigate_to_url)
36
+
37
+ toolbar = QToolBar("Navegación", self)
38
+ toolbar.setMovable(False)
39
+ self.addToolBar(toolbar)
40
+
41
+ self.btn_back = QPushButton("←")
42
+ self.btn_back.setToolTip("Volver")
43
+ self.btn_back.clicked.connect(self.browser.back)
44
+
45
+ self.btn_forward = QPushButton("→")
46
+ self.btn_forward.setToolTip("Avanzar")
47
+ self.btn_forward.clicked.connect(self.browser.forward)
48
+
49
+ self.btn_reload = QPushButton("⟳")
50
+ self.btn_reload.setToolTip("Recargar")
51
+ self.btn_reload.clicked.connect(self.browser.reload)
52
+
53
+ self.btn_home = QPushButton("⌂")
54
+ self.btn_home.setToolTip("Página de inicio")
55
+ self.btn_home.clicked.connect(self.navigate_home)
56
+
57
+ for button in (self.btn_back, self.btn_forward, self.btn_reload, self.btn_home):
58
+ toolbar.addWidget(button)
59
+
60
+ toolbar.addWidget(self.url_bar)
61
+ self.url_bar.setMinimumWidth(250)
62
+ self.setCentralWidget(self.browser)
63
+
64
+ self.browser.urlChanged.connect(self.update_url_bar)
65
+ self.browser.titleChanged.connect(self.update_window_title)
66
+ self.browser.loadProgress.connect(self.update_load_progress)
67
+ self.browser.loadFinished.connect(self.finish_load)
68
+ self.browser.loadFinished.connect(self.update_navigation_buttons)
69
+ self.browser.loadStarted.connect(self.update_navigation_buttons)
70
+
71
+ settings = self.browser.settings()
72
+ settings.setAttribute(
73
+ QWebEngineSettings.WebAttribute.JavascriptCanAccessClipboard, False
74
+ )
75
+ settings.setAttribute(
76
+ QWebEngineSettings.WebAttribute.JavascriptCanOpenWindows, False
77
+ )
78
+ settings.setAttribute(
79
+ QWebEngineSettings.WebAttribute.LocalContentCanAccessFileUrls, False
80
+ )
81
+ settings.setAttribute(
82
+ QWebEngineSettings.WebAttribute.LocalContentCanAccessRemoteUrls, False
83
+ )
84
+
85
+ self.apply_styles()
86
+ self.navigate_home()
87
+
88
+ def apply_styles(self) -> None:
89
+ """Aplica un tema oscuro inicial que se ampliará después."""
90
+ self.setStyleSheet(
91
+ """
92
+ QMainWindow { background: #11131a; }
93
+ QToolBar {
94
+ background: #191c27;
95
+ border: none;
96
+ spacing: 8px;
97
+ padding: 8px;
98
+ }
99
+ QToolBar QPushButton {
100
+ color: #f1f3f9;
101
+ background: #252a39;
102
+ border: 1px solid #343a4d;
103
+ border-radius: 8px;
104
+ min-width: 34px;
105
+ min-height: 32px;
106
+ padding: 2px 8px;
107
+ }
108
+ QToolBar QPushButton:hover {
109
+ background: #343b50;
110
+ border-color: #8b5cf6;
111
+ }
112
+ QLineEdit {
113
+ color: #f1f3f9;
114
+ background: #10121a;
115
+ border: 1px solid #343a4d;
116
+ border-radius: 9px;
117
+ padding: 8px 12px;
118
+ selection-background-color: #7c3aed;
119
+ }
120
+ QLineEdit:focus { border-color: #8b5cf6; }
121
+ """
122
+ )
123
+
124
+ def navigate_home(self) -> None:
125
+ self.browser.setUrl(QUrl(HOME_URL))
126
+
127
+ def navigate_to_url(self) -> None:
128
+ text = self.url_bar.text().strip()
129
+ if not text:
130
+ return
131
+
132
+ has_whitespace = any(character.isspace() for character in text)
133
+ parsed = urlsplit(text if "://" in text else f"https://{text}")
134
+ looks_like_host = "." in parsed.netloc and " " not in parsed.netloc
135
+
136
+ if not has_whitespace and looks_like_host:
137
+ url = QUrl.fromUserInput(text)
138
+ if url.isValid() and url.scheme() in {"http", "https"}:
139
+ self.browser.setUrl(url)
140
+ return
141
+
142
+ query = quote_plus(text)
143
+ self.browser.setUrl(QUrl(f"https://www.google.com/search?q={query}"))
144
+
145
+ def update_url_bar(self, url: QUrl) -> None:
146
+ self.url_bar.setText(url.toString())
147
+ self.url_bar.setCursorPosition(0)
148
+
149
+ def update_window_title(self, title: str) -> None:
150
+ self.setWindowTitle(f"{title or 'Nueva pestaña'} — Chrotrixum")
151
+
152
+ def update_load_progress(self, progress: int) -> None:
153
+ self.statusBar().showMessage(f"Cargando… {progress}%")
154
+
155
+ def finish_load(self, succeeded: bool) -> None:
156
+ if not succeeded:
157
+ self.statusBar().showMessage(
158
+ "No se pudo cargar la página. Revisa la conexión y el certificado.",
159
+ 6000,
160
+ )
161
+
162
+ def update_navigation_buttons(self) -> None:
163
+ history = self.browser.history()
164
+ self.btn_back.setEnabled(history.canGoBack())
165
+ self.btn_forward.setEnabled(history.canGoForward())
166
+
167
+
168
+ def main() -> int:
169
+ app = QApplication(sys.argv)
170
+ app.setApplicationName("Chrotrixum")
171
+ window = ChrotrixumBrowser()
172
+ window.show()
173
+ return app.exec()
174
+
175
+
176
+ if __name__ == "__main__":
177
+ raise SystemExit(main())
@@ -0,0 +1,31 @@
1
+ [build-system]
2
+ requires = ["setuptools>=69", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "chrotrixum"
7
+ version = "0.1.0"
8
+ description = "Navegador de escritorio experimental basado en PyQt6 y QtWebEngine."
9
+ readme = "README.md"
10
+ requires-python = ">=3.10"
11
+ license = "MIT"
12
+ dependencies = [
13
+ "PyQt6>=6.7",
14
+ "PyQt6-WebEngine>=6.7",
15
+ ]
16
+
17
+ [project.scripts]
18
+ chrotrixum = "main:main"
19
+
20
+ [tool.setuptools]
21
+ py-modules = ["main"]
22
+
23
+ [tool.ruff]
24
+ line-length = 88
25
+ target-version = "py310"
26
+
27
+ [tool.ruff.lint]
28
+ select = ["E", "F", "I", "UP", "B"]
29
+
30
+ [tool.pytest.ini_options]
31
+ testpaths = ["tests"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+