DeWeb 1.0.0__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.
DeWeb/__init__.py ADDED
@@ -0,0 +1 @@
1
+ from .browser import DeWebParser
DeWeb/browser.py ADDED
@@ -0,0 +1,30 @@
1
+ from PySide6.QtWidgets import QApplication
2
+ from PySide6.QtWebEngineWidgets import QWebEngineView
3
+ from PySide6.QtCore import QUrl
4
+ import sys
5
+
6
+ class DeWebParser:
7
+
8
+ @staticmethod
9
+ def prepare_load():
10
+ charged = False
11
+
12
+ print("===============================")
13
+ print(" DeWeb Parser ")
14
+ print("===============================")
15
+ print("Questo file usa DeWeb, grazie per il supporto!")
16
+ print("DeWeb sta caricando l'interfaccia... attendi")
17
+
18
+ charged = True
19
+
20
+ if charged:
21
+ print("Caricato con successo!")
22
+
23
+ @staticmethod
24
+ def load(url="https://www.google.com", pagetitle="DeWeb"):
25
+ app = QApplication(sys.argv)
26
+ view = QWebEngineView()
27
+ view.load(QUrl(url))
28
+ view.setWindowTitle(pagetitle if pagetitle else url)
29
+ view.show()
30
+ sys.exit(app.exec())
DeWeb/test.py ADDED
@@ -0,0 +1,5 @@
1
+ from DeWeb.browser import DeWebParser
2
+
3
+ browser = DeWebParser(title="Pakrea - eswaiiOS")
4
+ browser.load_url("https://demenigeco.github.io/functions/pk")
5
+ browser.start()
@@ -0,0 +1,59 @@
1
+ Metadata-Version: 2.4
2
+ Name: DeWeb
3
+ Version: 1.0.0
4
+ Summary: Un piccolo parser per creare finestre con pagine web in Python
5
+ Author: DomeniGeco
6
+ License: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/DeMENIGECO/DeWeb
8
+ Requires-Python: >=3.10
9
+ Description-Content-Type: text/markdown
10
+ License-File: LICENSE
11
+ Requires-Dist: PySide6>=6.0.0
12
+ Dynamic: license-file
13
+
14
+ # DeWeb
15
+ Un piccolo parser per creare finestre con pagine web usando Python.
16
+
17
+ ---
18
+
19
+ # Esempi
20
+
21
+ ## Una pagina con Google
22
+
23
+ Possiamo aprire una pagina con _www.google.com_ così:
24
+
25
+ ```python
26
+ from DeWeb.browser import DeWebParser
27
+
28
+ DeWebParser.prepare_load()
29
+ DeWebParser.load("https://www.google.com", "Google")
30
+ ```
31
+ Così verrà caricata la pagina di Google in una finestra separata.
32
+
33
+ ## Una pagina GitHub Pages
34
+
35
+ Ecco come aprire una pagina su GitHub Pages:
36
+
37
+ ```python
38
+ from DeWeb.browser import DeWebParser
39
+
40
+ DeWebParser.prepare_load()
41
+ DeWebParser.load("https://demenigeco.github.io/functions/pk", "Esempio")
42
+ ```
43
+
44
+ --
45
+
46
+ # Licenza
47
+ Licenza **Apache 2.0**
48
+
49
+ --
50
+
51
+ # Altre librerie
52
+
53
+ Dai un’occhiata anche al mio pacchetto [utiilityes](https://pypi.org/project/utiilityes)
54
+
55
+ # Tabbella versioni
56
+
57
+ | Versione | Stato | Note |
58
+ | -------- | ----- | ---- |
59
+ | 1.0.0 | Nuova | - |
@@ -0,0 +1,8 @@
1
+ DeWeb/__init__.py,sha256=PWnOf2oGeTrIpYGtXhgl8SJgvlz3dUvwKI5X2ANjVQs,32
2
+ DeWeb/browser.py,sha256=accAh-eDl3dqXhkuqCFSErab51ftbbGWF2ufioeCLD8,908
3
+ DeWeb/test.py,sha256=8RFt5xIv6zFEosZHxSyCza731pfhQTW7HK8pzUske9s,169
4
+ deweb-1.0.0.dist-info/licenses/LICENSE,sha256=zVJLkfG-f1zqvlnSIqAHMb3a31tE6ksnniUOln07gPQ,958
5
+ deweb-1.0.0.dist-info/METADATA,sha256=MwwqGYPIitZKccYAZrjeUm9zT-Xpl3SXICGAMpb2itA,1275
6
+ deweb-1.0.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
7
+ deweb-1.0.0.dist-info/top_level.txt,sha256=Hw0xOzDT66H9vYckDB7FemWMcJ90vRxkYgxLOPLumWc,6
8
+ deweb-1.0.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (82.0.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,21 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMINI E CONDIZIONI PER L'USO, LA RIPRODUZIONE E LA DISTRIBUZIONE
6
+
7
+ 1. Definizioni.
8
+ "Licenziante" indica la persona o entità che concede la licenza.
9
+ "Licenziatario" indica chi riceve i diritti sotto questa licenza.
10
+
11
+ 2. Concessione di Licenza.
12
+ Salvo quanto diversamente previsto da questa licenza, è concessa una licenza gratuita, non esclusiva, mondiale, esente da royalties, per usare, copiare, modificare, fondere, pubblicare, distribuire, concedere in sublicenza e/o vendere copie del Software.
13
+
14
+ 3. Restrizioni.
15
+ Non puoi rimuovere o alterare gli avvisi di copyright o di licenza.
16
+
17
+ 4. Disclaimer.
18
+ IL SOFTWARE VIENE FORNITO "COSÌ COM'È", SENZA GARANZIE DI ALCUN TIPO.
19
+
20
+ 5. Altri termini.
21
+ Consulta il testo completo della licenza su http://www.apache.org/licenses/LICENSE-2.0
@@ -0,0 +1 @@
1
+ DeWeb